TUM Target update mode |
Syntax
Binary code
After a TUM1 command, the reference generator computes the new motion mode trajectory starting from the actual values of position and speed reference. After a TUM0 command, the reference generator first updates the position and speed references with the actual values of the load position and speed (TPOS=APOS_LD and TSPD=ASPD_LD) and then starts to compute the new motion mode trajectory. By default, each command setting a motion mode activates the TUM0 mode. In order to activate the TUM1 mode, execute the TML instruction TUM1 AFTER the command setting the motion mode and BEFORE the UPD command. As a general rule, TUM1 mode is recommended for normal operation. Use TUM0 in the following situations:
Remark: In open loop control of steppers, TUM0 is ignored as there is no position and/or speed feedback The instructions become effective at the next update command UPD.
Example1: // Start a position profile with TUM1. 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 Example2: // Start a position profile with TUM0. 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 // No need to set TUM0 before UPD as MODE PP does it automatically UPD; //execute immediate |