E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-224
Program Example 4: COM3 RS-485
1.
Only the 8-bit mode is supported (ELC sets M1161 = ON automatically)
2.
STX/ETX function (M1126/M1130/D1124~D1126) is not supported.
3. The high byte of the 16-bit data is not available. Only the low byte is valid for data
communications.
4. Enter the data to be transmitted into registers starting with D100 then set M1316 (COM3
sending request) to ON
5.
When X10 = ON, the RS instruction executes and the ELC is ready for communications. 4
bytes of data beginning with D100 will be sent. Each time the data has been sent, M1318 will
be automatically reset. (DO NOT reset M1318 in the program). After approximate 1ms, the
ELC will start to receive 7 data bytes and store them in 7 consecutive registers starting from
D120.
6.
When the data received is complete, M1318 will automatically be ON. When the received data
is completed, M1318 must be reset (OFF) and the ELC will be ready for communications
again.
Receiving completed and flag reset
Setting communication protocol as 9600,8,E,1
Retain communication protocol
Set up communication time out as 100ms
M1002
MOV
H87
D1120
SET
M1136
MOV
K100
D1252
X0
RS
D100
K4
D120
K7
M1318
Processing received data
RST
M1318
Pulse for
sending request
Pulse
Write transmitting data in advance
Sending request
SET
M1316
Sending data: (ELC
→
External equipment)
D100L
D101L
D102L
D103L
Source data register, starting from
lower 8 bits of D100
Length = 4
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...