DMC-18x6 Command Reference
156
PF
FUNCTION: Position Format
DESCRIPTION:
The PF command allows the user to format the position numbers such as those returned by TP.
The number of digits of integers and the number of digits of fractions can be selected with this
command. An extra digit for sign and a digit for decimal point will be added to the total
number of digits. If PF is negative, the format will be hexadecimal and a dollar sign will
precede the characters. Hex numbers are displayed as 2's complement with the first bit used
to signify the sign.
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).
The PF command can be used to format values returned from the following commands:
BL ?
LE ?
DE ?
PA ?
DP ?
PR ?
EM ?
TN ?
FL ?
VE ?
IP ?
TE
TP
ARGUMENTS: PF m.n
where
m is an integer between -8 and 10 which represents the number of places preceding the decimal
point. A negative sign for m specifies hexadecimal representation.
n is an integer between 0 and 4 which represent the number of places after the decimal point.
n = ? Returns the value of m.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
10.0
In a Program
Yes
Default Format
2.1
Command Line
Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_PF contains the value of the position format parameter.
EXAMPLES:
:TPX
Tell position of X
0
Default format
:PF 5.2
Change format to 5 digits of integers and 2 of fractions
:TPX Tell
Position
21.00
PF-5.2
New format. Change format to hexadecimal
:TPX Tell
Position
$00015.00 Report
in
hex