4 MESSAGES OF SERIAL COMMUNICATION MODULE
4.2 Message Formats of Each Protocol
33
4
Format 5
Message format
■Request message
■Response message (Normal completion: Response data)
■Response message (Normal completion: No response data)
■Response message (Abnormal completion)
Setting data
Set the following items.
Item Description Reference
Control code
(DLE, STX, ETX)
A code is defined for control. Page 34 Control code
Number of data bytes A number of bytes from a frame ID No. to control code (DLE, ETX). Page 35 Number of data bytes
Frame ID No. Specify the frame to be used. Page 36 Frame ID No.
Access route Specify the access route. Page 45 ACCESS ROUTE
SETTINGS
Request data Set the command that indicates the request content. Refer to "Request data" rows of each
command.
Page 62 COMMANDS AND
FUNCTIONS
Response data Store the read data for the command. Refer to "Response data" rows of each command.
Sum check code The value of the lower one byte (8 bits) of the additional result regarding the data in the sum
check target range as a binary data.
Page 36 Sum check code
Response ID code This indicates a response message. The 2-byte numerical value, 'FFFFH' is stored.
Normal completion code This indicates the processing is completed normally. The 2-byte value, '0000H' is stored.
Error code Error code indicates the content of occurred error. Page 38 Error code
DLE
10H
STX
02H
DLE
10H
ETX
03H
F8
H
Frame
ID No.
Control codeControl code
Number of
data bytes
Access route Request
data
Sum check code
Specify the number of bytes in this range.
Sum check range
DLE
10H
STX
02H
DLE
10H
ETX
03H
F8H FFFFH 0000H
Frame
ID No.
Response
ID code
Normal
completion
code
Control codeControl code
Number of
data bytes
Access route Response
data
Sum check code
Specify the number of bytes in this range.
Sum check range
DLE
10
H
STX
02
H
DLE
10
H
ETX
03
H
F8
H
FFFF
H
0000
H
Frame
ID No.
Response
ID code
Normal
completion
code
Control codeControl code
Number of
data bytes
Access route
Sum check code
Specify the number of bytes in this range.
Sum check range
DLE
10H
STX
02H
DLE
10H
ETX
03H
F8H FFFFH
Frame
ID No.
Response
ID code
Control codeControl code
Number of
data bytes
Access route Error
codes
Sum check code
Specify the number of bytes in this range.
Sum check range