User Module. Modbus TCP2RTU. Application note

Similar documents
User Module. Modbus RTU2TCP APPLICATION NOTE

User Module. DF1 Ethernet APPLICATION NOTE

User Module ALPHA-MODBUS. Application Note

User module. PPP Gateway APPLICATION NOTE

User module. Protocol IEC101/104 APPLICATION NOTE

User Module. AT Modem Emulator APPLICATION NOTE

Expansion Port CNT USER MANUAL

User module RIP APPLICATION NOTE

Version Action Author Date

User module OSPF APPLICATION NOTE

Expansion port ETH USER S GUIDE

User Module. WiFi SSID Switch APPLICATION NOTE

/ Expansion port MBUSD OBSAH USERS GUIDE

isma-b-mg-ip User Manual Global Control 5 Sp. z o.o. Poland, Warsaw

User Module. File Uploader APPLICATION NOTE

Expansion Port RS485/RS422

User module. Guest Configuration APPLICATION NOTE

Expansion Port SWITCH USER MANUAL

Expansion Port RS232 USER MANUAL

GRE Tunnel APPLICATION NOTE

Interface design document MODBUS Protocol. Ab s t r a c t Description of the MODBUS implementation for the Modbus I/O board

IQ Home Modbus-RTU Master

Expansion Port RS485/RS422 USER MANUAL

RS485 MODBUS Module 8I8O

VISY-Command. Technical Documentation. with Modbus Protocol. Edition: Version: 1 Art. no.:

RS485 IO Slim Module MOD-ETH

RS485 MODBUS Module 16I-M

RS 485 Mini Modbus 1AO

Fingerprint_Protocol_All_English

MODEL CIO-EN PROGRAMMING GUIDE MODBUS/TCP, MODBUS/RTU I/O MODULE. Revision A1 Rapid City, SD, USA, 09/2008

RS485 MODBUS Module 8AO

User module PIM SM APPLICATION NOTE

Expansion port WIFI OBSAH. USER S GUIDE

ATK3 I/O Module (Modbus Slave)

Preface, Table of Contents

User module. Modem Bonding APPLICATION NOTE

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM102(1739) For 4511 devices from ser. no:

Chapter 5: Communications 5 1 SR55 Communications Overview 5 2

Version. Table of Contents

Optidrive VTC Modbus RTU Register Map

RS485 MODBUS Module 8I8RO

VPGate Manual PROFIBUS to serial

For more information Contact with details of the application.

SDM-8AO. Expansion Module 8 analog outputs. Manufactured for

P-Bus Gateway Firmware

GW-7472 / GW EtherNet/IP to Modbus RTU/TCP Gateway User Manual

Mitsubishi FX3 Driver Configuration Manual

Modbus Protocol For FTS/FTM 3x&8x

EDGE router ER75i. Content of package : Modem ER75i Power supply Antenna Crossover UTP cable Installation CD with instruction and drivers

Modbus on tsense. Table of contents:

SC2004MBS 20x4 Characters MODBUS RTU Slave LCD

SDM-8I8O. Expansion Module 8 digital inputs, 8 digital outputs. Manufactured for

T7 Modbus Communication User Guide

S u p p l e m e n t TQS3 MODBUS. Description of product modification with MODBUS RTU. 31. March 2008 w w w. p a p o u c h.

Modbus Protocol Guide for ZP2 Series Control Panels

MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1a CONTENTS

PMAC770 LAN Module User Manual V1.0

Dynamic Multipoint VPN APPLICATION NOTE

B Interface description 12.01/

TECH TIP. Tritex Modbus Protocol Specification

Protocol of data exchange with modem via USB interface Version

OpenVPN Tunnel APPLICATION NOTE

DULCOMETER Multi-parameter Controller dialog DACa

Beijer Electronics has no obligation to supply the holder with updated versions.

E2 Modbus RTU Register Map Revision History Version Comments Author Date 1.02 Previous version PAE 11/06/ Revised to new format PAE 09/03/09

Winsonic MODBUS Remote IO user manual Rev. 1.0

Embedded Modbus TCP Module GS11-MT. User Manual REV 1.1. SST Automation.

3GV M Modbus RTU Register Map

Arctic Modbus Gateway Configuration Manual

USER MANUAL. Modbus IHP24-A IHP24-AF IHP24-B IHP24-BF IHP24-F IHP24-I 1/26

NA User Manual. Copyright(C) * CREVIS Co.,Ltd * Support * URL :

ambient XC RS232 Control Command Specification

IF96017 MODBUS COMMUNICATION PROTOCOL

JUMO ctron 04/08/16. Compact controller with timer and ramp function. B Interface Description Modbus /

COMMUNICATION MODBUS PROTOCOL

User Manual version 1.04 TLM8 COMMUNICATION PROTOCOLS

DataVU 5 - Interface Manual Modbus

DataVU 5 - Interface Manual Modbus

Modbus Protocol For TGP03 / THP03

4511 MODBUS RTU. Configuration Manual. Solenoid / alarm driver. No. 9203MCM100(1328)

