background image

Modbus RTU

TCP Server User Manual for LinPAC / LinCon 

 

Ver : 1.0 (

2009.04) 

 

11 

L2

 

 

[*] I-8017

I-87017 supports 5 range modes for option, you can specify following type 

code to interpret your response data.   

0: depend on the current setting of I/O module. 

1: +/- 10.0V, 

2: +/- 5.0V, 

3: +/- 2.5V, 

4: +/- 1.25V, 

5: +/- 20mA. 

You can read current range setting by using function code 108 and sub function code 

7. For more detail, please refer to the Function Code 108 session. 

 

 Response PDU 

Byte 0 

Byte 1 

Byte 2 

Byte 3 

  (Byte Count + 2) 

Device Net ID 

Function code 

Byte count   

Response AI values 

ID 

04 

Response data length [**] 

two bytes / pre AI register 

[**] AI value is presented in a WORD signature = 2 Bytes. 

 

 

 

2-5.  Function Code 05

Write Single Coil (0xxxx)   

This function code is used to write the ON/OFF status for single DO point. 

 Request PDU 

Byte 0 

Byte 1 

Byte 2 

Byte 3 

Byte 4 

Byte 5 

Device Net ID 

Function code 

Address Hi 

Address Lo 

Set value Hi 

Set value Lo 

ID 

05 

Slot Index (1~8) 

DO Address 

FF

00 [*] 

00 

[*] 0xFF to trun ON the coil, 0x00 to trun OFF the coil. 

 

 

 Response PDU 

Byte 0 

Byte 1 

Byte 2 

Byte 3 

Byte 4 

Byte 5 

Device Net ID 

Function code 

Address Hi 

Address Lo 

eched value Hi 

eched value Lo 

ID 

05 

Slot Index (1~8) 

DO Address 

FF

00   

00 

 

 

Summary of Contents for LinPAC-8000

Page 1: ...PAC LinCon Ver 1 0 2009 04 1 L2 TM Modbus RTU TCP Server User Manual LinPAC LinCon Version 1 0 This document applied to models LinPAC 8000 Linux kernel 2 6 19 based LinPAC 8x81 Linux kernel 2 6 18 bas...

Page 2: ...crete Inputs 1xxxx 9 2 3 Function Code 03 Read Holding Registers 4xxxx 9 2 4 Function Code 04 Read Input Registers 3xxxx 10 2 5 Function Code 05 Write Single Coil 0xxxx 11 2 6 Function Code 06 Write S...

Page 3: ...H 1 Introduction This manual is written for modbus users of ICPDAS LinPAC and LinCon series and it only supports 8K 87K I O Modules This document will guid you How to setup Modbus Server on your devic...

Page 4: ...ver10 STEP 3 Before executing LinPAC LinCon Modbus Server you have to check what s the index number of your TTY devices dmesg grep ttyS In general LinCon support 2 serial ports ttyS0 COM2 RS 232 Recom...

Page 5: ...erver file to etc init d of your LinPAC LinCon STEP 2 Edit mbserver script file specify mbserver10 directory and modify parameters to fit your system STEP 3 Creat a symbolic link in etc rc2 d director...

Page 6: ...Modbus RTU TCP Server User Manual for LinPAC LinCon Ver 1 0 2009 04 6 L2 Ordering Information CA 0910F 9 pin Female Female D sub cable 1M Cable...

Page 7: ...single register 4xxxx for AO 2 6 15 Force multiple coils 0xxxx for DO 2 7 16 Write multiple registers 4xxxx for AO 2 8 108 7 Read range code of ICPDAS AI O module 2 9 1 8 Set range code of ICPDAS AI O...

Page 8: ...the unique of the network Response PDU Byte 0 Byte 1 Byte 2 Byte 3 Byte Count 2 Device Net ID Function code Byte count bit count 7 8 Response coils data ID 01 Response data length DO ON OFF status Lea...

Page 9: ...value ID 02 Response data length DI ON OFF status Least Significant Bit LSB is the first DI value If the data bits is not a multiple of eight the remaining bits will be padded with zeros 2 3 Function...

Page 10: ...ngth Byte 04 Address Lo AO start address 03 Hi 13 Hi 00 AO 3 read back value Lo 8F Data Count Lo 02 Hi EC AO 4 read bacek value Lo 78 From above example the response value of AO 3 is 0x138F then we ca...

Page 11: ...evice Net ID Function code Byte count Response AI values ID 04 Response data length two bytes pre AI register AI value is presented in a WORD signature 2 Bytes 2 5 Function Code 05 Write Single Coil 0...

Page 12: ...yte 5 Device Net ID Function code Address Hi Address Lo Data value Hi Data value Lo ID 06 Slot Index 1 8 AO Address Echoed setting value 2 7 Function Code 15 Write Multiple Coils 0xxxx This function c...

Page 13: ...yte 3 Byte 4 Byte 5 Device Net ID Function code Address Hi Address Lo Contiguous AO Count ID 0x10 Slot Index 1 8 AO Address Hi Lo 2 9 Function Code 108 Device Configuration This function code is defin...

Page 14: ...ion Code 07 Set range code of AI O module Request PDU Byte 0 Byte1 Byte 2 Byte 2 Byte 3 Byte Devic ID Func Code Sub Func Code Address Hi Address Lo Set value ID 0x6C 0x08 Slot Index 1 8 I O Address Ra...

Reviews: