Motion Contouring – TML Instructions and Data |
Parameters REF0(H) Starting value for torque or voltage contouring. Measured in current units or voltage command units
Variables TPOS Target load position – position reference computed by the reference generator at each slow loop sampling period in position or speed contouring. In speed contouring, 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 in position or speed contouring. Measured in speed units TACC Target load acceleration – acceleration/deceleration reference computed by the reference generator at each slow loop sampling period in position and speed contouring. Measured in
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 IQ Motor current. Measured in current units
Instructions MODE PC Set position contouring mode MODE SC Set speed contouring mode MODE TC Set torque contouring mode
Time – is the segment time. It is an unsigned integer measured in time units Increment – is the segment reference increment per time unit. It is 32-bit fixed value measured in:
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. updates 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 // Position contouring with position feedback on motor: 500 lines // incremental encoder (2000 counts/rev) MODE PC;//Set Position Contouring TUM1;//Start from actual value of position reference SEG 100U, 20.00000;// 1st point UPD; //Execute immediate SEG 100U, 0.00000; // 2nd point SEG 0, 0.0; //End of contouring See also: |