Modbus Input/Output (I/O) Interface Module General Discussion

Similar documents
The Answer to the 14 Most Frequently Asked Modbus Questions

Modbus and ION Technology

Process Control and Automation using Modbus Protocol

WEB log. Device connection plans

1.Eastron SDM220Modbus Smart Meter Modbus Protocol Implementation V1.0

Technical Note A007 Modbus Gateway Vantage Pro2 25/09/2009 Rev. A 1 de 7

WEB log. Device connection plans

EDI Distributor Control Interface Wiring and Setup Instructions

Using the AnyBus -X Gateway to Communicate between a DVT camera and a Profibus Master

Modbus and ION Technology

PCS0100en Persy Control Services B.V. Netherlands

ModBus Server - KNX. Gateway for integration of KNX equipment into Modbus (RTU and TCP) control systems.

Understanding Device Level Connection Topologies

Programmable set for Ethernet Modbus/TCP in IP67 TI-BL67-PG-EN-2

Using MODBUS for Process Control and Automation

RS-485 Protocol Manual

IntesisBox KNX Modbus RTU master

OPTICAL FIBER repeaters/ isolators

Fiber Optic Selector Guide for Analog & Digital Data Links, Contact Closures & Multiplexers

Zlinx Wireless I/O. Peer-to-Peer and Modbus I/O B&B ELECTRONICS PRODUCT INFORMATION

CPB. Doc. N MO-0279-ING MODBUS/PROFIBUS DP CONVERTER TYPE CPB. Microener - Copyright 2010 Date Rev. 0

IntesisBox KNX Modbus TCP master

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

Understanding Device Level Connection Topologies

NC-12 Modbus Application

Application/Connection Examples

sip Sanyo Modbus Guide Technical Specification Pinouts, Cable Connections & Wiring Issue 2: February 2009 Synapsys Solutions Ltd, all rights reserved

SolarEdge. RS485 Expansion Kit Installation Guide. Version 1.0

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Data Bulletin. Communications Wiring for POWERLINK G3 Systems Class 1210 ABOUT THIS BULLETIN APPLICATION INTRODUCTION.

DVPPF02-H2. PROFIBUS DP Slave Communication Module Application Manual

MAKING MODERN LIVING POSSIBLE. AK-SC255 On-Site Installation Guide DANFOSS ELECTRONIC CONTROLS & SENSORS

Smart DeviceNet Remote I/O Terminals

RS485 & Modbus Protocol Guide

ENET-710. ENET Ethernet Module ENET-710 JAN / 06 FOUNDATION

RS485 & RS422 Basics

Modbus Communications for PanelView Terminals

PROFIBUS / MODBUS GATEWAY Application Note for Communication between Premium CPU & XPS-MC Safety Controllers

Short Range Wireless Switch System Handheld 8 Installation and Operations Guide

8 data bits, least significant bit sent first 1 bit for even/odd parity (or no parity) 1 stop bit if parity is used; 1 or 2 bits if no parity

Options for ABB drives, converters and inverters. User s manual FDPI-02 diagnostics and panel interface

Introduction to PROFIBUS and PROFINET

Introduction To SCADA and Telemetry

Ocean Controls RC Servo Motor Controller

Different Ways of Connecting to. 3DLevelScanner II. A.P.M Automation Solutions LTD. Version 3.0

DK40 Datasheet & Hardware manual Version 2

Vroom Hardware manual ver Code 114VROOHWE00. Vroom CANBUS USER INTERFACE WITH LCD GRAPHIC DISPLAY AND WITH TEMPERATURE AND HUMIDITY SENSOR

User Manual. Protocol Converter PC-E, Serial to Ethernet (RS232/485 Modbus RTU to Modbus TCP/IP)

2011, The McGraw-Hill Companies, Inc. Chapter 3

EZ-View Network Communications Guide

Digital and Analog I/O

Temp-485-Pt100. A temperature sensor (Pt100 or Pt1000) communicating over the RS-485 bus with a simple communication protocol

TX2123 RS485 TO ETHERNET ADAPTOR

