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 3
3.
In ASCII or RTU mode, when the ELC’s COM2 sends a read message, the data in the reply
will be stored in D1296~D1311. The data sent with a write message will be stored in registers
D1256~D1295 (the data should be placed into the D-register address in the instruction).
4.
The tables below show the status of the outputs when ELC1 reads Y0~Y17 from ELC2.
H87
MOV
M1002
D1120
SET
M1120
K100
MOV
D1129
RST
M1127
Set communication protocol as 9600, 8, E, 1
Retain communication protocol
Set communication timeout as 100ms
MODRW
K2
K1
X0
H0500
D0
K16
Connection device
address K1
Function code K2
read multiple bits
Data address Y0=H0500
Data storing register
Data length (bit)
Processing received data
ASCII mode: The received data is stored in registers starting from D0 in ASCII format and
ELC converts the content to
hexadecimal automatically.
registers D1296~D1311 in
RTU mode: The received data is stored in registers starting from D0 in Hex.
Reset M1127
M1127
SET
X0
M1122
Sending request
M1143 = OFF
ASCII mode
RST
M1143
M1143 = ON
RTU mode
SET
M1143
Receiving completed
z
ASCII Mode (M1143 = OFF):
When X0 = ON, MODRW instruction executes the function specified by Function Code 02.
ELC1
Ö
ELC2
,
ELC1 sends: “01 02 0500 0010 E8”
ELC2
Ö
ELC1
,
ELC1 receives: “01 02 02 3412 B5”
Registers for data to be sent
Register
Data
Descriptions
D1256 Low
‘0’
30 H
ADR 1
D1256 High
‘1’
31 H
ADR 0
Device address: ADR (1,0)
D1257 Low
‘0’
30 H
CMD 1
D1257 High
‘2’
32 H
CMD 0
Control parameter: CMD (1,0)
D1258 Low
‘0’
30 H
D1258 High
‘5’
35 H
D1259 Low
‘0’
30 H
D1259 High
‘0’
30 H
Y0 = H0500
Starting Data Address
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...