Motion S Curve Profile – Related TML Instructions and Data |
Parameters CPOS Command position – desired position (absolute or relative) for the load. Measured in position units CSPD Command speed – desired slew speed for the load. Measured in speed units CACC Command acceleration – maximum desired acceleration / deceleration for the load. Measured in acceleration units CDEC Command deceleration for quick stop mode. Measured in acceleration units TJERK Jerk time needed to accelerate from zero up to the CACC value. Measured in time units ACR Auxiliary Control Register – includes several TML programming options
Variables
APOS_LD Actual load position. Measured in position units. Alternate name: APOS ASPD_LD Actual load speed – measured in speed units APOS_MT Actual motor position. Measured in motor position units.
Instructions CPR Command position is relative CPA Command position is absolute MODE PSC Set S-curve mode. UPD Update motion parameters and start new motion mode STOP Stop the motion SRB Set/reset bits from a TML data
Remarks:
Programming Example // S-curve profile. Position feedback: 500 lines incremental // encoder (2000 counts/rev) TJERK = 50;//jerk = 2e+004[rad/s^3] CACC = 0.3183;//acceleration rate = 1000[rad/s^2] CSPD = 33.3333;//slew speed = 1000[rpm] CPOS = 20000;//position command = 10[rot] CPR; //position command is relative MODE PSC; // set S-curve profile mode SRB ACR, 0xFFFE, 0x0000; //Stop using an S-curve profile UPD; //execute immediate !MC; WAIT!; //wait for completion
See also: |