Trapezoidal Speed Profiles – Related TML Instructions and Data |
Parameters CSPD Command speed – desired slew speed for the load. The sign specifies the direction. Measured in speed units CACC Command acceleration – desired acceleration / deceleration for the load. The command acceleration can have only positive values. Measured in acceleration units.
Variables TPOS Target load position – position reference computed by the reference generator at each slow loop sampling period. TPOS is computed by integrating the target speed TSPD.Measured in position units TSPD Target load speed – speed reference computed by the reference generator at each slow loop sampling period. Measured in speed units TACC Target load acceleration – acceleration/deceleration reference computed by the reference generator at each slow loop sampling period. Measured in acceleration units 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. ASPD_MT Actual motor speed. Measured in motor speed units. Alternate name: ASPD
Instructions MODE SP Set speed profile mode TUM1 Target Update Mode 1 (TUM1). Generates new trajectory starting from the actual values of position and speed reference (i.e. don’t update the reference values with load/motor position and speed) TUM0 Target Update Mode 0 (TUM0). Generates new trajectory starting from the actual values of load/motor position and speed (i.e. update the reference values with load/motor position and speed) UPD Update motion parameters and start new motion mode STOP STOP the motion.
Remarks:
Programming Example // Speed profile with position feedback on motor: 500 lines // incremental encoder (2000 counts/rev) CACC = 0.1591;//acceleration rate = 500[rad/s^2] CSPD = 40;//jog speed = 1200[rpm] MODE SP; // set trapezoidal speed profile mode TUM1; //set Target Update Mode 1 UPD; //execute immediate
See also: |