
3.FP FUNCTIONS B-66284EN/01
- 350 -
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 byte type data
Offset from head PMC address (byte)
+0 +1-2 +3 +4-5
Set argument adrtype snumber datatype data
4 byte 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 (0 is specified at the ten
keys input.)
idwrpmc[200_100]
#100 in custom macro variable is used for indirect data.
#100(adrtype) = 9
#101(snumber) = 100
#102(datatype) = 2
#103(data) = 123 (0 is specified at the ten
keys input.)
idwrpmc[300_10000]
#10000 in P code variable is used for indirect data.
#10000(adrtype) = 9
#10001(snumber) = 100
#10002(datatype) = 2
#10003(data) = 123 (0 is specified at the ten
keys input.)