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 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
M N 0 5 0 0 3 0 0 3 E
3 - 3 5 6
Register
Data
Descriptions
D1074 Low byte
FF H
D1075 Low byte
00 H
Data content (ON = FF00H)
D1076 Low byte
8C H
CRC CHK Low
D1077 Low byte
F6 H
CRC CHK High
Program example 6: COM1(RS-232) / COM3(RS-485), Function Code H05
1.
Function Code K5 (H05): Force ON/OFF bit.
2.
M1320 = OFF, ASCII Mode , M1320 = ON, RTU Mode
3.
n
= 1 indicates Force ON (set FF00H) and
n
= 0 indicates Force OFF (set 0000H)
4.
The messages sent between ELC1 (ELC COM3) and ELC2(ELC COM1) are shown in the
tables below.
5.
If ELC1 uses COM1 for communications, the program below can be usable by changing:
1. D1109
→
D1036: communication protocol
2. M1136
→
M1138: retain communication setting
3. D1252
→
D1249: Set value for data receiving timeout
4. M1320
→
M1139: ASCII/RTU mode selection
5. M1316
→
M1312: sending request
6. M1318
→
M1314: receiving completed flag
H87
M OV
M 1002
D1109
SET
M 1136
K100
M OV
D1252
M ODRW
K5
K1
X0
H0500
D0
K1
Function Code K5:
Force ON/OFF bit device
Reserved
Force ON status (Set FF00H)
SET
X0
M 1316
RST
M 1320
SET
M 1320
Connection device address:
K1
Data address : Y0 = H0500
M1320 = OFF
ASCII mode
Set communication protocol as 9600,8,E,1
Retain communication protocol
Set receiving timeout as 100ms
Sending request
M1320 = ON
RTU
mode
RST
M 1318
M 1318
Reset M1318
ASCII mode: No processing on received data .
RTU mode: No processing on received data .
Received data
Receiving completed
z
ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF):
When X0 = ON, MODRW instruction executes the function specified by Function Code 05
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...