
B-66284EN/01 3.FP FUNCTIONS
- 309 -
(a) For specification of the ten-key pad read function or numeral
indication control
[Function name]
rdpmacro
[Data type]
7 : Floating-Point
[Format/with arguments]
rdpmacro[type_number]
[Arguments]
type Always 0
number P code macro variable number
(#10000 to #16000, #20000 and up)
(b) For specification of a control other than in (a)
[Function name]
rdpmacro
[Data type]
4 : 4 bytes(Signed)
[Format/with arguments]
rdpmacro[type_number]
[Arguments]
type Data type
0: Reads a variable value.
1: Reads the number of decimal positions.
number P code macro variable number
(#10000 to #16000, #20000 and up)
1.37 Writing a P code variable
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
A P-code variable having a variable number of 10000 or greater can
be written.
For Series 16i/18i/21i, Power Mate i-D/H
Numbers after twenty thousand change with the value that the
user sets in parameter No. 9044. This value is obtained from the
part program storage and NC program size by using the
calculation method explained in the programming manual for the
macro executor.
For Series 30i/31i/32i
The specifiable number of P-code variables with variable
numbers from 2000 to 2999 varies with the NC parameter
setting.
(a) For specification of the ten-key pad write function or numeral
indication control
[Function name]
wrpmacro
[Data type]
2 : 2 bytes(Signed)
[Format/with arguments]
wrpmacro[number_data_decimal]