Connecting UniOP Using Generic Modbus RTU

Similar documents
Connecting UniOP as a Modbus Slave

Connecting UniOP to Fatek Controllers with Facon Protocol

ABB Modbus RTU Driver for JMobile

Connecting UniOP to Modbus/TCP

Connecting UniOP to Unidrive SP with Modbus CMP Protocol

Connecting UniOP as Modbus/TCP Server

Connecting UniOP to Omron PLCs with the FINS Protocol

Connecting UniOP to CoDeSys Controllers via Ethernet

Connecting UniOP to Moeller Easy800

Connecting UniOP to Galil/Yaskawa controllers

Connecting UniOP to Beckhoff ADS Ethernet

Modbus TCP Driver for JMobile

Getting started with UniOP and CoDeSys integrated controller

Modbus TCP Server Driver for JMobile

Contents 1. Introduction

Panasonic FP Serial Driver for JMobile

ROC Plus Communication Driver for JMobile

CANopen HMI Communication Driver for JMobile

Modbus Remote Communication Protocol for REM 54_. Technical Description

Control Techniques Unidrive - Modbus CMP Ethernet Driver for JMobile

Profibus DP Driver for JMobile

General MODBUS TCP Master Driver

Golander Peristaltic Pump MODBUS Communication Instruction

MODBUS Network Communication

Connecting UniOP to Datalogic Barcode Readers

Getting started with JMobile Suite

Connecting UniOP to Simatic S7 Profibus

ICC. Modbus RTU Slave Driver Manual INDUSTRIAL CONTROL COMMUNICATIONS, INC Industrial Control Communications, Inc.

VERIS H8035 and H8036

CODESYS V2.3 Ethernet Driver for JMobile

GE MDS, LLC. NETio Series. Protocol Communications Supplement. March 2013 Part No A01, Rev. C

17 Configuring a BM85 In this chapter

Appendix B: IMPACC and the Modbus Protocol

Mitsubishi FX Ethernet Driver for JMobile

INTELLIS. Modbus Direct Network Monitor

Getting Started with UniOP B Series Panels

LoRaWAN Wzzard Utility Quick Guide. v /11/1

Modbus on K45 asense. Table of contents:

INSTRUCTION MANUAL RVT communication How to use RS485 USB Ethernet RVT connections

IQ Home Modbus-RTU Master

The UniDataExchanger is a tool that allows an easier handling of the file transfer to and from UniOP operator panels. Contents

JMobile V2.6 SP1 Release Notes

Modbus ASCII Serial Device Driver Help 2009 Kepware Technologies

Ethernet Connectivity for UniOP

Magelis XBT-G Modbus (RTU) driver. eng

Modbus driver for the REXYGEN system (the MbDrv module) User guide. REX Controls s.r.o. Version Plzeň (Pilsen), Czech Republic

MPU-32 AND FPU-32 TIA-485 NETWORK

Modbus Plus Driver PTC Inc. All Rights Reserved.

VPGate Manual PROFIBUS to serial

Simatic S7 Ethernet driver for JMobile

Modbus Hans-Petter Halvorsen

Setting the DCM Switches

Connecting UniOP to Profibus DP TI

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

Modbus/TCP is supported on some controllers. See QCI-AN028 Modbus TCP.

MODBUS Protocol for MiCOM P30 Series

MX200 SERIES Modbus Card 50P GE Zenith Controls. Operation and Maintenance Manual 50R-2200B 12/00

CBAS Modbus Programming Guide

Modbus driver for the REX Control System (the MbDrv module) User guide. REX Controls s.r.o. Version Plzeň (Pilsen), Czech Republic

Alstom Redundant Ethernet Driver Help Kepware Technologies

CONTROLLER INFORMATION SHEET

Updating Systems Components in UniOP Series 400 Products

ICC. Modbus RTU Sniffer Driver Manual INDUSTRIAL CONTROL COMMUNICATIONS, INC Industrial Control Communications, Inc.