ABB Drives. User s Manual HTL Encoder Interface FEN-31

RS-232 Communications Using BobCAD-CAM. RS-232 Introduction

An internal gyroscope minimizes the influence of dynamic linear acceleration on slope sensor readings.

EMBEDDED ACCESS CONTROL Hardware Installation Guide

Single channel data transceiver module WIZ2-434

Remote Serial over IP Introduction on serial connections via IP/Ethernet

Rack mounted telephone- and leased line modem for industrial applications

Substation Automation Systems. Nicholas Honeth

PowerLogic Sub Meter Display (SMD and SMDOPN)

Practical steps for a successful. PROFIBUS Project. Presented by Dr. Xiu Ji Manchester Metropolitan University

Temp. & humidity Transmitter Instructions

Section TELEPHONE AUTOMATIC DIALER SYSTEM

EVAL-UFDC-1/UFDC-1M-16

Sierra Dual 24 Volt Brushless DC Motor Controller Product Specification

RcWare SoftPLC Modbus server mapping editor User manual

Analog Inputs and Outputs

Using installed Fieldbus Wiring to carry Ethernet Communications

SuperIOr Controller. Digital Dynamics, Inc., 2014 All Rights Reserved. Patent Pending. Rev:

M-series Virtual I/O Module 2

Technical Information POWER PLANT CONTROLLER

FLOW CALCULATOR INSTRUCTION MANUAL MESURES BAMOPHOX M1 02 E MES FLOW CALCULATOR /1

Wind Sensor W-RS485 with RS485 Interface

STATE OF NEW JERSEY DEPARTMENT OF TRANSPORTATION TRENTON, NEW JERSEY METRIC SPECIFICATIONS FOR RS232 LEASED LINE MODEMS (LOW SPEED MODEL 400)

The Do s and Don ts of Pressure Transducers

Whale 3. User Manual and Installation Guide. DC Servo drive. Contents. 1. Safety, policy and warranty Safety notes Policy Warranty.

Technical Specifications: The specifications represent a particular hardware platform. Application-specific software is provided.

Electronic Control Devices The European Product Catalogue 2007

Introduction: Implementation of the MVI56-MCM module for modbus communications:

BenchMark 460 Marking System

Belimo Gateway MP to Modbus RTU - UK24MOD

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

DAM Series DAM124 4DIN+8AI+4DO Module Model No.:DAM124 WebSite:

Bus modules systron PM

Automation Unit TM 1703 ACP Flexible automation and telecontrol

Current Loop Application Note 1495

JNIOR. Overview. Get Connected. Get Results. JNIOR Model 310. JNIOR Model 312. JNIOR Model 314. JNIOR Model 410

Series LC6D/LC6C. To power supply PLC. LC6C dedicated teaching box P.971. Options P.973

APNT#1168 Modbus - Establishing Communications Hints

Panasonic/Sanyo A/C Interface Modbus RTU Installation Instructions

Conversion Between Analog and Digital Signals

PCAN-B10011S Bus Converter High-speed CAN to Truck Trailer CAN. User Manual. Document version ( )

Serial Communications

PROFIBUS AND MODBUS: A COMPARISON

2. Terminal arrangement. Default (PV display) (SV display) Communication protocol selection Selects the Communication protocol. Modbus ASCII mode:

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

FOSTCDR. Industrial Serial to Multimode Fiber Optic Converter PRODUCT INFORMATION B&B ELECTRONICS. Specifications Serial Technology

User manual Compact Web PLC WP240 series IEC-line

Transcription:

