MODE PT Set PT mode |
Syntax
Binary code
The new motion mode becomes effective at the next update command UPD.
Example // PT sequence. Position feedback: 500 lines incremental // encoder (2000 counts/rev) SETPVT 0xC000; //Clear PT buffer, disable counter check //Don’t change counter & buffer low condition MODE PT; // Set PT Mode TUM1;//Start from actual value of position reference CPR; PTP 2000L, 100U, 0; //PT(1[rot], 0.1[s]) UPD; //Execute immediate PTP 0L, 100U, 0; //PT(1[rot],0.2[s]) PTP -2000L, 100U, 0; //PT(0[rot],0.3[s]) !MC; WAIT!; //wait for completion |