Motortronics VirtualSCADA VS2-MT Communication Gateway VS2-MT User Manual Revision

AL2-MBU Advanced Manual

IMPORTANT PRODUCT INFORMATION

How to Configure MODBUS TCP/IP in Proficy HMI/SCADA CIMPLICITY V1.1

Modbus on SenseAir S8

idevos MODBUS RTU PROTOCOL

Conto D1 MODBUS COMMUNICATION PROTOCOL

User Guide Supplement Modbus TM Serial Data Communications Option IM/C100 MOD_6. /8 DIN Process Indicators and Controllers C100, C150, C160 and V100

SIXNET EtherTRAK Driver PTC Inc. All Rights Reserved.

INTRODUCTION... 2 GENERAL INFORMATION... 3 DEVICE CHARACTERISTICS... 3 LINK CHARACTERISTICS... 3 DRIVER CHARACTERISTICS... 4 CONFORMANCE TESTING...

APPLICATION NOTES. Advanced Graphical Interface - AGI Internal PLC (CODESYS V3) SHENDONG

Cutler-Hammer ELC Serial Driver Help Kepware Technologies

Cutler-Hammer Ethernet Products Modicon Quantum PLC Connectivity Application Note

Release 2.11 Standard AXE Primary Firmware is not intended for use on any 8521 Controller not licensed as a RTU.

Mapping Modbus Registers to BACnet Objects

Lufkin Modbus Serial Driver Help Kepware Technologies

Modbus on S8. Modbus is a simple, open protocol for both PLC and sensors. Details on Modbus can be found on

ICC. Modbus/TCP Client Driver Manual INDUSTRIAL CONTROL COMMUNICATIONS, INC Industrial Control Communications, Inc.

Enron Modbus I/O Driver (Series 2) Programmable Serial Interface Card

Modbus on S8. Modbus is a simple, open protocol for both PLC and sensors. Details on Modbus can be found on

Chapter 5: Communications 5 1 SR55 Communications Overview 5 2

JMobile Suite User Manual

Communications guide. Line Distance Protection System * F1* GE Digital Energy. Title page

WF-2000 Series Wi-Fi I/O Module

D0 DCM Module Setup Direct

DiaLog Elite. Modbus RTU User Guide. Publish Date: January 1, 2005 Document Version 1.2

This command can be used for reading the current state of one or several digital inputs, according to the table below.

1. SELECTING NEW PROTOCOLS

Modbus Gateway User Manual (3.30 Release 3 Firmware)

ProSoft Technology, Inc. RTU-5/03 Processor for Allen-Bradley SLC Modular Racks Inside this Manual

Fisher ROC Plus Ethernet Driver Help Kepware, Inc.

CTI 2573-MOD and CTI 2573-TCM2 SERIAL DEVICE INTERFACE ADAPTER INSTALLATION AND OPERATION GUIDE Version 2.4

Fisher ROC Plus Serial Driver Help Kepware Technologies

Modbus Unsolicited Serial Driver PTC Inc. All Rights Reserved.

1. MODBUS / TCP SERVER CONFIGURATION

Connecting UniOP to K-M Profibus DP

TRAINING GUIDE LEVEL 3 MODBUS WRITE IMPORT COMMAND

Transcription:

Connecting UniOP Using Generic Modbus RTU This Technical Note contains the information needed to connect UniOP to control devices using the Modbus RTU standard protocol over a serial communication link. Contents 1 Introduction...3 2 Setting up UniOP for Communication...3 2.1 Controller Setup...3 2.2 Node Override...5 2.3 The Node Control...7 3 Modbus RTU Data Types...8 Appendix A. Communication Error Codes...9 Appendix B. Implementation Details...10 Connecting UniOP Using Generic Modbus RTU 1

Tn166 Ver. 1.08 2004-2006 Sitek S.p.A. Verona, Italy Subject to change without notice The information contained in this document is provided for informational purposes only. While efforts were made to verify the accuracy of the information contained in this documentation, it is provided as is without warranty of any kind. www.exor-rd.com Connecting UniOP Using Generic Modbus RTU 2