Modbus Input/Output (I/O) Interface Module General Discussion Last updated: December 30, 2008 Introduction A data acquisition and control system (industrial process controller or PLC) must have a way of accessing real-world input data from sensors and switches and a way of sending control information to relays and other control actuators. These functions are accomplished with devices called Input/Output (I/O) interface modules. The actual sensors and actuators are wired to the I/O modules. Then the I/O modules are all connected together over a communication cable (fieldbus) to the controller. These interface modules my be located next to the process controller or distributed over a larger geographic area such as in different buildings and enclosures located where the measurements and control need to be made. Connecting I/O modules to the controller is done over wring cable called a fieldbus. This is a cable that connects to the controller and the first I/O module. A second cable connects to the first I/O module and runs to the second I/O module. From here a third cable can connect the second I/O module to the third, etc. This is called daisy chain wiring. There are several different fieldbus systems in widespread use but the one we use is called serial Modbus and is an open standard used world wide. There are gateways that connect serial Modbus to virtually any other fieldbus. Our system uses the industry standard RS485 voltage levels on 2 wires to transfer the messages between the controller (master) and I/O modules (slaves). The cable requires two additional conductors for ground (GND or Common) and +5 volts for a total of four wires. The two wires for the communication should be one twisted pair and the two wires for power and ground should be a second twisted pair. Category 5 wire can be used but is prone to breaking because it is a single small solid wire. A better choice is 22 gage (or larger) multi-strand double twisted pair sensor cable. This serial Modbus RS485 fieldbus my be up to 4000 feet long with up to 31 I/O modules (with the controller making a total of 32 drops). Other considerations such as data point throughput may limit the number of nodes to something less. Our eicis/icon controller can support up to four separate Modbus buses running simultaneously. Types of I/O Modules I/O interface modules use two types of data, digital and analog. In Modbus terminology a digital input is called a discrete input and a digital output is called a coil. Analog inputs are called input registers and analog outputs are called holding registers. I do not like the Modbus terminology and will hence forth use digital and analog inputs and outputs. Digital inputs allow access to the state of a digital sensor, such as a float switch, and sends one of two numbers, 0 or 1. The signal can be a high or low voltage, a high or low current or an open or closed switch. In addition to simply measuring the state, the on/off transitions can be counted for total accumulation (such as a tipping bucket rain gage to measure precipitation). Additionally, some sensors such as contact closure anemometers close a 1

switch at a rate proportional to the measurement (for example wind speed). In this case the frequency of the on/off pulses can be measured. The only difference between event counting and frequency measurement is that in event counting the count is never reset to 0 and for frequency, the count is reset to 0 at the start of each second and the number of counts for the one second period is reported. Notice that in the case of event counting and frequency measurement, although the input is digital (a string of two different states only), the result is an analog value (number of counts or frequency) and can vary from 0 to 65535 although some inputs may be limited to a lower maximum value. Digital outputs turn devices on or off. They can be in the form of two voltage states, two current states or the open and closing of a switch (relay). Analog inputs allow reading values with more than two states. Examples include sensors for flow, pressure, temperature, humidity, light, turbidity, gas levels (ambient, stack and liquids) and PH to name just a few. These sensors usually output a voltage or current that varies from a 0 or low value to a higher value such as 5 volts but as a continuous range. This signal is then converted to a digital reading by an analog to digital (A-D) converter. A-D converters work with different step sizes (resolution). A 12 bit A-D can break the sensor reading into 4096 different steps that range from 0 to 4095. A 10 bit A-D converter breaks the steps into 1024 increments (0 to 1023). An 8 bit A-D breaks the steps into 256 (0-255). As an example, a wind direction sensor my output a voltage from 0 to 5 volts for a direction of 0 to 360 degrees. If a 10 bit A-D is used, then as the reading varies from 0 to 1023, the actual direction angle varies from 0 to 359. Therefore the raw A-D reading must be multiplied by 0.351 to get degrees. This conversion would be performed by the process controller. To output analog output control signals, a digital to analog (D-A) converter is required. This device converts a digital number to a proportional voltage or current. Just like A-D converters, D-A converters can have resolutions of 8, 10, 12 or more bits. As described above, an 8 bit D- A would have a numeric range of 0 to 255, a 10 bit would be 0-1023 and a 12 bit 0 to 4095. This proportional output voltage or current can then be used to control proportional actuators such as valve positioners. Modbus Communication Protocol Modbus is a serial protocol originally developed by the industrial control manufacturer "Modicon". The Modbus control protocol has been the defacto open standard for industrial controls for over 30 years and is now maintained by the Modbus organization found at www.modbus.org. There are two types of Modbus, one that transfers data over a serial link and another that operates over the Internet protocol TCP. Although our controllers support both types, this document describes our I/O modules which use only the serial type. For serial communication the protocol further splits into an ASCII implementation and a binary version called RTU. The RTU version is more compact and is the only version supported by our controllers and I/O modules. Our Modbus I/O modules support the following: 2

