92
•
LZ
DMC-1000/1500 Command Reference
DMC-1000
DMC-1500
LZ
FUNCTION:
Leading Zeros
DESCRIPTION:
The LZ command is used for formatting the values returned from interrogation commands or
interrogation of variables and arrays. By enabling the LZ function, all leading zeros of
returned values will be removed.
ARGUMENTS:
LZ n
where n is
1 to remove leading zeros
0 to disable the leading zero removal.
LZ ? returns the state of the LZ function. ‘0’ is disabled and ‘1’ is enabled.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
-
Command Line
Yes
Can be Interrogated
Yes
Used as an Operand
Yes
OPERAND USAGE:
_LZ contains the state of the LZ function. ‘0’ is disabled and ‘1’ is enabled.
EXAMPLES:
LZ 0
Disable the LZ function
TPX
Interrogate the controller for current position of X axis
0000021645.0000
Value returned by the controller
VAR1=
Request value of variable “VAR1” (previously set to 10)
0000000010.0000
Value of variable returned by controller
LZ1
Enable LZ function
TPX
Interrogate the controller for current position of X axis
21645.0000
Value returned by the controller
VAR1=
Request value of variable “VAR1” (previously set to 10)
10.0000
Value of variable returned by controller