1-5
Frames (CompoWay/F Communications) Section 1-2
CompoWay/F
Communications
1-2 Frames (CompoWay/F Communications)
Based on CompoWay/F protocol, commands from the host computer and
responses from the K3HB take the form of frames.
The data comprising command frames and response frames are explained
below.
In the following explanation, an “H” following a numeric value (for example
02H) indicates that the value is a hexadecimal number. A number or letters
enclosed in quotation marks (for example “00”) is an ASCII character.
1-2-1 Command Frame
1-2-2 Response Frame
Supplement A response is not sent to command frames that do not end with ETX.BCC
characters.
STX Code that indicates the beginning of the communications
frame (02H).
Be sure to set this code in the leading byte.
Node No. This number specifies the destination.
Specify the Unit No. of the K3HB.
When broadcasting to all units, specify “XX”. Responses are
not sent to a broadcast.
Sub-address Not used on the K3HB. Be sure to set to “00”.
SID (Service ID) Not used on the K3HB. Be sure to set to “0”.
FINS-mini
Command text
The text of the command.
ETX Code that indicates the end of the text (03H).
BCC Block Check Character.
This stores the result of the BCC calculation from Node No. to
EXT.
02H "00" "0"
FINS-mini
command text
BCC calculation range
SIDSTX
1
03H
ETX
1
BCC
1 byte221
Sub-
address
Node
No.
02H 30H 30H 30H 30H 30H 30H 35H 30H 30H 03H 36H
FINS-mini
command text
SIDSTX ETX BCC
BCC = 30H + 30H + 30H + 30H + 30H + 30H + 35H + 30H + 30H + 03H = 36H
+: XOR (exclusive OR) operation
Node
No.
Sub-
address
02H "00"
FINS-mini
response text
End
Code
STX
1
03H
ETX
1
BCC
1 byte222
Node
No.
Sub-
address
STX Code that indicates the beginning of the communications
frame (02H).
Be sure to set this code in the leading byte.
Node No. The number that was specified in the command frame is
repeated here.
This is the Unit No. of the responding K3HB.
Sub-address Not used on the K3HB. Set to “00”.