Revision A June 27, 2011
11 / 49
3
) Transmission command
Transmission command format
The command makes the fixed length in 11 bytes one packet and the data organization is as
follows.
Word 1
STX ( Start of Text A0h )
Word 2
Destination address ( 01h-1Fh )
Word 3
Source address ( 00h-1Fh )
Word 4
Command 1
Word 5
Command 2
Word 6
Data 1
Word 7
Data 2
Word 8
Data 3
Word 9
Data 4
Word 10 ETX (End of Text AFh )
Word 11 Checksum (Word2-9 is totaled and the 1's complement is taken).
How to request checksum
a) Word2-Word9 is totaled.
b) The value totaled from FFFFh is pulled.
c) Checksum that the last 2 digits requests.
Example: When the total of Word2-Word9 is 567h or A00h
FFFFh – 567h = FA98h -> 98h
FFFFh – A00h = F5FFh -> FFh
4
) Reply command
Reply command informs actuator that housing camera recognizes and executed command for
transmission command transmitted from actuator. The destination address and the source address
of the transmission command are replaced and the reply command is transmitted.
Reply command format
Notes
As for data 1-3 of the reply command, the same data as the transmission command is sent back.
However, data is buried when there is reading information by the transmission command. The
housing camera transmits the transmission command, and it receives, and after it executes it, the
reply command is transmitted. It differs according to the command between that time, and when
the reply command is not transmitted for two seconds or more after the transmission command is
transmitted, it can be judged the failure of the housing camera.
Word 1
STX ( Start of Text A0h )
Word 2
Destination address ( 01h-1Fh )
Word 3
Source address ( 00h-1Fh )
Word 4
Command 1
Word 5
Command 2
Word 6
Data 1
Notes
Word 7
Data 2
Word 8
Data 3
Word 9
Error
Word 10
ETX (End of Text AFh )
Word 11
Checksum (Word2-9 is totaled and the 1's complement is taken).
Содержание KP-D5010-S1
Страница 48: ...Revision A June 27 2011 48 49 ...