
B-66244EN/03 3.FP FUNCTIONS
- 251 -
#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)
1.54 Writing tool offset amount (indirect specification)
[Function name]
idwrtofs
[Data type]
4 : 4 bytes(signed)
[Format/with arguments]
idwrtofs[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_data_pmc_address_path
number Offset number
type Offset type
data Output data(signed 4 bytes)
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-6 +7 +8-9 +10
Set argument number type data pmc address path
[Example]
When 20 is written in the 10th offset numbers of Tool length
compensation/wear compensation value on 2path side, and
processing result is written in D200.
idwrtofs[109_10]
D10 in PMC area is used for indirect data.
D10,11(number) = 10
D12(type) = 2
D13,14,15,16(data) = 20 (0 is specified at the ten
keys input.)
D17(pmc) = 9
D18,19(address) = 200