WMSU Set and wait event when slave’s motor speed is equal or under a 32-bit value or the value of a fixed variable |
Syntax
VAR32: fixed variable value32: 32-bit fixed immediate value Binary code
The programmed event is automatically erased when the event occurs or if the timeout for wait expires.
Example //Motor on slave A is decelerating. Start a new position profile // on slave A when motor speed < 600 rpm //Position feedback: 500 lines encoder (2000 counts/rev) WMSU (A) 20; //Set event: when motor speed is < 600 rpm // prepare new motion mode (A)
CACC = 0.3183;//acceleration rate = 1000[rad/s^2] CSPD = 100;//slew speed = 3000[rpm] CPOS = 20000;//position command = 10[rot] CPR; //position command is relative MODE PP; TUM1; //set Target Update Mode 1 UPD };
|