
3.FP FUNCTIONS B-66244EN/03
- 250 -
[Format]
GetDrvVersion[]
[Arguments]
----------
[Description]
The version of the FP driver which operates on CNC is read.
1.53 Reading tool offset amount (indirect specification)
[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