
B-66284EN/01 3.FP FUNCTIONS
- 325 -
1.53 Reading tool offset amount (indirect specification)
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
[Function name]
idrdtofs2
[Data type]
4 : 4 bytes(signed)
[Format/with arguments]
idrdtofs2[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_type_pmc_address_path
number Offset number
type Offset type
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 +3 +4-5 +6
Set argument number type pmc address path
[Example]
When the value of the 10th offset number of Tool length
compensation/wear compensation value on 2path side is read,
and processing result is written in D200.
idrdtofs2[109_10]
D10 in PMC area is used for indirect data.
D10,11(number) = 10
D12(type) = 2
D13(pmc) = 9
D14,15(address) = 200
D16(path) = 2 (1 is specified for 1path side)
idrdtofs2[200_100]
#100 in custom macro variable is used for indirect data.
#100(number) = 10
#101(type) = 2
#102(pmc) = 9
#103(address) = 200
#104(path) = 2 (1 is specified for 1path side)
idrdtofs2[300_10000]
#10000 in P code variable is used for indirect data.
#10000(number) = 10
#10001(type) = 2
#10002(pmc) = 9
#10003(address) = 200
#10004(path) = 2 (1 is specified for 1path side)