1 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Goals for this Presentation  Provide information.

Slides:



Advertisements
Similar presentations
PLC Selection, Components, and Communication
Advertisements

1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 1 WANs and Routers.
Arctic IEC-104 Gateway Jari Lahti, CTO.
Inputs: Digital and 4 configurable for Digital or 10 bit Analog Outputs:4 - 8 amp Relays or 700ma Transistors (1 PWM) 4 Line by 18 Character fully.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
Niobrara R&D Corp Compact PLC Upgrades With the CERI.
Modbus Slave & Modbus Master in S7
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 1 WANs and Routers.
Applying Wireless in Legacy Systems
Copyright © 2002 Delmar Thomson Learning Chapter 3 Programming a Programmable Controller.
Copyright © 2002 Delmar Thomson Learning Chapter 9 Putting Together a Modular PLC.
Communication. COMMUNICATION Voice Language Between people.
DeviceNet and SDS Presented by : Ramesh Vishwanathan Biosystems and Agl. Engineering.
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
ZIGBEE Network Introduction Integrated with Zigbee or Bluetooth products Operation voltage : DC 7V ~ 40V. RS232 Interface Meets or Exceeds TIA/EIA-232-F.
Slide 1 / 20 Industrial Automation - Custumer View - Services PhW - Modbus_en 06/ 2002 Modbus training.
P.1 Examples of Applications for the tGW-700 Dec.22, 2010.
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
What is Router? Router is a device which makes communication between two or more networks present in different geographical locations. Routers are data.
1 © 2004, Cisco Systems, Inc. All rights reserved. Chapter 5 WANs and Routers/ Introduction to Routers.
USART Communication using the RS standard ETEC6416.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
CECS 5460 – Assignment 3 Stacey VanderHeiden Güney.
1 Semester 2 Module 1 WANs and Routers Yuda college of business James Chen
CCNA2 Chapter 1 Wide Area Networks and Routers. WAN is a data communications network that operates beyond a LAN’s geographic scope. Users subscribe to.
Network Design Essentials
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 22 All About SCSI.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Identifying SLC 500™ System Components. SLC 500 System Options  The SLC 500 line of processors comprises both fixed and modular processor styles.:
Chapter 7 AC 800M Hardware Course T314.
Application Protocol for Veris E30 Panel-board Monitoring System Jaein Jeong UC Berkeley LoCal Workshop Oct 5 th, 2009.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.0 Module 1 WANs and Routers.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.0 Module 1 WANs and Routers.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Electronic Communication Understanding Serial Communications in Manufacturing.
Topics of presentation
Intro to Network Design
1 Version 3.1 Module 1 WANs and Routers. 2 Version 3.1 WANS WAN operates at the physical layer and the data link layer of the OSI reference model. Provide.
Configuring Cisco Switches Chapter 13 powered by DJ 1.
Chapter 2 Basic Principle of PLC PLC Configuration &Function   Basic Configuration  CPU  Memory  Programming Interface  Communication.
Section 6 - Slide 1 / 27 P&T - GPS - Training PhW - 06_TECH_Modbus_en 06/ 2004 Modbus training Part 1 :Reference documents - WEB sites Part 2 :Definitions.
Chapter 3 Programming a Programmable Controller. Objectives Describe the available options for programming a PLC. Explain what online is in comparison.
1 Transmission of Digital Data : Interface and Modems.
Lecture 2 Physical Layer Standards. DTE-DCE INTERFACE Two terms are important in computer networking: – Data terminal equipment(DTE) – Data circuit-terminating.
GPRS functionality overview in Horner OCS. GPRS functionality – Peer to Peer communication over GPRS – CSCAPE connectivity over GPRS – Data exchange using.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
Ch. 6 Digital Data Communication Techniques
New product introduction:
Putting Together a Modular PLC
Cscape 8.6 August 2008 Horner APG. New Workbench Features - New Model – XL6.
24 Feb 2009ITCN 1 Introduction to Computer Networking M Clements.
1 Pertemuan 2 Routers. Discussion Topics Introduction to WANs Router physical characteristics Router external connections Management port connections.
Commands 3/1/ Boot PROM Fundamentals All Sun systems have resident boot PROM firmware Provides basic hardware testing and initialization prior.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Ch. 6 Digital Data Communication Techniques. 6.1Asynchronous & Synchronous Transmission Asynchronous Transmission: transmission in which each information.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 1 WANs and Routers.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Cisco Routers.
An Overview When Connecting to Yaskawa Drives Date: 8/14/06, Rev: PP.AFD.26.
MDC-700 Series Modbus Data Concentrator [2016,05,26]
Chapter Objectives In this chapter, you will learn:
Welcome POS Synchronize Concept 08 Sept 2015.
Serial Communications
CCNA 2 v3.1 Module 1 WANs and Routers
Chapter 6 Transmission of Digital Data Interfaces and Modems
Cisco Routers Presented By Dr. Waleed Alseat Mutah University.
Presentation transcript:

