
3.FP FUNCTIONS B-66284EN/01
- 328 -
idrdmac[300_10000]
#10000 in P code variable is used for indirect data.
#10000(number) = 100
#10001(pmc) = 9
#10002(address) = 200
#10003(path) = 2 (1 is specified for 1path side)
1.56 Writing custom macro variable (indirect specification)
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
[Function name]
idwrmac
[Data type]
2: 2 bytes (signed)
[Format/with arguments]
idwrmac[kind_datanum]
[Arguments]
kind Kind and data division of indirect specification
datanum Number of beginning of storage of argument of
indirect specification
[Argument of indirect specification destinations]
number_data1_data2_pmc_address_path
number Custom macro variable number
data1 Output data (custom macro variable value)
data2 Output data (decimal position)
pmc Kind of PMC address for processing result
notification
address PMC address where processing result is written (The
area in two bytes is used from the specified address)
path Path number
Row of argument when PMC area is specified
Offset from head PMC address (byte)
+0-1 +2-5 +6 +7 +8-9 +10
Set argument number data1 data2 pmc address path
[Example]
To the custom macro variable on 2path side when the value of
123.456 is written, and to the 100th processing result is written in
D200.
idwrmac[109_10]
D10 in PMC area is used for indirect data.
D10,11(number) = 100
D12,13,14,15(data1) = 123456 (0 is specified at the
ten keys input.)
D16(data2) = 3 (0 is specified at the ten
keys input.)
D17(pmc) = 9
D18,19(address) = 200
D20(path) = 2 (1 is specified for 1path
side)