E L C P r o g r a m m i n g M a n u a l
F or mo re inf or ma tio n visi t: www.eato n.co m MN 05 0 03 0 03 E
A -14
A.6 Function Code support (Slave Mode)
The following function codes are supported by the ELC in slave mode:
CMD(Hex)
Explanation
Device
01 (01 H)
Read Coil Status of Contact
S, Y, M, T, C
02 (02 H)
Read Input Status
S, X, Y, M,T, C
03 (03 H)
Read content of register
T, C, D
05 (04 H)
Force single Coils
S, Y, M, T, C
06 (06 H)
Preset single register
T, C, D
15 (0F H)
Force Multiple Coils
S, Y, M, T, C
16 (10 H)
Preset Multiple Register
T, C, D
17 (11 H)
Retrieve information of Slave
None
23 (17 H)
Simultaneous data read/write in a
polling of EASY ELC LINK
None
Command Code
:
01, Read Coil Status of Contact
Number of Points (max) = 255 (Decimal) = FF (Hex)
Example
:
Read contacts T20~T56 from Slave ID#1
Master
→
ELC “:01 01 06 14 00 25 BF CR LF”
Sent message:
Field Name
ASCII
STX 3A
(Hex)
Slave Address
01
Command code
01
Bytes Count
05
Data
(
Coils T27…T20
)
CD
Data
(
Coils T35…T38
)
6B
Data
(
Coils T43…T36
)
B2
Data
(
Coils T51…T44
)
0E
Data
(
Coils T56…T52
)
1B
Error Check
(
LRC
)
E6
ETX 1
0D (Hex)
ETX 0
0A (Hex)
Assume Number of Points in sent message is
n
(Dec), quotient of
n
/8 is
M
and the remainder is
N.
When
N
= 0, Bytes Count in feedback message will be
M
; when N
≠
0, Bytes Count will be
M+1
.
ELC
→
Master “:01 01 05 CD 6B B2 0E 1B D6 CR LF”
Feedback message:
Field Name
ASCII
STX 3A
(Hex)
Содержание 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...