FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
313
Example )
BPRINT [ C** X#100 [3] Z#101 [3] M#10 [0] ]
Variable value
#100=0.40956
#101=–1638.4
#10=12.34
LF
12 (0000000C)
M
–1638400(FFE70000)
Z
406(00000196)
X
Space
C
DPRNT [ a #b [ c d ] ]
Number of significant decimal places
Number of significant digits in the integer part
Variable
Character
The DPRNT command outputs characters and each digit in the value of
a variable according to the code set in the settings (ISO).
(i) For an explanation of the DPRNT command, see Items (i), (iii), and
(iv) for the BPRNT command.
(ii) When outputting a variable, specify # followed by the variable
number, then specify the number of digits in the integer part and the
number of decimal places enclosed in brackets.
One code is output for each of the specified number of digits, starting
with the highest digit. For each digit, a code is output according to
the settings (ISO). The decimal point is also output using a code set
in the settings (ISO).
Each variable must be a numeric value consisting of up to eight digits.
When high–order digits are zeros, these zeros are not output if PRT
(bit1 of parameter 6001) is 1. If PRT(bit 1 of parameter 6001) is 0,
a space code is output each time a zero is encountered.
When the number of decimal places is not zero, digits in the decimal
part are always output. If the number of decimal places is zero, no
decimal point is output. When PRT (bit 1 of parameter 6001) is 0, a
space code is output to indicate a positive number instead of +; if
PRT(bit 1 of parameter 6001) is 1, no code is output.
D Data output command
DPRNT

Leave a Reply

Your email address will not be published. Required fields are marked *