1 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Goals for this Presentation  Provide information on the steps required for successful device integration implementation.  Provide information for making decisions for selecting the proper hardware and software for the implementation.  Provide information on the types of tools that are useful for a successful implementation.

2 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  What you should know before you start  Steps to successfully implement a device interface  Information on the Device to be integrated.  I/A Series products: How to choose the appropriate Hardware/Software

3 Integration Engineering DefinitionDesignImplemen t IntegrateStart-up

4 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Manufacturer  Model  Communications Protocol Supported  Types of ports available  Decide on Communication parameters  Decide on Network Address  Types of Queries supported  Memory Map of desired data points  Does the device have a user mappable memory range?  Does the device have redundant communications capability?  How many devices will be on this serial bus?  How far away from the integrator will the device be?

5 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Manufacturer  Model This is not necessarily essential information, but you may want to use some aspect of the manufacturer/Model information to name your ECB, Compound, or Control Blocks.

6 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Information – Foreign Device Definition  Communications Protocol Supported I/A Series Integration Information An MG30 supports Modbus Master RTU Protocol An FBM224 Supports Modbus Master RTU Protocol An AB30 Supports Allen-Bradley DF1 protocol All other protocols require the use of the DI30 with a protocol specific software component

7 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Types of ports available  What type of physical connector does the device have? DB9, DB25, RJ45, Terminal Strip, Male or Female  Which serial protocols are supported? RS232, RS485, RS422 Note: RS485 is the only multi-drop protocol. I/A Series Integration Information All 30 Series integrators support RS232 with a Male 25-pin D- connector. The FBM224 supports RS232 with a male 25-pin D-connector AND RS485/RS422 with terminal connections.

8 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Decide on Communication parameters Baud Rate(Typically 9600 default) Databits(7 or 8) Parity(Even, Odd, None) Stop Bits(1 or 2) I/A Series Integrator Information Integrators support up to Baud (configurable)

9 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Integration  Decide on Network Address This network address is specific to the protocol Modbus Specific Information The valid network address range for Modbus is between 1 and is a broadcast address. The Master does not have a specified address (only one master per bus). If more than one device exists on the serial bus, each must have a unique network address.

1010 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Types of Queries supported Modbus Specific Information Typically function codes 1,2,3,4,5,6,15,and 16 are supported by modbus devices Heartbeat is one query type for Modbus (function code 8) that can cause intermittent failures if the field device does not support this function.

1 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Memory Map of desired data points Modbus Specific Information The Memory Address and whether the query is a read or a write determines function code used to obtain that information. Memory MapReadWrite function code 1function code 5, function code 2N/A function code 3function code 6, function code 4N/A

1212 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Does the device have a user mappable memory range? Important for the efficiency of the interface in cases where the data points are not arranged in a contiguous fashion.

1313 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  Does the device have redundant communications capability? This question is important to determine which software package is correct for your application. I/A Series Integrator Information The DI30 has two ports. Each can talk to a separate device or as a redundant port. The MG30 has two ports. The second can be configured as a “B” bus to the same device. The FBM224 has four ports and a redundant port can be configured.

1414 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  How many devices will be on this serial bus? This question is important to decide upon the bus architecture. If only one device is on the bus, RS232, RS422, and RS485 are all valid choices. For multiple devices on the same bus, only RS485 supports multidrop.

