Galil DMC-1700 Manual De Usuario
164 • Chapter 7 Application Programming DMC-1700/1800
PF m.n
where m is the number of digits to the left of the decimal point (0 thru 10) and n is the number of digits to the right
of the decimal point (0 thru 4) A negative sign for m specifies hexadecimal format.
of the decimal point (0 thru 4) A negative sign for m specifies hexadecimal format.
Hex values are returned preceded by a $ and in 2’s complement. Hex values should be input as signed 2’s
complement, where negative numbers have a negative sign. The default format is PF 10.0.
complement, where negative numbers have a negative sign. The default format is PF 10.0.
If the number of decimal places specified by PF is less than the actual value, a nine appears in all the decimal places.
Examples:
:DP21 Define
position
:TPX Tell
position
0000000021 Default
format
:PF4
Change format to 4 places
:TPX Tell
position
0021 New
format
:PF-4
Change to hexadecimal format
:TPX Tell
Position
$0015 Hexadecimal
value
:PF2
Format 2 places
:TPX Tell
Position
99
Returns 99 if position greater than 99
Removing Leading Zeros from Response to Interrogation Commands
The leading zeros on data returned as a response to interrogation commands can be removed by the use of the
command, LZ.
command, LZ.
Example - Using the LZ command
LZ0
Disables the LZ function
TP
Tell Position Interrogation Command
-0000000009, 0000000005, 0000000000, 0000000007
Response from Interrogation Command
(With Leading Zeros)
(With Leading Zeros)
LZ1
Enables the LZ function
TP
Tell Position Interrogation Command
-9, 5, 0, 7
Response from Interrogation Command
(Without Leading Zeros)
(Without Leading Zeros)
Local Formatting of Response of Interrogation Commands
The response of interrogation commands may be formatted locally. To format locally, use the command, {Fn.m} or
{$n.m} on the same line as the interrogation command. The symbol F specifies that the response should be returned
in decimal format and $ specifies hexadecimal. n is the number of digits to the left of the decimal, and m is the
number of digits to the right of the decimal. For example:
{$n.m} on the same line as the interrogation command. The symbol F specifies that the response should be returned
in decimal format and $ specifies hexadecimal. n is the number of digits to the left of the decimal, and m is the
number of digits to the right of the decimal. For example:
Examples:
TP {F2.2}
Tell Position in decimal format 2.2
-05.00, 05.00, 00.00, 07.00
Response from Interrogation Command
TP {$4.2}
Tell Position in hexadecimal format 4.2
FFFB.00,$0005.00,$0000.00,$0007.00
Response from Interrogation Command