B-66284EN/01 3.FP FUNCTIONS
- 335 -
idrdpmac2[200_100]
#100 in custom macro variable is used for indirect data.
#100(number) = 10100
#101(pmc) = 9
#102(address) = 200
#103(path) = 2 (1 is specified for 1path
side)
idrdpmac2[300_10000]
#10000 in P code variable is used for indirect data.
#10000(number) = 10100
#10001(pmc) = 9
#10002(address) = 200
#10003(path) = 2 (1 is specified for 1path
side)
1.62 Writing a P code variable (indirect specification)
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
[Function name]
idwrpmac2
[Data type]
2: 2 bytes (signed)
[Format/with arguments]
idwrpmac2[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 P code variable number
data1 Output data (Integer)
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-3 +4-7 +8 +9 +10-11 +12
Set argument number data1 data2 pmc address path
[Example]
When 123.456 is written in P code variable number 10100 on
2path side, and processing result is written in D200.
idwrpmac2[109_10]
D10 in PMC area is used for indirect data.
D10,11,12,13(number) = 10100