1515 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Definition – Foreign Device Definition  How far away from the integrator will the device be? This question is important to ask to determine which protocol/and or converters will be required. For instance, if the distance is greater than 50 feet, then RS232 is not a good option without the use of converters.

1616 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Design considerations  In today's terms, serial communications have a very low throughput. Example: Assume that a typical query takes 200 ms to reach the field device, the field device takes 100 ms to process the query and build the response message, then 200 seconds for the response to reach the integrator. That equal 500 ms turnaround per query. In essence 2 queries per second. This is why it is extremely important to gauge the total number of queries on a serial bus and use a conservative estimate for turnaround time.

1717 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Design considerations  How many queries will I have? Each Modbus device on a bus will take a minimum of one query Each different function code (including heartbeat) requires its own query. If memory locations are not contiguous, and a “reserved” or “restricted” memory address is between the desired data points, then more than one query will be required per query range.

1818 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Design considerations  How many queries will I have? Example1: I have a device from which I wish to obtain 10 discrete data points, 10 analog values, write 10 analog values, and write 10 discrete data points. This device supports heartbeat. This interface would have five (5) queries and the update time should be set to no faster than 2.5 seconds.* *actual turnaround times can be checked with a communications probe.

1919 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Design considerations  How many queries will I have? Example2: I have 2 devices on the same RS485 bus from which I wish to obtain 10 discrete data points, 10 analog values, write 10 analog values, and write 10 discrete data points each. These devices support heartbeat. This interface would have five (10) queries and the update time should be set to no faster than 5 seconds.* *actual turnaround times can be checked with a communications probe.

2020 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Design Should you use a MG30, DI30, or a FBM224 for your implementation? An MG30 is for Modbus RTU Master protocol only, but is very easy to configure. A DI30 Can be Master or Slave, RTU or ASCII, and has settable parameters for communication timing adjustments, but is much more complex to configure. An FBM224 is easy to configure, but is also for Modbus RTU Master protocol only and is only currently available for 6.5 and 7.1 versions.

2121 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Design In Summary, Use an FBM224 if you are at V6.5 or 7.1 and the device is a Modbus Slave. Use a MG30 if at any other version and the device is a Modbus RTU Slave. Use a DI30 if neither of the above apply.

2 MG30/AB30/DI30 form factor

2323 FBM224 form factor

2424 Device Integrator 30 Configurations Non Redundant Device Integrator Redundant Device Integrator

2525 MG30 INTEGRATION Non Redundant Configuration Redundant Configuration

2626 DI 30 Integration Inputs FDRIN FDIIN FDBIN ECB Message FDIDMS Other Blocks

2727 DI 30 Integration Outputs FDROUT FDIOUT FDBOUT ECB Message FDMSBL Other Blocks

2828 DI 30 Integration Master vs Slave ECB Message FDSCAN Data Message Master Configuration Data Scanned at regular frequency Set by FDSCAN Block Period ECB FDIDMS Data Message Slave Configuration Data Identified and used as it is sent from the Field Device

2929 MODBUS INTEGRATOR BLOCKS  AIN  ALMPRI  AOUT  CALC  CHARC  CIN  COUT  DEP  EXC  GDEV  IND  MAIN  MCIN  MCOUT  MON  MOVLV  MTR  PATALM  REALM  TIMR  VLV

3030 ModBus 30 Integration ECB MDSCAN BLOCK AINCINAOUTCOUT OTHERBLOCKSOTHERBLOCKS

3131 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Integration Design Create a drawing showing the architecture of the interface consisting of the following elements: Integrator Cable and FTA for the Integrator Any converters required for the interface. Identify the type of media for each cable (fiber-optic, Twin-axial, etc…) The dip-switch settings for the FTA based on the Definition information and the settings shown in each of the Integrator specific user documentation.

3232 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Useful Tools for Modbus Implementation Break-Out Box - This device connects in line with an RS232 bus to show signal voltage for all of the data and control lines for this protocol. Communication (data) probe – This device also connects in line with the RS232 bus to show actual bytes of data as well as showing signal voltage for all the data and control lines.

