Manual
Table Of Contents
- Table of Contents
- 1. ENVIRONMENT SPECIFICATION
- 2. NA-9379 (FNIO MODBUS PROGRAMMABLE I/O)
- 3. MODBUS/RTU INTERFACE (NOT TCP)
- 3.1. Surpported MODBUS Function Codes
- 3.1.1. 1 (0x01) Read Coils
- 3.1.2. 2 (0x02) Read Discrete Inputs
- 3.1.3. 3 (0x03) Read Holding Resgisters
- 3.1.4. 4 (0x04) Read Input Resgisters
- 3.1.5. 5 (0x05) Write Single Coil
- 3.1.6. 6 (0x06) Write Single Register
- 3.1.7. 8 (0x08) Diagnostics
- 3.1.8. 15 (0x0F) Write Multiple Coils
- 3.1.9. 16 (0x10) Write Multiple Resgisters
- 3.1.10. 23 (0x17) Read/Write Multiple Resgisters
- 3.1.11. Error Response
- 3.2. MODBUS Special Register Map
- 3.2.1. Adapter Resgister Mapping
- 3.2.2. Adapter Identification Special Resgister (0x1000, 4096)
- 3.2.3. Adapter Watchdog Time, other Time Special Register (0x1020, 4128)
- 3.2.4. Adapter Information Special Register (0x1100, 4352)
- 3.2.5. Adapter Setting Special Register (0x1600, 5632)
- 3.2.6. Expasion Slot Information Special Resister (0x2000, 8192)
- 3.3. Surpported MODBUS Function Codes
- 3.1. Surpported MODBUS Function Codes

NA-9379
Specification
Revision 1.02
FnBus PIO N/A
Page 14
3.1.7. 8 (0x08) Diagnostics
MODBUS function code 08 provides a series of tests for checking the communication system between a client
( Master) device and a server ( Slave), or for checking various internal error conditions within a server.
The function uses a two–byte sub-function code field in the query to define the type of test to be performed. The server
echoes both the function code and sub-function code in a normal response. Some of the diagnostics cause data to be
returned from the remote device in the data field of a normal response.
• Request
Field name Example
Function Code 0x08
Sub-Function Hi 0x00
Sub-Function Lo 0x00
Data Hi 0x11
Data Lo 0x22
• Response
Field name Example
Function Code 0x08
Sub-Function Hi 0x00
Sub-Function Lo 0x00
Data Hi 0x11
Data Lo 0x22
Sub-function 0x0000(0) Return Query Data
The data passed in the request data field is to be returned (looped back) in the response.
The entire response message should be identical to the request.
Sub-function Data Field (Request) Data Field (Response) Description
0x0000(0) Any Echo Request Data
Sub-function 0x0001(1) Restart Communications Option
The remote device could be initialized and restarted, and all of its communications event counters are cleared.
Especially, data field 0x55AA make the remote device to restart with factory default setup of EEPROM.
Sub-function Data Field (Request) Data Field (Response) Description
0x0001(1) 0x0000 or 0xFF00 Echo Request Data Reset
0x0001(1) 0x55AA Echo Request Data Reset with Parameter
default
1)
0x0001(1) 0x55BB Echo Request Data Erase CoDeSys
program ²
)
1) NA-9379 and slot parameter will be the factory defaults value.
2) If all program is erased, NA-9379 change Stop mode. (about 10 sec)
Sub-function 0x000A(10) Clear Counters and Diagnostic Register
The goal is to clear all counters and the diagnostic register. Counters are also cleared upon power–up.
Sub-function Data Field (Request) Data Field (Response) Description
0x000A(10) 0x0000 Echo Request Data
PRELIMINARY