3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-221
reset M1123. Reset it once each time the receive is complete.
MOV
D1120
H86
M1002
SET
M1120
MOV
D1129
K100
X20
M1123
RST
M1123
RS
D100
K10
D120
K10
Transmission
request
Pulse
Receiving
completed
Setting communication protocol 9600, 7, E, 1
Communication protocol latched
Setting communication time out 100ms
Write transmitting data in advance
Sending request
Process of receiving data
Receiving completed and flag reset
SET
M1120
Program Example 2: COM2 RS-485
8-bit mode (M1161=ON) / 16-bit mode (M1161=OFF) switch:
8-bit mode:
1.
Start and End Characters for the ELC transmission data will be set with M1126 and M1130
with the data in D1124~D1126. Once the start and end characters are set, the ELC will send
start and end data automatically when executing the RS instruction.
2.
When M1161=ON, the mode will be 8-bit. 16-bit data will be divided into high byte and low byte.
High byte will be ignored and low byte will be received and transmitted.
M1000
M1161
D100
D120
K4
K7
RS
X0
Transmit data: (ELC
→
External equipment)
STX
D100L
D101L
D102L
D103L
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
D122L
D123L
D124L
D125L
D126L
D121L
Head
code
Tail code
1
Tail code
2
receive data register will start from
low byte of D120
length = 7
Содержание 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...