Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 202

Controller module
Table of Contents

Advertisement

Example
The following tables show the examples of values specified to the randomly selected device (plDev), values read to the read
data storage destination (psBuf), and the number of bytes of read data.
Device to be read randomly
M100 to M115
D10 to D13
M0 to M13
T10 current value
LCN100 to LCN101
Values specified to the randomly selected device (plDev)
plDev
Specified value
plDev[0]
5
plDev[1]
DevM
plDev[2]
100
plDev[3]
16
plDev[4]
DevD
plDev[5]
10
plDev[6]
4
plDev[7]
DevM
plDev[8]
0
plDev[9]
14
plDev[10]
DevTN
plDev[11]
10
plDev[12]
1
plDev[13]
DevLCN
plDev[14]
100
plDev[15]
2
Values read to the read data storage destination (psBuf)
psBuf
Read device
psBuf[0]
M100 to M115
psBuf[1]
D10
psBuf[2]
D11
psBuf[3]
D12
psBuf[4]
D13
psBuf[5]
M0 to M13
psBuf[6]
T10
psBuf[7]
LCN100
psBuf[8]
psBuf[9]
LCN101
psBuf[10]
Number of bytes of read data
(psBuf[0] to psBuf[10] = 11)  2 = 22
3 DETAILS OF FUNCTION
200
3.3 MELSEC Data Link Functions
Current value
All bits are OFF.
10 is stored in D10, 200 is stored in D11, 300 is stored in D12, and 400 is stored in D13.
All bits are ON.
'10' is stored in T10.
0x1 is stored in LCN100 and 0x10000 is stored in LCN101.
Description
Number of blocks = 5
Device type = M
Start device number = 100
Number of read points = 16
Device type = D
Start device number = 10
Number of read points = 4
Device type = M
Start device number = 0
Number of read points = 14
Device type = T
Start device number = 10
Number of read points = 1
Device type = LCN
Start device number = 100
Number of read points = 2
Read value
0
10
200
300
400
3FFFH
10
0x1
0x10000
Block 1: M100 to M115
Block 2: D10 to D13
Block 3: M0 to M13
Block 4: T10
Block 5: LCN100 to LCN101
Description
All the bit devices from M100 to M115 are OFF.
D10 = 10
D11 = 200
D12 = 300
D13 = 400
All the bit devices from M0 to M13 are ON.
T10=10
Lower bit of LCN100 = 0x0001
Upper bit of LCN100 = 0x0000
Lower bit of LCN101 = 0x0000
Upper bit of LCN101 = 0x0001

Advertisement

Table of Contents
loading

Table of Contents