2.15 Using Message Functions
Using Function Codes
2-360
Using Function Codes
This section describes the use of the message function for each function code.
Function Codes: 01, 02, 03, 04, 09, and 0A Hex
Function: Reads data.
The specified size of data is read from specified registers in the remote station and stored in regis-
ters in the local station.
The following parameters need to be set in the MSG-SNDE function.
Function Codes for the QnA-compatible 3E Frame Protocol
Function Code Function
01 or 02 hex Reads bit devices in units of one point.
03, 04, 09, or 0A hex Reads word devices in units of one point.
05 or 0F hex Writes bit devices in units of one point.
06, 0B, or 10 hex Writes word devices in units of one point.
0E hex Writes word devices in units of one point.
0D hex Reads word devices in units of one point.
08 hex Performs a loopback test.
Function Codes for the FINS Protocol
Function Code Function
01 hex
Reads CIO Area bits, Work Area bits, Holding Area bits, and Auxiliary Area bits by
word.
03 or 09 hex Reads from the DM Area in units of one word.
0F hex
Writes to CIO Area bits, Work Area bits, Holding Area bits, and Auxiliary Area bits by
word.
0B or 10 hex Writes to the DM data memory in units of one word.
0D hex Reads non-consecutive words from the DM Area.
Function Codes for the TOYOPUC Protocol
Function Code Function
31 hex Writes to the file memory by word.
MSG-SNDE Function Parameter Description
PARAM10 Connection Number Set the connection number used to determine the remote station.
PARAM11 Option
This parameter is used with the QnA-compatible 3E Frame protocol
and the FINS protocol. Refer to the section for each protocol for
details.
PARAM12 Function Code Set the function code for the function to use.
PARAM14
Remote Station Data
Address, Lower Word
Set the first address to read from in the remote station.
Specify a bit address for function codes 01 and 02 hex, and a word
address for function codes 03, 04, 09, and 0A hex.
PARAM15
Remote Station Data
Address, Upper Word
Not used.
PARAM16
Remote Station Register
Type
Not used.
PARAM17 Data Size
Set the size of the data to read.
Specify the size in bits for function codes 01 and 02 hex, and in words
for function codes 03, 04, 09, and 0A hex.
Continued on next page.