1 Introduction The Modbus RTU generic driver is included in the Designer 6 file D32Uplc166.DLL. UniOP operator panels can be connected to a Modbus network as the network master using this generic driver. 2 Setting up UniOP for Communication To create a UniOP application for a generic Modbus application, select the driver Modbus RTU from the list of available communication drivers in the Change Controller Driver dialog box. 2.1 Controller Setup Figure 1 below shows the "Controller Setup..." dialog box for the Modbus RTU protocol. The Slave ID address is the address of the Modbus device on the network. Disable Modicon Mode Delay Figure 1 - Controller Setup dialog box This checkbox defines if the addressing mode should follow the original Modicon standard (first address is 1) or a more generic approach where the address for the variables starts from index zero. If Modicon Mode is enabled, the valid range for each data type is: 1 65536. If Modicon Mode is disabled, the valid range for each data type is: 0 65535. Please note that the permissible addressing range does not mean that the controller connected to the panel is actually containing that amount of variables. This parameter defines a fixed time delay in the communication between the end of the last received frame an the starting of a new request; when set to 0, the new request will be issued as soon as the internal system is able to Connecting UniOP Using Generic Modbus RTU 3

reschedule it. No of repeats Time-out Use Modbus function 06 Use Modbus function 16 Generic Modbus no data blocks This parameter defines the number of times a certain message will be sent to the controller before reporting the communication error status. A value of 1 for the parameter No of repeats means that the panel will eventually report the communication error status if the response to the first request packet is not correct. This parameter defines the time inserted by the protocol between two retries of the same message. It is expressed in milliseconds. Two radio buttons are available to specify what Modbus Function will be used for write operations to the Holding Registers data type. The user can select between the function 06 (preset single register) and function 16 (preset multiple registers). If the Modbus function 06 is selected, the protocol will always use function 06 to write to the controller, even to write multiple consecutive registers. If the Modbus function 16 is selected, the protocol will always use function 16 to write to the controller, even for a single register write request and the Byte Count parameter of the query is set to two. Using function 16 may result in higher communication performance By default the Modbus Function 16 is used and should be disabled only for those controller that to dot support it. This model forces the creation of Designer projects where the panel will make only communications requests including only one register. For each Function Code which supports multiple items access, the No. of Points parameter of the Modbus request frame is always fixed to one. This option will result in lower communication performance and should be used only when connecting to controllers that only can exchange one register at a time The protocol allows the connection to multiple Modbus slave devices connected to one UniOP panel. In that case, the Access Multiple PLCs option must be used. When Access Multiple PLCs is checked, the dialog box will change and will appear as shown in Figure 2 below. Connecting UniOP Using Generic Modbus RTU 4

Figure 2 - Controller Setup Dialog Box for multiple controllers Press the Add button to add new Modbus devices to the network and enter their address. A typical situation in which UniOP is connected to several slave devices and a project page contains variables coming from all the partners, may become critical from the point of view of the data refresh time, when one or more of the slaves is missing or not responding. A proper combination of the parameters Time-out and No of repeats allows to fine tune the application. The Modbus master, in fact, can be configured to skip very quickly over the nodes that are not responding. Note: The value 0 for Slave ID indicates that all the write-only commands to that device are intended as broadcast. It is not possible to place in a screen data fields using this node number. This reference can only be used in write-only operations. Broadcast commands are supported from driver version 5.25 4.11. 2.2 Node Override The Slave ID parameter you have entered in Controller Setup can be changed at run-time using the special Data Type called Node Override. Note: Node Override requires the Modbus RTU driver version 5.07 4.04 or above and firmware version V4.50S or above Connecting UniOP Using Generic Modbus RTU 5

