3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E F o r m o r e
i n f o r m a t i o n
v i s i t :
w w w. e a t o n . c o m
3 - 3 4 5
Register
Data
Descriptions
D1260 Low
00 H
D1261 Low
10 H
Number of Data (count by word)
D1262 Low
79 H
CRC CHK Low
D1263 Low
0A H
CRC CHK High
Received data registers
Register
Data
Descriptions
D0
1234 H
ELC stores the value 1234H into D1296
D1 Low
02 H
Function
D2 Low
02 H
Number of Data (Byte)
D3 Low
34 H
D4 Low
12 H
Content of address
H0500~H0515
D5 Low
2F H
CRC CHK Low
D6 Low
75 H
CRC CHK High
State of the bits read from ELC2 Y0~Y17: 1234H
Device
Status
Device
Status
Device
Status
Device
Status
Y0 OFF Y1 OFF Y2 ON Y3 OFF
Y4 ON Y5 ON Y6 OFF
Y7 OFF
Y10 OFF Y11 ON Y12 OFF Y13 OFF
Y14 ON Y15 OFF Y16 OFF Y17 OFF
Program Example 2: COM1(RS-232) / COM3(RS-485), Function Code H02
1.
Function code K2 (H02): read multiple bit devices. Up to 64 bits can be read.
2.
ELC1 connects to ELC2. COM3: (M1320 = OFF, ASCII mode), (M1320 = ON, RTU mode)
3.
For both ASCII and RTU modes, ELC COM1/COM3 only stores the received data in registers
starting from
S
, and does not store the data to be sent.
4.
The connection between ELC1 (ELC COM3) and ELC2(ELC COM1) is shown in the tables
below when ELC1 reads Y0~Y17 from ELC2
If ELC1 uses COM1 for communication rather than COM3, change the following parameters in
the program below:
1. D1109
→
D1036: communication protocol
2. M1136
→
M1138: retain communication setting
3. D1252
→
D1249: Set value for data receiving timeout
4. M1320
→
M1139: ASCII/RTU mode selection
5. M1316
→
M1312: sending request
6. M1318
→
M1314: receiving completed flag
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...