R+ - register add, Command details, Parameter details – Applied Motion RS-232 User Manual
Page 188: Examples

188
920-0002 Rev. I
2/2013
Host Command Reference
R+ - Register Add
Compatibility: Q drives only
Affects:
All data registers
See also:
R-, R*, R/, R&, RD, RI, QJ commands
Adds the contents of a first data register to a second data register and places the result in the accumulator data
register, User-Defined register “0”. This is a 32-bit operation: adding two Long word values can cause an overflow.
All math operations affect the “condition code” used by the QJ (Queue Jump) command. R+ can set condition
codes T, F, N, P, and Z
Command Details:
Structure
R+(Parameter #1)(Parameter #2)
Type
BUFFERED
Usage
WRITE ONLY
Non-Volatile
NO
Register Access
“0” (000), Accumulator
Parameter Details:
Parameter #1
First data register assignment
- units
character
- range
all data registers
Parameter #2
Second data register assignment
- units
character
- range
all data registers
Examples:
Command
Drive sends
Notes
R+D1
-
Add contents of distance register “D” to user-defined register “1” and
place the result in the accumulator register “0”