background image

Modbus RTU

TCP Server User Manual for LinPAC / LinCon 

 

Ver : 1.0 (

2009.04) 

 

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  based) 

LinCon-8000(Linux  kernel  2.4.21  based) 

.  

Содержание LinPAC-8000

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: