
B-66284EN/01 3.FP FUNCTIONS
- 347 -
[Example]
rdpmcb[9_100_0] The data of bit 1 of D100 is read.
2.5 PMC read (bit) (indirect specification)
[Function name]
idrdpmcb
[Data type]
1: 1 bytes
[Format/with arguments]
idrdpmcb[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_bitpos
adrtype Kind of PMC address
snumber read PMC address
bitpos Bit position
Row of argument when PMC area is specified
Offset from head PMC address (byte)
+0 +1-2 +3
Set argument adrtype snumber bitpos
[Example]
When you read the data of bit 7 of D100 of PMC area.
idrdpmcb[109_10]
D10 in PMC area is used for indirect data.
D10(adrtype) = 9
D11,12(snumber) = 100
D13(bitpos) = 7
idrdpmcb[200_100]
#100 in custom macro variable is used for indirect data.
#100(adrtype) = 9
#101(snumber) = 100
#102(bitpos) = 7
idrdpmcb[300_10000]
#10000 in P code variable is used for indirect data.
#10000(adrtype) = 9
#10001(snumber) = 100
#10002(bitpos) = 7
2.6 PMC write (bit) (indirect specification)
[Function name]
idwrpmcb
[Data type]
1: 1 bytes
[Format/with arguments]
idwrpmcb[kind_datanum]
[Arguments]
kind Kind and data division of indirect specification