Fins Command And Response Formats - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Settings for Sending FINS Commands
3-4-1

FINS Command and Response Formats

Command Format
Response Format
Command code
4 digits hexadecimal
(2 bytes)
As shown below, the command format basically consists of the command
code (four digits hexadecimal) and parameters (text).
Command code (See note.)
4 digits hexadecimal
(2 bytes)
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
Memory area
01 01 Hex
code
Command code
The following data would read 10 words starting from D00010.
01 01 Hex
Command
Memory area
code
code
As shown below, the response format basically consists of the command code
(four digits hexadecimal), end code, and parameters (text).
End code (See note.)
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:
01 01 Hex
Text (Various kinds of data)
The length depends on the command code.
Beginning read
address
Text
82 Hex
00 0A 00 Hex
First read
address
Parameters
Text (Various kinds of data)
The length depends on the command code.
End code
01 01 Hex
Command code
End code
00 00 Hex
Response
Command
code
code
Section 3-4
Number of
read elements
000A Hex
Number of
read elements
Read data
Text
Text: 10 words (20 bytes)
of read data.
35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents