Fanuc Series 15i/150i-MA (Programming) Operators Manual

B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 661 -
- Data output command DPRNT
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 . The
decimal point is also output using a code.
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 (bit 7 of parameter 7000) 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 PRT (bit 7 of parameter 7000) is 0, a space code is output to
indicate a positive number instead of +; if parameter PRT is 1, no
code is output.
Character
Variable
DPRNT [ a #b
[ c d ] . . . ]
Number of significant digits in the integer part
Number of significant decimal places

Leave a Reply

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