Fanuc Power Mate i-D/H Operator Manual

PROGRAMMING
(Common to Power Mate i–D and –H)
13. CUSTOM MACRO
B–63174EN/03
140
(iv) Null variables are regarded as 0.
Example )
BPRINT [ C** X#100 [3] Y#101 [3] M#10 [0] ]
Variable value
#100=0.40596
#101=–1638.4
#10=12.34
LF
12 (0000000C)
M
–1638400(FFE70000)
Y
410 (0000019A)
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 bit1
(PRT) of parameter 6001 is 1. If parameter PRT 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 bit 1 (PRT) of parameter 6001 is 0, a space code is output to
Data output command
DPRNT

Leave a Reply

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