●
Control codes
Name
Character
ASCII code
Explanation
%
25H
Indicates the beginning of a message.
Header
Command
Indicates that the data comprises a command
message.
23H
#
Indicates that the data comprises a normal
response message.
Normal
response
24H
$
Error response
Indicates that the data comprises a response
message when an error occurs.
21H
!
Terminator
CR 0DH
Indicates the end of a message.
※
Expansion header “
<
” is not supported.
●
Destination and source AD (H), (L)
Two-digit decimal 01 to 99 (ASCII codes)
Command messages contain a unit number for wireless unit that receives the message.
When FF (ASCII codes) is used, the transmission is a global transmission, but it is not supported in
ireless unit.
w
●
Block check code Bcc (H), (L)
Two- digit hexadecimal 00 to FF (ASCII codes)
These are codes (horizontal parity) that are used to detect errors in the transmitted data.
If “**” is entered instead of “Bcc”, however, messages can be transmitted without the Bcc. In this
case, the Bcc is included with the response
◇
Error code Err (H), (L)
Two- digit hexadecimal 00 to FF (ASCII codes)
T
hese indicate the content if an error occurs.
●
Bcc (Block Check Code)
・
The Bcc is a code that carries out an error check using horizontal parity, to improve the reliability of
the data being sent.
・
The Bcc uses an exclusive OR from the header (%) to the final character of the text, and converts
the 8- bit data into a 2-character ASCII code.
Bcc caluculation example
%
0 1
#
R C
S
X
0 0 0 0
1 D
CR
↑
↑
↑
↑
↑
↑
↑
↑
Header Station
No.1
Command Read
out
contact
Handle as
single point
Input
Contact
No.0
2-character
Bcc
%
0 1 # R C S X 0 0 0 0
1 D
25H 30H 31H
23H 52H 43H
53H
58H
30H
30H
30H
30H
①
Takes exclusive OR
②
Converts to ASCII format
Bcc(H)
=
1(31H)
Bcc
(
L
)=
D(44H)
5.7.2 Command
Wireless unit has 2 kinds of commands.
Command name
Code
Explanation
Read contact area
RC
Reads contact conditions ON or OFF
・
Specify 1 point
(RCS)
(RCP)
・
Specify several points
・
Specify area by word
(RCC)
Write contact area
WC
(WCS)
(WCP)
Makes contact ON or OFF
・
Specify 1 point
・
Specify several points
(WCC)
・
Specify area by word
。
5-28
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: [email protected]
Содержание KR20
Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net ...
Страница 4: ...Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net ...
Страница 10: ...1 6 Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net ...
Страница 117: ...9 1 Chapter 9 Specifications Phone 800 894 0412 Fax 888 723 4773 Web www ctiautomation net Email info ctiautomation net ...