Di - distance/position, Command details, Parameter details – Applied Motion RS-232 User Manual
Page 63: Examples

63
920-0002 Rev. I
2/2013
Host Command Reference
DI - Distance/Position
Compatibility: All drives
Affects:
All move commands
See also:
AC, DC, DE and VE commands
Sets or requests the move distance in encoder counts (servo) or steps (stepper). The sign of DI indicates move
direction: no sign means CW and “-” means CCW. DI sets both the distance for relative moves, like FL, and the
position for absolute moves, like FP. DI also sets the direction of rotation for jogging (CJ).
Command Details:
Structure
DI{Parameter #1}
Type
BUFFERED
Usage
READ/WRITE
Non-Volatile
YES
Register Access
“D” (020)
Parameter Details:
Parameter #1
distance
- units
encoder counts (servo) or steps (stepper)
- range
-2,147,483,647 to 2,147,483,647
sign determines direction: “-” for CCW, no sign for CW
Examples:
Command
Drive sends
Notes
DI20000
-
Set distance to 20000 counts in the CW direction
DI DI=20000
DI-8000
-
Set distance to 8000 counts in the CCW direction
FL
-
Initiate FL move