
3.FP FUNCTIONS B-66244EN/03
- 268 -
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
datatype PMC data type (The same size as the [Data type] is
specified)
data Output data
Row of argument when PMC area is specified
1 byte type data
Offset from head PMC address (byte)
+0 +1-2 +3 +4
Set argument adrtype snumber datatype data
2 bytes type data
Offset from head PMC address (byte)
+0 +1-2 +3 +4-5
Set argument adrtype snumber datatype data
4 bytes type data
Offset from head PMC address (byte)
+0 +1-2 +3 +4-7
Set argument adrtype snumber datatype data
[Example]
When you write 123 in 4 bytes in D100 of PMC area.
idwrpmc[109_10]
D10 in PMC area is used for indirect data.
D10(adrtype) = 9
D11,12(snumber) = 100
D13(datatype) = 2
D14,15,16,17(data) = 123