
B-66284EN/01 3.FP FUNCTIONS
- 349 -
datanum Number of beginning of storage of argument of
indirect specification
[Argument of indirect specification destinations]
adrtype_snumber_datatype
adrtype Kind of PMC address
snumber read PMC address
datatype PMC data type (The same size as the [Data type] is
specified)
Row of argument when PMC area is specified
Offset from head PMC address (byte)
+0 +1-2 +3
Set argument adrtype snumber datatype
[Example]
When you read the data of 4 bytes from D100 of PMC area.
idrdpmc[109_10]
D10 in PMC area is used for indirect data.
D10(adrtype) = 9
D11,12(snumber) = 100
D13(datatype) = 2
idrdpmc[200_100]
#100 in custom macro variable is used for indirect data.
#100(adrtype) = 9
#101(snumber) = 100
#102(datatype) = 2
idrdpmc[300_10000]
#10000 in P code variable is used for indirect data.
#10000(adrtype) = 9
#10001(snumber) = 100
#10002(datatype) = 2
2.8 PMC write (1/2/4 bytes) (indirect specification)
[Function name]
idwrpmc
[Data type]
0: 1bytes (signed)
1: 1bytes
2: 2bytes (signed)
3: 2bytes
4: 4bytes (signed)
5: 4bytes
[Format/with arguments]
idwrpmc[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]
adrtype_snumber_datatype_data
adrtype Kind of PMC address
snumber read PMC address