DMC-40x0 Command Reference VF • 251
VF
FUNCTION: Variable Format
DESCRIPTION:
The VF command formats the number of digits to be displayed when interrogating the controller.
If a number exceeds the format, the number will be displayed as the maximum possible positive or
negative number (i.e. 999.99, -999, $8000 or $7FF).
ARGUMENTS: VF m.n where
m and n are unsigned numbers in the range 0<m<10 and 0<n<4.
m represents the number of digits before the decimal point. A negative m specifies hexadecimal
format. When in hexadecimal, the string will be preceded by a $ and Hex numbers are
displayed as 2's complement with the first bit used to signify the sign.
n represents the number of digits after the decimal point.
m = ? Returns the value of the format for variables and arrays.
USAGE: DEFAULTS:
While Moving Yes Default Value 10.4
In a Program Yes Default Format 2.1
Command Line Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_VF contains the value of the format for variables and arrays.
RELATED COMMANDS:
PF Position Format
EXAMPLES:
VF 5.3 Sets 5 digits of integers and 3 digits after the decimal point
VF 8.0 Sets 8 digits of integers and no fractions
VF -4.0 Specify hexadecimal format with 4 bytes to the left of the decimal