3 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Useful Tools for Modbus Implementation Modbus/Modsim simulation program - This application allows you to use a laptop (or tabletop) PC to emulate a Modbus Master or Modbus Slave device respectively, and view the modbus data bytes. Null Modem Connectors – This device connects in line with the RS232 bus to correct one of the most common RS232 problems. It converts the control and data lines from a DTE to a DCE type.

3434 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Useful Tools for Modbus Implementation Assorted cables and connectors - Make sure that an assortment of cable types (9-pin versus 25-pin) and male-to-male and female- to-female adapters are available. Nothing stops implementation faster than not being able to physically attach a cable. If the implementation will use a RS485 bus, it is a good idea to have an extra RS232/RS485 converter available to use the RS232 only tools! Modbus Device Vendor – Many times an implementation comes to a screeching halt because no one is available that can look inside the foreign device to verify basic communications settings. So if no one is available that knows the device well, then it is best to have a vendor representative present during implementation

3535 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Steps to implement the interface 1.Verify Foreign device is ready for communication by using Modsim or similar modbus master emulator to query a specific modbus data point. Once you can connect with this program, you can consider the foreign device ready for connection with the integrator.

3636 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Steps to implement the interface 2. Connect the interface based on the Design information. Be sure all dip-switch settings on the Integrator FTA are correct.

3737 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Steps to implement the interface 3. Build the ECBs and one integrator specific block based on the individual integrator User Documentation. Remember to put the appropriate ECBs on-line in System Management and to turn on the Compound for the selected data point. Note that DI30s can require multiple compounds for one data point.

3838 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Steps to implement the interface 4. If the data point responds as desired, build any remaining ECBs and integrator specific block based on the individual integrator User Documentation. Remember to put the appropriate ECBs on-line in System Management and to turn on the Compound for the selected data point. Note that DI30s can require multiple compounds for one data point. If the point does not respond as desired, troubleshoot using the tools shown in the previous section.

3939 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Steps to implement the interface 5. Connect the Integrator specific data block to the standard I/A Series blocks (such as AIN, CIN) for scaling and display.

4040 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Example ECB Configuration The type and quantity of ECBs to be configured depends upon which hardware/software is used (i.e. DI30, MG30, FBM224) This example will use the MG30 configuration.

4141 A Practical Guide to Device Integration with an emphasis on the Modbus Serial Protocol Device Integration  Example ECB Configuration The MG30 gateway requires the configuration of two ECBs 1. ECBPG – represents gateway and sets communication parameters 2. ECB16 – represents the Modbus Device and contains specific information for that device.

4242 Example ECBPG Configuration Device Integration  This parameter defines the number of active ports: 1 = 1 Port2 = 2 Ports This parameter defines the Bus switching options 1 = Bus A only2 = Bus B only 3 = Bus A with bus B switching enabled 4 = Bus B with bus A switching enabled

4343 Example ECB16 Configuration Device Integration  Typically, 2 will work for any device. Specific device parameters are: 1 = AEG 4842 = AEG = AEG 8844 = AEG = No Heartbeat1 = Heartbeat Do not enable heartbeat unless you are sure your Modbus device supports heartbeat. This parameter defines the unique network address of the Modbus Device. Don’t confuse it with the memory addresses. The valid range is

4 ALLEN BRADLEY INTEGRATION PLC KF OR KE Module AB 30

4545 AB 30 Integration ECB ABSCAN BLOCK AINCINAOUTCOUT OTHERBLOCKSOTHERBLOCKS

4646 AB INTEGRATOR BLOCKS  AIN  ALMPRI  AOUT  CALC  CHARC  CIN  COUT  DEP  EXC  GDEV  IND  MAIN  MCIN  MCOUT  MON  MOVLV  MTR  PATALM  REALM  TIMR  VLV

4747  Application Workstation provides integration to third party devices  Multiple Media  RS232 or RS485  Ethernet  Multiple Protocols  Modbus  AB Data Highway  I/O Gate - DDE  Scaleable ValueBlocks Other Integration Products AW50/70 Integrator (w/ Foxblocks) Fieldbus Module I/A Series Fieldbus E-net AB PLC or GE PLC or SCADA System DDE I/O Gate RS-232 or RS Controllers SCADA System Modbus AB Data highway + DDE I/O Gate Nodebus 