Download the Galil Command Reference
Transcript
DMC-1000 DMC-1500 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 minus, 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. PF ? returns the value of m. USAGE: DEFAULTS: While Moving Yes Default Value 10.0 In a Program Yes Default Format 10.0 Command Line Yes Can be Interrogated Yes Used as an Operand Yes OPERAND USAGE: _PF contains the value of 'm' position format parameter. EXAMPLES: COM1000.DOC :TPX Tell position of X 0000000000 Default format :PF 5.2 Change format to 5 digits of integers and 2 of fractions :TPX Tell Position Index • 119