Examples – Applied Motion ST10-Q-NE User Manual
Page 6

6
920-0072 Rev E
9/9/2014
Modbus User Manual
Examples
Point-to-Point Moves
Four pieces of data are required to fully define a point-to-point move. Acceleration, Deceleration, Distance,
and Velocity. Followed of course by the move command itself. To command such a move over Modbus, we must
first write to the aforementioned control registers, then send the command.
Now it’s time for the command itself. The most common point-to-point move is the Feed to Length which
uses the SCL command FL. In Modbus we do the following:
The drive will execute the move command immediately, pulling the relevant parameter data from the above
registers. It is immediately ready to accept another command. Note, it is not necessary to send parameter data
with each command, unless this data changes between moves. For example, to repeat a move simply send the
command again, leaving the relevant paramter data unchanged.
Launch a Q Program
It is possible to execute a stored Q program over Modbus using the QX command (opcode 0x78). This
command requires a value to be written to Parameter 1, the first of 5 registers set aside for command-dependant
parameter data.
To launch the program at segment 1, we would use the SCL command QX1. Over Modbus, the following
procedure applies.
First, configure the parameter data (only Parameter 1 is used by this command).
Now we can send the QX command itself.
Note, to stop a command or interrupt a Q program, either the SK or SKD commands may be used.
Function
Register
Value
Notes
Acceleration
40028
100
Units: 10 RPM/sec
Deceleration
40029
100
Units: 10 RPM/sec
Velocity
40030
240
Units: 0.25 RPM
Distance
40031..32
20000
This register is affected by Endianness setting
Function
Register
Value
Notes
FL Command
40125
102
0x66 (Hexadecimal) is equal to 102
Function
Register
Value
Notes
Parameter 1
40126
1
Q segment to execute. Integer: 1..12
Function
Register
Value
Notes
QX Command
40125
120
0x78 (Hexadecimal) is equal to 102
Function
Register
Value
Notes
SK Command
40125
225
0xE1 (Hexadecimal) is equal to 225
Function
Register
Value
Notes
SKD Command
40125
226
0xE2 (Hexadecimal) is equal to 226
- ST10-Q-NN ST10-Q-RE ST10-Q-RN ST5-Q-NE ST5-Q-NN ST5-Q-RE ST5-Q-RN STM17Q-1AE STM17Q-1AN STM17Q-1RE STM17Q-1RN STM17Q-2AE STM17Q-2AN STM17Q-2RE STM17Q-2RN STM17Q-3AE STM17Q-3AN STM17Q-3RE STM17Q-3RN STM23Q-2AE STM23Q-2AN STM23Q-2RE STM23Q-2RN STM23Q-3AE STM23Q-3AN STM23Q-3RE STM23Q-3RN STM24QF-3AE STM24QF-3AN STM24QF-3RE STM24QF-3RN SWM24QF-3AE TSM17Q-1AG TSM17Q-1RG TSM17Q-2AG TSM17Q-2RG TSM17Q-3AG TSM17Q-3RG TSM23Q-2AG TSM23Q-2RG TSM23Q-3AG TSM23Q-3RG TSM23Q-4AG TSM23Q-4RG