MODE PP Set trapezoidal position profile mode |
Syntax
Binary code
The new motion mode becomes effective at the next update command UPD.
Example // Position profile. Position feedback: 500 lines incremental // encoder (2000 counts/rev) CACC = 0.3183; //acceleration rate = 1000[rad/s^2] CSPD = 33.3333; //slew speed = 1000[rpm] CPOS = 6000; //position command = 3[rot] CPR; //position command is relative SRB ACR 0xFFFF, 0x800; // and additive MODE PP; // set trapezoidal position profile mode TUM1; //set Target Update Mode 1 UPD; //execute immediate !MC; WAIT!; //wait for completion |