INSTRUCTION MANUAL ESI-Manager communication How to use RS485 USB Ethernet connections

MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1b3 CONTENTS

AP-ENBD User Manual V0.2

ETOR-4. Ethernet/Serial Gateway USER MANUAL

TORRIX RS485. Technical Documentation. with MODBUS Protocol. Edition: Version: 2 Art. no.:

TR600 with RS485 Appendix 1

Any device, including routers and hosts, is running an implementation of IP address Host

The Roboteq Modbus Implementation User Manual

Sample F4T 32-bit Modbus RTU Packet

MODBUS APPLICATION PROTOCOL SPECIFICATION V1.1b3 CONTENTS

APPLICATION NOTE. OJ-DRHX Modbus protocol OJ DRHX A DRIVES PROGRAMME DEDICATED TO ROTARY HEAT EXCHANGERS /17 (OSH) 2017 OJ Electronics A/S

PRODUCT PROFILE & OUTLINE...6

Gastrack Gas Analyser

Conto D2 COMMUNICATION PROTOCOL CONTENTS 1.0 INTRODUCTION

Sample F4T 32-bit Modbus RTU Packet

for Energy and Power meters AEM and APM with Modbus interface

[ 公司地址 ] Modbus Protocol. For THS/THM 30X&80X_Temp.&Humididy & THS8X/THM8X_Dew Point Series V7.0

BMS CAN Manual. V2.0, September 3, 2018 Visit to download the latest revision of this manual Copyright 2018 Roboteq, Inc

E2 Modbus RTU Register Map

The RS-485 user manual for B800 series communication

Transcription:

User Module Modbus TCP2RTU Application note

Used symbols Danger important notice, which may have an influence on the user s safety or the function of the device. Attention notice on possible problems, which can arise in specific cases. Information, notice information, which contains useful advice or special interest. Advantech B+B SmartWorx s.r.o., Sokolská 71, 562 04 Ústí nad Orlicí, Česká Republika Manual issued in CZ, August 7, 2017 i

Contents 1 Description of user module 1 2 Configuration 2 3 I/O & XC-CNT MODBUS TCP server 4 3.1 Basic characteristic.................................. 4 3.2 Address space of router............................... 4 4 Recommended literature 7 ii

List of Figures 1 Modbus message on TCP/IP............................ 1 2 Modbus message on serial line........................... 1 3 Configuration form.................................. 3 List of Tables 1 Configuration form.................................. 3 2 I/O........................................... 4 3 XC-CNT PORT1.................................. 5 4 XC-CNT PORT2.................................. 6 5 Other information................................... 6 iii

1. Description of user module User module Modbus TCP2RTU is not contained in the standard router firmware. Uploading of this user module is described in the Configuration manual (see [1, 2]). Modbus TCP2RTU is v2 and v3 router platforms compatible. User module provides the conversion of MODBUS TCP protocol to MODBUS RTU protocol, which can by used on the serial line. As serial port can be used expansion port RS232 or expansion port RS485/422 fitted in PORT1 or PORT2. For both protocols is a common part PDU. When sending MODBUS ADU on the TCP/IP is used for identification MBAP header. For MODBUS TCP ADU is dedicated port 502. Figure 1: Modbus message on TCP/IP When sending a PDU on the serial line, is added address destination unit, which is obtained from a MBAP header as UNIT ID and checksum to the PDU. Figure 2: Modbus message on serial line Now this module supports automatic detection of port RS485. This port is created as expansion board which enables to use of the next hardware interface. Expansion port RS485 is possible fitted into PORT1 and PORT2. Detailed information about this port can be found in User s manual Expansion port RS485/422 (see [4]). 1

2. Configuration For configuration Modbus TCP2RTU user module is available web interface, which is invoked by pressing the module name on the User modules page of the router web interface. The left part of the web interface contains these items: Config, Stats and Return. Return switches this web interface to the interface of the router. Stats page displays statistical information. Configuration form can be invoked by pressing Config item. Meaning of the individual items is the following: Item Enable Expansion port Description Enables conversion of MODBUS TCP/IP protocol into MODBUS RTU Port on which MODBUS RTU connection will be established: PORT1 Establishes MODBUS RTU connection on PORT 1 PORT2 Establishes MODBUS RTU connection on PORT 2 Baudrate Data Bits Parity Applied communication speed Number of data bits Control parity bit: none No parity will be sent even Even parity will be sent odd Odd parity will be sent Stop Bits Split Timeout TCP Mode Number of stop bits Time for breaking off message (see note below) Selection of mode: Server TCP server Client TCP client Server Address TCP Port Defines server address when selected mode is Client (in TCP Mode item). TCP port on which the router listens to requests for MODBUS TCP connection. For sending MODBUS ADU is reserved port 502. Continued on next page 2

Continued from previous page Item Reply Timeout Description Specifies the time interval in which it is expecting a response. If the response doesn t receive, it will be sent one of these error codes: 0A Transmission path unavailable Gateway is not able to allocate internal transmission path from the input port to the output port. It is probably overloaded or incorrectly set. 0B The target device doesn t response The target device doesn t response, may not be available. Table 1: Configuration form All changes in settings will be applied after pressing the Apply button. Note: If some space between the two characters is recognized when receiving and if this space is longer than the parameter value in milliseconds, message from all received data is compiled and then sent. Figure 3: Configuration form 3

