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-222
3.
The ELC will receive all data transmitted from the external equipment, including header and
footer.
16-bit mode:
1.
Start and End Characters for the ELC to transmit are set by using M1126 and M1130 and the
data must be entered into D1124~D1126. The ELC will send start and end data automatically
when executing the RS instruction.
2.
When M1161=OFF, the mode will be 16-bit. 16-bit data will be divided into high byte and low
byte for data transmitting and receiving.
M1001
M1161
D100
D120
K4
K7
RS
X0
Transmit data: (ELC
→
External equipment)
STX
D100L
D100L
D101L
D101L
ETX1
ETX2
Head
code
source data register will start from
low byte of D100
length = 4
Tail code
1
Tail code
2
Receive data: (External equipment
→
ELC)
D120L
D120H
D121L
D121H
D122L
D122H
D123L
Tail code
1
Tail code
2
receive data register will start from
low byte of D120
length = 7
Head
code
3.
ELC will receive all data transmitted from external equipment, including start and end
characters..
Program Example 3: COM1 RS-232
1.
Only 8-bit mode is supported (ELC sets M1161 = ON automatically)
2.
STX/ETX function (M1126/M1130/D1124~D1126) is not supported.
3.
High byte of 16-bit data is not available. Only low byte is valid for data communication.
4. Enter the data to be transmitted into registers starting from D100 and set M1312 (COM1
sending request) ON
5.
When X10 = ON, the RS instruction executes and the ELC is ready for communications. The
instruction will then start to send out 4 data bytes beginning with D100. When transmitting data
is complete, M1312 will be automatically reset. (DO NOT reset M1312 in the program). After
approximate 1ms, the ELC will start to receive 7 data bytes and store them in 7 consecutive
registers starting from D20.
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...