Figure 3 shows the Modbus RTU Define Field dialog box when the special Node Override data type is selected. Node Override is an internal UniOP variable that makes possible changing the settings for the Slave ID parameter specified at programming time in Controller Setup. Node Override can be placed in a page and the Slave ID can be changed with a simple data entry operation over this variable. Figure 3 Node Override Changes to Node Override will require a UniOP power cycle to be effective with driver versions older than Drv 4.12 Dll 5.25. From Drv 4.12 Dll 5.25 the changes will be effective runtime, without the need of a power cycle. When the Controller Setup is configured for Access to Multiple Controller there is one Node Override variable for each of the nodes included in the configuration. In the case of Multiple Controllers the dialog changes as shown in Figure 4. The PLC Slave ID list box will define which Slave ID will be affected. Note: When Access Multiple Controllers is enabled, UniOP can store up to 8 different Node Override variables; that is, if Controller Setup includes more than 8 slaves, only 8 of them can be re-mapped using the Node Override option. Connecting UniOP Using Generic Modbus RTU 6

Figure 4 Node Override for Multiple Controller access To restore the original project settings, the Node Override variable must be set to 0. Node Override parameters are stored in Battery Backed RAM, protected by CRC and duplicate copy. In case of memory corruption, parameters are restored to backed-up values if possible. 2.3 The Node Control The Node Control data type allows access to special memory registers held internally in UniOP panel. These memory registers act as switches that make it possible to enable/disable access to particular controllers in the controller network at run-time. The Node Control data type is available only if the Access Multiple Controllers is configured in the Controller Setup dialog box. When the access to particular controller configured in the network is disabled, the UniOP will not produce any request to that controller. Thanks to that, if the controller is temporary disconnected, the UniOP will not report the communication error and considerable amount of time will be saved, leading to faster display refresh rate. The Node Control registers are represented as bits. They can be changed at run time; setting the Node Control register to 1 will enable access the actual controller; setting it to 0 will disable access to the actual controller. In the Define Field dialog box, the PLC Slave ID combo box is used to reference each controller configured in the network. The configuration of the Node Control registers is stored in RAM with battery back up. Connecting UniOP Using Generic Modbus RTU 7

3 Modbus RTU Data Types The following standard Modbus data types can be accessed using the UniOP implementation of the Modbus RTU protocol: Data type Input bits Output coils Holding registers Input registers Access mode read only read/write read/write read only Up to 65535 variables of each data type can be addressed. Note that the address values actually used in the Modbus packet frame are: Reference Address 1. When the Disable Modicon Mode option is checked in Controller Setup, the address used in the Modbus frames on the serial line are the same as the reference entered in the Define Field dialog box. Connecting UniOP Using Generic Modbus RTU 8

Appendix A. Communication Error Codes Current communication status is displayed in the System Menu of the UniOP. A message and a numeric error code describe the error status. The message reports the current communication status. The number shows the code of the current communication error or, if the communication is correct, the code of the last error encountered. When the error code 0 is shown, it means there have been no communication errors since this system start-up. Code Description Notes 00 No error There are no communication errors and there have been no errors since start-up. 04 Negative ACK NAK returned by the controller 05 Time out (receiving) No response received from the controller within the timeout period. 06 Response error Error code field (BCC) received from controller is wrong. 07 General communication error General un-known communication error Connecting UniOP Using Generic Modbus RTU 9

Appendix B. Implementation Details This Modbus RTU implementation supports only a subset of the standard Modbus Function Codes. The supported Function Codes are listed in the table below. Code Function Description 01 Read Coil Status Reads multiple bits 02 Read Input Status Read the ON/OFF status of the discrete inputs (1x reference) in the slave 03 Read Holding Registers Read multiple Registers 04 Read Input Registers Reads the binary contents of input registers (3x reference) in the slave 05 Force Single Coil Forces a single Coil to either ON or OFF 06 Preset Single Register Presets a value in a Register 16 Preset Multiple Registers Presets value in multiple Registers Communication speed with controllers is supported up to 57600 baud. Floating point data format is compliant to the IEEE standard. Note: Baud rate greater than 38400 are only supported starting for firmware version V4.22. Speed is anyway still limited to 9600 for UniOP models without PC/Printer port. Connecting UniOP Using Generic Modbus RTU 10