35
Settings for Sending FINS Commands Section 3-4
3-4-1 FINS Command and Response Formats
Command Format As shown below, the command format basically consists of the command
code (four digits hexadecimal) and parameters (text).
Note The command code is a 2-byte code that expresses the content of the com-
mand. A FINS command must begin with a 2-byte command code. If there is
also text, it is added after the command code.
Example: Command for Reading I/O Memory
The following data would read 10 words starting from D00010.
Response Format As shown below, the response format basically consists of the command code
(four digits hexadecimal), end code, and parameters (text).
Note The end code is a 2-byte code that shows the command execution result.
(The first byte shows the general category, and the second byte shows the
detailed results.)
Example: Response from Reading I/O Memory
Actual response data would be as follows:
Command code (See note.)
4 digits hexadecimal
(2 bytes)
Text (Various kinds of data)
The length depends on the command code.
01 01 Hex
Memory area
code
Beginning read
address
Number of
read elements
Command code
Text
01 01 Hex
Command
code
First read
address
000A Hex00 0A 00 Hex82 Hex
Memory area
code
Number of
read elements
Parameters
End code (See note.)
Command code
4 digits hexadecimal
(2 bytes)
Text (Various kinds of data)
The length depends on the command code.
01 01 Hex
Command code
Text
End code
End code
Read data
01 01 Hex
Command
code
Text: 10 words (20 bytes)
of read data.
00 00 Hex
Response
code