
Chapter 8 Communication Functions
8-11
(4) Response format (NAK response)
Format name
Header
Station No.
Command
Command type
Error code
(Hex 2 Byte)
Tail
Frame check
Ex. of frame
NAK
H20
R(r)
SS
H1132
ETX
BCC
ASCII value
H15
H3230
H52(72) H5353 H31313332
H03
Item
Explanation
BCC
When command is lowercase(r), only one lower byte of the value resulted by adding 1
Byte each to ASCII values from NAK to ETX is converted into ASCII and added to BCC.
Error code
Hex and 2 bytes(ASCII code, 4 bytes) indicate error type. For the details, see 8.1.8 Error
codes.
(5) Example
This example supposes when 1 WORD from M20 and 1 WORD from P001 address of station No.1 are read and BCC value
is checked. Also it is supposed that H1234 is entered in M20, and data of H5678 is entered in P001.
①
Computer request format (PC
→
MASTER-K120S main Unit)
Format name Header Station No. Command
Command
type
Number of
blocks
Variable
length
Format
name
Device
length
Format name Tail
Frame
check
Ex. of frame ENQ
H01
r
SS
H02
H05
%MW20
H06
%PW001 EOT BCC
ASCII value
H05
H3031
H72 H5353
H3032
H3035
H254D57
3230
H3036
H25505730
3031
H04
②
For ACK response after execution of command(PC
←
MASTER-K120S main Unit)
Format name
Header Station No. Command
Command
type
Number of
blocks
Number of
data
Data
Number of
data
Data
Tail
Frame
check
Ex. of frame ACK
H01
r
SS
H02 H02 H1234 H02 H5678
ETX
BCC
ASCII value
H06
H3031
H72
H5353
H3032
H3032 H31323334 H3032 H35363738 H03
K120S main unit
Содержание MASTER-K 120S Series
Страница 26: ...Chapter 4 Names of Parts 4 3 2 K7M DRT60U 3 K7M DT60U 4 1 2 40 points main unit Standard 1 K7M DR40U ...
Страница 27: ...Chapter 4 Names of Parts 4 4 2 K7M DRT40U 3 K7M DT40U 4 1 3 30 points main unit Standard 1 K7M DR30U ...
Страница 28: ...Chapter 4 Names of Parts 4 5 2 K7M DRT30U 3 K7M DT30U 4 1 4 20 points main unit Standard 1 K7M DR20U ...
Страница 29: ...Chapter 4 Names of Parts 4 6 2 K7M DRT20U 3 K7M DT20U 4 1 5 30 points main unit Economic 1 K7M DR30UE ...
Страница 138: ...Chapter 7 Usage of Various Functions 7 54 c Program ...
Страница 306: ...Appendix 3 External Dimensions App3 2 2 Slim type G7E DC08A G7E RY08A G7F ADHB G7F DA2V G7F RD2A ...