RM85x Hand-held Terminals User Manual
24
CNI Engineering S.r.l.
05-10-2007
4.1.2 Write string
This command writes a string of characters
NumberCharacters
long, with blinking characters if
CharacterBlinking
is set to 1.
The string is displayed at position
PositionCharacters
.
Byte
Command
Response
01
STX
STX
02
Node
Node
03
0x08
0x0
StatusBit
04
CmdWriteStr
CmdWriteStr
05
NumberCharacters
NumberCharacters
06
CharacterBlinking
CharacterBlinking
07
PositionCharacters
PositionCharacters
08
Second character
CRC
09
First character
ETX
10
Fourth character
11
Third character
…
2*n+6
(2n)
th
character
2*n+7
(2n-1)
th
character
2*n+8
CRC
2*n+9
ETX
Example:
To write the string “abcde” in blinking characters at position 16 on the terminal at node
address 0.
Byte
Command
Response
01
0x02
(STX)
0x02
(STX)
02
0x00
(Node)
0x00
(Node)
03
0x08
0x0
StatusBit
(0x00)
04
0x18
(CmdWriteStr)
0x18
(CmdWriteStr)
05
0x05
(NumberCharacters)
0x05
(NumberCharacters)
06
0x01
(CharacterBlinking)
0x01
(CharacterBlinking)
07
0x10
(PositionCharacters)
0x10
(PositionCharacters)
08
0x62
(
Second character
=’b’)
0xF3
(CRC)
09
0x61
(
First character
=’a’)
0x03
(ETX)
10
0x64
(
Fourth character
=’d’)
11
0x63
(
Third character
=’c’)
12
0x00
(
Sixth character
)
13
0x65
(
Fifth character
=’e’)
14
0x9a
(CRC)
15
0x03
(ETX)
Содержание RM85x
Страница 4: ......
Страница 8: ...TABLE OF CONTENTS 05 10 2007 CNI Engineering S r l iv...