DMC-40x0 Command Reference LZ • 159
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 = 1 Removes leading zeros
n = 0 Does not remove leading zeros.
n = ? Returns the state of the LZ function. ‘0’ does not remove and ‘1’ removes zeros
USAGE: DEFAULTS:
While Moving Yes Default Value 1
In a Program Yes Default Format -
Command Line Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_LZ contains the state of the LZ function. ‘0’ is disabled and ‘1’ is enabled.
EXAMPLES:
LZ 0 Disable the LZ function
TPA Interrogate the controller for current position of A 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
TPA Interrogate the controller for current position of A 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