Tr - test register, Command details, Parameter details – Applied Motion RS-232 User Manual
Page 210: Examples

210
920-0002 Rev. I
2/2013
Host Command Reference
TR - Test Register
Compatibility: Q drives only
Affects:
All data registers
See also:
CR, TI, RI, RD, RM, RL, QJ commands
Tests a data register against a given data value. The result of the test is the setting of the condition code, which
can be used for conditional programming (see QJ command).
All conditions codes can be set by this command. See “QJ” command for more details.
Command Details:
Structure
TR(Parameter #1)(Parameter #2)
Type
BUFFERED
Usage
WRITE ONLY
Non-Volatile
NO
Register Access
All data registers
Parameter Details:
Parameter #1
Data register
- units
data register assignment
- range
All data registers
Parameter #2
Test value
- units
integer
- range
+/- 2,147,483,647 (long data registers)
+/- 32,767 (short data registers)
Examples:
Command
Drive sends
Notes
TR15
-
Test user-defined register “1” against the value 5