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 - 2 8 5
Register
Data
Descriptions
D1077 low byte
FE H
CRC CHK Low
D1078 low byte
5C H
CRC CHK High
Program Example 3:
1.
The ELC is connected to an MVX AC drive (ASCII Mode, M1143= OFF). If a message
times-out occurs, retry the message.
2.
When X0= ON, read data from address H0708 of device 01 (MVX) and save the reply data in
D1070~D1085 in ASCII format. The ELC will auto convert its contents to hex and save it in
D1050~D1055.
3.
If flag M1129 = ON, the previous message timed out.
4.
If flag M1140 = ON, an error was received for the previous message
5.
If flag M1141 = ON, an invalid Modbus data address occurred.
6.
When any of the above flags are set, the message was not delivered successfully. The
program can clear the flag and retransmit the message. This is demonstrated in the example
program below.
M1002
MOV
H87
D1120
SET
M1120
RST
M1127
M1127
RST
M1129
Setting communication protocol to 9600, 8, E, 1
Communication protocol latched
Setting communication time-out to 100ms
MODRD
K1
H0708
K 6
X0
Setting communication command:
Data address
Data length 6 words
H0708
Device address 01
X0
M1129
M1140
M1141
Setting transmission request
Communication time-out Retry
Data receive error Retry
Sending address error Retry
Receiving completed
Handle received data
The receiving data in ASCII format stored in D1070-D1085.
ELC will convert to numeral and save into D1050-D1055 automatically.
Receiving completed and flag reset
Communication time-out and flag reset
MOV
K100
D1129
SET
M1122
M1129
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...