
Chapter 8 Communication Functions
8-14
(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 H10 r
SB
H1132 ETX BCC
ASCII value
H15 H3130 H72 H5342 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, and sent.
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 that 2 WORDs from M000 of station No. 10 is read and BCC value is checked. Also it is supposed
that data in M000 and in M001 is as follow:
M000 = H1234
M001 = H5678
①
Computer request format (PC
→
MASTER-K120S Main Unit)
Format name
Header
Station No.
Command
Command
type
Device length
Device name Number of data
Tail
Frame check
Frame (Example) ENQ H0A
r
SB
H06 %MW000 H02 EOT BCC
ASCII value
H05
H3041
H72
H5342
H3036
H254D5730
3030
H3032 H04
②
For ACK response after execution of command(PC
←
MASTER-K120S Main Unit)
Format name
Header
Station No.
Command
Command
type
Number of
data
Data
Tail
Frame check
Frame (Example) ACK H0A
r
SB
H04
12345678
ETX BCC
ASCII value
H06
H3041
H72 H5342 H3034
H3132333435363738
03
③
For NAK response after execution of command(PC
←
MASTER-K120S Main Unit)
Format name
Header
Station No>
Command
Command type
Error code
Tail
BCC
Frame (Example)
NAK H0A
r
SB
Error code
(2Byte)
ETX
BCC
ASCII
value
H15 H3041 H72 H5342
Error code
(4Byte)
H03
Содержание 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 ...