Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 107

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

Example
The following tables show the examples of values configured to the random-specified devices (plDev), data 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 13
T10 current value
LCN100 to LCN101
• Values specified to the randomly selected device (plDev)
plDev
plDev[0]
plDev[1]
plDev[2]
plDev[3]
plDev[4]
plDev[5]
plDev[6]
plDev[7]
plDev[8]
plDev[9]
plDev[10]
plDev[11]
plDev[12]
plDev[13]
plDev[14]
plDev[15]
• Data to be read to the read data storage destination (psBuf)
psBuf
psBuf[0]
psBuf[1]
psBuf[2]
psBuf[3]
psBuf[4]
psBuf[5]
psBuf[6]
psBuf[7]
psBuf[8]
psBuf[9]
psBuf[10]
• Number of bytes of read data
(psBuf[0] to psBuf[10] = 11) × 2 = 22
Specified value
5
DevM
100
16
DevD
10
4
DevM
0
14
DevTN
10
1
DevLCN
100
2
Read device
Read value
M100 to M115
0
D10
10
D11
200
D12
300
D13
400
M0 to M13
3FFFH
T10
10
LCN100
0x1
LCN101
0x10000
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.
The current value of T10 is one second (10).
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
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.
The current value of T10 is 10 (one second).
Lower bit of LCN100 = 0x0001
Upper bit of LCN100 = 0x0000
Lower bit of LCN101 = 0x0000
Upper bit of LCN101 = 0x0001
3.3 MELSEC Data Link Functions
Block 1: M100 to M115
Block 2: D10 to D13
Block 3: M0 to M13
Block 4: T10
Block 5: LCN100 to LCN101
3 DETAILS OF FUNCTIONS
3
105

Advertisement

Table of Contents
loading

Table of Contents