Q/SCL Commands Flashcards
SP
Set Position
Sets or requests the motor’s absolute position. To ensure that the internal position counter resets properly, use EP immediately prior to sending SP. For example, to set the position to zero after a homing routine, send EP0 immediately followed by SP0.
SP1000 //set absolute position to 100 encoder counts - //response from controller SP //request value from controller SP=1000 //response from controller EP0 //reset internal position counter (step 1) SP0 //reset internal position counter (step 2)
EP
Encoder Position
The EP command allows the host to define the present encoder position. To ensure that the internal position counter resets properly, use SP immediately following EP.
EP0 //reset internal position counter (step 1) SP0 //reset internal position counter (step 2) EP5000 //set current encoder position to 5000 counts
ME
Motor Enable
Enables drive current to motor. If the drive cannot be enabled due to the Enable Input (SI) state, the drive will respond with a “&” which indicates that the drive could not be enabled. Enabling the drive also deactivates the Brake Output function (see BO command). Enabling of the motor is delayed by the BD (Brake Disengage) time delay.
MD //disable motor ME //enable motor ME //request status from controller - //response from controller - motor is enabled ME //request status from controller & //response from controller - motor is not enabled
MD
Motor Disable
Disables motor outputs (reduces motor current to zero). Disabling the motor also activates the Brake Output function (see BO command). Motor current is not reduced to zero until the Brake Engage (BE command) time has expired.
MD //disable motor ME //enable motor
VE
Velocity
Sets or requests shaft speed for point-to-point move commands like FL, FP, FS, FD, SH, etc. Units are rev/sec.
VE2.525 //set velocity to 2.525 rev/sec - //response from controller VE //request value from controller VE=2.525 //response from controller
VM
Maximum Velocity
Sets or requests the maximum motor velocity in rev/sec. Used in analog velocity mode to limit the maximum speed of the drive.
VM50 //set max velocity to 50 rev/sec - //response from controller VM //request value from controller VM=50 ///response from controller
AC
Acceleration
Sets or requests the acceleration rate used in point-to-point move commands in rev/sec/sec.
AC10 //set accel to 100 rev/sec/sec
- //response from controller
AC //request value from controller
AC=10 //response from controller
AC25 //set accel DE25 //set decel VE1.5 //set velocity FL10000 //execute feed to length move of 10000 counts
DE
Deceleration
Sets or requests the deceleration rate used in point-to-point move commands in rev/sec/sec.
DE125 //set decel to 125 rev/sec/sec - //response from controller DE //request value from controller DE=125 //response from controller AC25 //set accel DE25 //set decel VE1.5 //set velocity FL10000 //execute feed to length move of 10000 counts
AM
Max Acceleration
Sets or requests the maximum acceleration/deceleration allowed when using analog velocity and oscillator modes. Also sets the deceleration rate used when an end-of-travel limit is activated during a move or when an ST (Stop) or SK (Stop & Kill) command is sent. Units are rev/sec/sec.
AM20000 //set max accel/decel to 20000 rev/sec/sec - //response from controller AM //request value from controller AM=20000 ///response from controller
FL
Feed to Length
Executes a relative move command. Move distance and direction come from the last DI command. Speed, accel and decel are from the VE, AC and DE commands, respectively. Executing the FL command with no parameter initiates a feed to length move that uses the last DI command for direction and distance. Executing the FL command with a parameter uses the parameter settings for direction and distance without changing the DI command..
DI25000 //sets distance to +25000 counts FL //make feed to length move FL-50000 //make -50000 relative move without affecting the DI command
FP
Feed to Position
Executes an absolute move command. Move position comes from the last DI command. Speed, accel and decel are from VE, AC and DE commands, respectively. Executing the FP command with no parameter initiates a feed to position move that uses the last DI command for position. Executing the FP command with a parameter uses the parameter for position without changing the DI command.
SP0 //set current motor position as zero DI9000 //sets move position to +8000 counts FP //make feed to position/absolute move FP-50000 //to position -50000 without affecting the D variable
FS
Feed to Sensor
Executes a Feed to Sensor command. Requires input number and condition. The motor moves until a sensor triggers the specified input condition, then stops a precise distance beyond the sensor. The stop distance is defined by the DI command. The direction of rotation is defined by the sign of the DI command (“-” for CCW, no sign for CW). Speed, accel and decel are from the last VE, AC and DE commands, respectively.
FS1L //launch move and decel to stop when input 1 is low FS3R //launch move and decel to stop on input 3 rising edge (goes from low to high)
WT
Wait Time
Causes a time delay in seconds. The resolution is 0.01 seconds with the largest value being 320.00 seconds.
WT2.25 //causes time delay of 2.25 sec
WM
Wait on Move
When in multi-tasking is turned on (see MT command) this command will block execution of subsequent commands until the previously initiated move is complete.
WM //causes queue execution to wait until any move in progress is complete
WD
Wait Delay
Causes a time delay to occur using a time value from a given data register. The resolution is in milliseconds. Only up to 15 bits of the data register are used, giving a maximum wait time of 32 seconds.
WD5 //wait for # of msec indicated by the value of user register 5
WP
Wait for Position
When multi-tasking is turned on (“MT1”), this command is used in conjunction with the DC command to block program execution until a specific position(s) is reached during a move. When the position(s) specified by the DC command is reached program execution continues.
WI
Wait for Input
Waits for an input to reach the given condition. Allows very precise triggering of moves if a WI command is followed by a move command. When JE (Jog Enable) is active the drive’s “jog” inputs can be used to jog the motor. JD disables jogging using inputs.
WI3R //wait input 3 rising edge before proceeding to next command
CJ
Commence Jogging
Starts the motor jogging. The motor accelerates up to the jog speed (JS) at a rate defined by the jog accel (JA) command, then runs continuously until stopped. To stop jogging, use the SJ (Stop Jogging) command for a controlled decel rate (decel rate set by JL command). For a faster stop, use the ST command (decel rate set by AM command), but beware that if the speed or load inertia is high, the drive may miss steps, stall, or fault. The jogging direction is set by the last DI command. Use the CS command to change jog speed and direction while already jogging. CS does not affect JS.
JA10 //set jog accel rps/s JL20 //set jog decel rps/s JS1 //set jog speed rps CJ //start jogging CS10 //change jog speed SJ //stop jogging