RTU protocol. Half duplex 2-wire RS485. Baud rate of 9600 or 19200. No parity or odd parity. The controller and all I/O modules on the same bus must be set for the same configuration. Other serial Modbus slave devices from other manufacturers may be on the same bus as long as they are configured as above. The Modbus communication protocol has the following specifications: Each Modbus I/O node on a common bus network is given a unique slave unit address in the range of 1 to 254. Up to 254 different slaves may theoretically be connected to a single master. The RS485 electrical bus specification reduces this to 32 (one master (controller) and 31 slaves (I/O modules) and time throughput considerations my limit the number to something even smaller. The slaves do not respond to the master unless spoken to. (This is not a peer to peer system as some other field buses are.) If using our eicis/icon controller there can be up to four separate masters with serial buses running simultaneously. All slaves on the same bus receive the same message from the master. Only the slave who's address matches the address in the master message responds to the command. All the other slaves ignore the message. Modbus defines a digital I/O bit (discrete input or coil output) for digital inputs and outputs and an analog 16 bit register data type (input register or holding register) for analog inputs and outputs. A 16 bit register can hold a value between 0 and 65535. There are eight Modbus commands, read digital inputs (2), read analog inputs (4), set single digital output (5), set multiple digital outputs (15), set single analog output (6), set multiple analog outputs (16), read state of digital outputs (1) and read state of analog outputs (3) that our system supports. Command 5 to write 1 digital output is a special case of command 15 to write multiple digital outputs. The command 6 to write 1 analog output is a special case of command 16 to write multiple analog outputs. Each Modbus command consists of the slave unit address that the command is intended for, the Modbus command (1-6,15 and 16) a starting address location and the number of elements to transfer. If using the eicis/icon as the controller, all addressing starts at 1. Some Modbus vendors start addressing at 0. Add 1 to their address values when programming eicis/icon controllers. For our I/O modules, if a command is invalid for any reason, no response is sent. It is up to the master to timeout and go on. In a properly programmed system the only error that should result in no response would be a character transmission error due to noise or broken wire in the bus cable. If using an eicis/icon controller you use multiple Modmaster commands to configure, read and send data to the I/O modules. 3

I/O Modules We manufacture a line of Modbus I/O boards with the following common features. Printed circuit board dimensions are 6 long X 4.25 wide. (Not all boards are the same height.) Mounts to a flat surface (usually an aluminum mounting plate) with four 1/4 standoffs and 4-40 screws. All field wiring connects to removable screw lug terminals for easy installation and maintenance. To remove a connector, gently rock side to side as you pull up and it should slide off the terminal posts. After wiring the connector you simply line up the posts with the connector holes and press down. If all the connectors are removed, it is possible to place the wrong connector on the wrong set of posts or shift the connector left or right one or more pins. Therefore, only remove and reconnect the connectors with power off and double check that all connectors are in the right locations before turning power back on. Field repair to the Integrated Circuit (IC) level if desired (all ICs are socketed with high quality, machined, gold plated sockets). Two separate RS485, 2-wire communication interface connectors with board power connections for easy power/communication daisy chain field wiring. Power required is +5V regulated. LED indicators for Modbus serial transmit and receive. Communication can be set to 9600 or 19200 baud with odd or no parity. Any one of the 254 Modbus slave addresses can be selected. Refer to the specific I/O module manual for the actual address ranges and data definitions since this information is I/O module specific. 4

Digital I/O Module Analog I/O Module Power Module Controller Module To Dallas 1-Wire To Other Power/I/O Module Groups Local RS485 Modbus Fieldbus Wiring and Power RS232 and +5V Power to Controller 5