3. I/O & XC-CNT MODBUS TCP server 3.1 Basic characteristic I/O protocol and XC-CNT MODBUS TCP server is one of the router communication protocol with a Modbus TCP2RTU user module based on the I/O interface and XC-CNT expansion boards. Router provides current state of inputs in real time. System can read it using message with 0x03 code (reading values of more registers). Using messages with the code 0x10 (writing values of more registers) system can control digital outputs and set the state counters. 3.2 Address space of router Address Access Description 0x0400 R/- upper 16 bits of temperature in router [ C] (with sign) 0x0401 R/- lower 16 bits of temperature in router [ C] (with sign) 0x0402 R/- upper 16 bits of the supply voltage [mv] 0x0403 R/- lower 16 bits of the supply voltage [mv] 0x0404 R/- not used, always 0 0x0405 R/- not used, always 0 0x0406 R/- not used, always 0 0x0407 R/- not used, always 0 0x0408 R/- state of upper 16 binary inputs: 0x0409 R/- state of lower 16 binary inputs: bit 0 level at the input BIN0 bits 1 to 15 not used, always 0 0x040A R/W state of upper 16 binary outputs: 0x040B R/W state of lower 16 binary outputs: bit 0 level at the output BOUT0 bits 1 to 15 not used, always 0 0x040C R/- not used, always 0 0x040D R/- not used, always 0 0x040E R/- not used, always 0 0x040F R/- not used, always 0 Table 2: I/O 4

Address Access Description 0x0410 R/- upper 16 bits of AN1 value, always 0 0x0411 R/- lower 16 bits of AN1 value, value from 12-bit A-D converter 0x0412 R/- upper 16 bits of AN2 value, always 0 0x0413 R/- lower 16 bits of AN2 value, value from 12-bit A-D converter 0x0414 R/W upper 16 bits of CNT1 0x0415 R/W lower 16 bits of CNT1 0x0416 R/W upper 16 bits of CNT2 0x0417 R/W lower 16 bits of CNT2 0x0418 R/- state of upper 16 binary inputs: 0x0419 R/- state of lower 16 binary inputs: bit 0 level at the input BIN1 bit 1 level at the input BIN2 bit 2 level at the input BIN3 bit 3 level at the input BIN4 bits 4 to 15 not used, always 0 0x041A R/W state of upper 16 binary outputs: 0x041B R/W state of lower 16 binary outputs: bit 0 level at the output BOUT1 bits 1 to 15 not used, always 0 0x041C R/- not used, always 0 0x041D R/- not used, always 0 0x041E R/- not used, always 0 0x041F R/- not used, always 0 Table 3: XC-CNT PORT1 Address Access Description 0x0420 R/- upper 16 bits of AN1 value, always 0 0x0421 R/- lower 16 bits of AN1 value, value from 12-bit A-D converter 0x0422 R/- upper 16 bits of AN2 value, always 0 0x0423 R/- lower 16 bits of AN2 value, value from 12-bit A-D converter 0x0424 R/W upper 16 bits of CNT1 0x0425 R/W lower 16 bits of CNT1 Continued on next page 5

Address Access Description Continued from previous page 0x0426 R/W upper 16 bits of CNT2 0x0427 R/W lower 16 bits of CNT2 0x0428 R/- state of upper 16 binary inputs: 0x0429 R/- state of lower 16 binary inputs: bit 0 level at the input BIN1 bit 1 level at the input BIN2 bit 2 level at the input BIN3 bit 3 level at the input BIN4 bits 4 to 15 not used, always 0 0x042A R/W state of upper 16 binary outputs: 0x042B R/W state of lower 16 binary outputs: bit 0 level at the output BOUT1 bits 1 to 15 not used, always 0 0x042C R/- not used, always 0 0x042D R/- not used, always 0 0x042E R/- not used, always 0 0x042F R/- not used, always 0 Address Access Description Table 4: XC-CNT PORT2 0x0430 R/- upper 16 bits of serial number 0x0431 R/- lower 16 bits of serial number 0x0432 R/- 1 st and 2 nd byte of MAC address 0x0433 R/- 3 rd and 4 th byte of MAC address 0x0434 R/- 5 th and 6 th byte of MAC address 0x0435 R/- 1 st and 2 nd byte of IP address MWAN 0x0436 R/- 3 rd and 4 th byte of IP address MWAN Notes: Table 5: Other information In case of absence XC-CNT board all corresponding values are 0. Information about the current fitting and configuration of XC-CNT boards can be found in the system log after starting the user module. Writing is in fact possible to all registers. Writing to the registry, which is not designed for writing, is always successful, however there is no physically change. 6

4. Recommended literature [1] Conel: Configuration manual for v2 routers [2] Conel: Configuration manual for v3 routers [3] Conel: User guide Expansion port RS232 [4] Conel: User guide Expansion port RS485/422 7