Communication with ABB Controller

Similar documents
Cable Specifications and Information

Cable Pinouts. SRP I/O Module

RS-232 COMMUNICATIONS

Cable Specifications and Information

1.1 Connection Direct COM port connection. 1. Half duplex RS232 spy cable without handshaking

Application Note 83 Fundamentals of RS 232 Serial Communications

Connecting instruments serially to your computer

Cabling Guide for Console and AUX Ports

Advanced Data Capture and Control Systems

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

Connectors and Cables

Cable Guide. Click on the subject to view the information. Digi Cables Building Cables General Cable Information

Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

Using HyperTerminal with Agilent General Purpose Instruments

16-Port RS232 to USB2.0 High Speed Multi Serial Adapter (w/ Metal Case) Installation Guide

Moxa TCC-100/100I User s Guide

RJ45 Shielded (standard) port pinout. CS9000, Jetstream , Lanstream 2000, RTA8/RJX, RRC16, MTA8/RJX & SXDC8/RJX

When we look at the connector pinout of the RS232 port, we see two pins which are certainly used

Manual Serial PCI Cards

isco Connecting Routers Back to Back Through the AUX P

Appendix A. This Appendix includes the following supplemental material:

PCMCIA 1 Port RS EDITION OCTOBER 1999

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

Modbus Communications for PanelView Terminals

Using a Laptop Computer with a USB or Serial Port Adapter to Communicate With the Eagle System

DK40 Datasheet & Hardware manual Version 2

Using Xbee in Serial Communication

2-Port RS232/422/485 Combo Serial to USB2.0 Adapter (w/ Metal Case and Screw Lock Mechanism) Installation Guide

Connecting the Console Port to a PC

Cable Specifications. T3 Trunk Cabling APPENDIX

Connector and Cable Specifications

Knowledge Base Article. Integrating ISONAS Access Control System with TagMaster LR-series RFID Readers

Making a DB to RJ45 adapter.

LAN / WAN Connection Of Instruments with Serial Interface By Using a Terminal Server

MS830 / MS833 Barcode Reader v1.0 9-December-2014

SEC 4100 SYSTEM MONITOR Programmable Serial Interface Card Series 2

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

LTM-1338B. Plus Communications Manual

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

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

User s Manual TCP/IP TO RS-232/422/485 CONVERTER. 1.1 Introduction. 1.2 Main features. Dynamic DNS

How to setup a serial Bluetooth adapter Master Guide

Comtrol Cable User Guide

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

1-Port R422/485 Serial PCIe Card

User Manual IC-485AI

Revision Date: September 19, 2006

The Analyst RS422/RS232 Tester. With. VTR, Monitor, and Data Logging Option (LOG2) User Manual

Application Note. Terminal Server G6

EDI Distributor Control Interface Wiring and Setup Instructions

ISHIDA BC Scale to Scale Communications

RS-232 to TTL Converter Cables SuperDroid Robots

RJ11 RS-232 Interface

SyncLink GT2/GT4 Serial Adapter

USB / Data-Acquisition Module NOW LEAD-FREE

Using IDENT M System T with Modbus/TCP

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

Single channel data transceiver module WIZ2-434

How To Connect A Directsofl To A Powerpoint With An Acd With An Ctel With An Dm-Tel Modem On A Pc Or Ipad Or Ipa (Powerpoint) With A Powerline 2 (Powerline

TCP/IP Converter DDS EX-9132 Operation Manual for 8051 Series

RS-232/422/485, Power over Ethernet

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

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

Connector and Cable Specifications

MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual

Encore Controller to Router Connections

Computer Control of Satellite Antennas

Telebyte 209 Short Haul Modem

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

2-Port RS232/422/485 Combo Serial PCI Card


CONCEPT1 RS232 COMMUNICATION

Communication Unit 560CMU05 Data sheet

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

PCS0100en Persy Control Services B.V. Netherlands

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation

One Port Serial Server Users Manual Model ESP901, ESP901E

LS-101 LAN to Serial Device server. User s Manual

CENTRONICS interface and Parallel Printer Port LPT

Application Note 2. Using the TCPDIAL & TCPPERM Commands to Connect Two TransPort router Serial Interfaces Over TCP/IP.

Auxiliary equipment for communication with the EuroProt protective devices

Text String Activation

KTA-223 Arduino Compatible Relay Controller

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Microprocessor Project Laboratory

SenseLink TM. End-Point Controller. Addendum

POS Integration. Prepared by: Binh Nguyen

Modbus and ION Technology

XPort Universal Demo Board User Guide

Internet-bridge XPort

Industrial RS-232/ RS-422/ RS-485 over Ethernet Media Converter

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

Quectel Cellular Engine

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

VSCOM USB PRO Series Industrial I/O Adapters

Fanuc 0 M/T Model C Serial (RS232) Connection Guide

Xiamen Rongta Technology Co., Ltd.

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

Communication with BushingGard using computer USB port

Transcription:

Applied Engineering Integration Note Communication with ABB Controller WARNING: This document is a draft based on technical documents from ABB. These notes have not been field tested and are subject to change. Overview This document explains how to set-up communications between the DVT 600 Series and the ABB S4C+ Controller. Some known confusion points and hardware problems are discussed and several solutions are presented. A very simple communications example is described to illustrate the necessary commands used in Rapid language and the steps required to configure DataLink. The purpose of this document is to address communication issues, for a more elaborate example involving vision and motion control the reader is referred to the documents under Motion Control Notes. Hardware The DVT 600 Series can communicate inspection results through a serial RS-422/48 connection or via Ethernet TCP/IP. The ABB controller communicates with external devices using a serial RS-422 or RS-232 connection. Therefore, serial communications needs to be established between the two systems. Both devices can send and receive data as ASCII characters without an additional serial protocol. Confusion Point: System-specific communications must not be confused with data exchange communications. The DVT 600 system commands are used to communicate from the Framework User Interface to the firmware in the SmartImage Sensor. These system commands are also ASCII characters and are preceded by a # or a *. For instance, the command to trigger an inspection is #YI. For a complete list of commands refer to the FrameWork Command List or Appendix A of the FrameWork User guide. All DVT documentation is available for download at www.dvtsensors.com. In the DVT 600, system commands and data can be sent over the serial port or over the Ethernet port. Since the same physical connection can be used for both types of information, a distinction is made by selecting the System driver or the DataLink driver under the Image Sensor Communications dialog box in the Communications menu. Figure shows a schematic of the basic connections, the ports used are indicated as well as the type of data that flows over the different lines.

Ethernet Port A Framework+ ABB Windows Interface SmartImage Sensor Series 600 - Model 630 Serial port B DataLink Driver Ready Trigger Pass Fail RS-422/48 to RS-232 Converter PC RS-232 Serial Port Ethernet Port Serial Port Serial Port S4C+ Controller Conventions: Data exchange communuications System-Specific communuications Figure : Schematic of Connections The configuration shown above is useful for testing because it allows the user to simultaneously interface with the image sensor and with the controller using the corresponding Window s GUIs. Assuming that both system communications are running normally let us describe in detail the data exchange connection. To go from the DVT system to the ABB controller, the converter block in figure 2 must perform two functions: change standards from RS-422/48 to RS-232 and provide the proper connectors to the S4C+ and DVT cables. The serial connection on the DVT 600 is an RS-422/48 port with a RJ- connector plug. A shielded RJ- cable is offered as an option with the DVT 600 system. The S4C+ has both an RS-232 and an RS-422 port. Some ABB equipment is designed to be used with the RS -422 port, so for the purposes of generality, the connection with the RS- 232 port will be covered below. Both serial ports on the S4C+ controller use a DB -9 connector. 2

DVT RS-422/48 ABB RS-232 2 3 4 6 PIn No. Signal V 2 Tx+ 3 Rx- 4 Rx+ Tx- 6 GND Conn. to GND is optional Note: RJ- cables has only 4 conductors - pin 2 to pin. DB-9 Male 4 3 2 Pin No. Signal NC 0 V 7 RTS N 8 CTS N 9 NC RJ- Connector on DVT 600 System Serial Port Connector Figure 2 Serial Stds. and Connectors on Both Systems 9-Pin D male connector 2 3 4 PIn No. Signal DCD SG 7 RTS 8 CTS Pin No. Signal NC 0 V 7 RTS N 8 CTS N ABB RS-232 Port Connector 9 RI 9 NC 2-Pin D male connector PIn No. Signal 2 TxD 3 RxD 7 SG Pin No. Signal NC 0 V 7 RTS N 8 CTS N 9 NC 2 3 4 Figure 3 Straight-through DB9 and DB2 to ABB Cables 3

Integration Note A BlackBox interface converter (DVT part # CON-4T2) is currently offered as an option to be shipped with 600 systems. This converter has a RJ- plug on the RS-422/48 side and a 9-pin female D connector on the RS-232 side (See Figure 4). It was chosen to interface with a PC RS 232 port. The converter obtains power from the RS-232 side of the connection. Specifically from either the DTR (pin 4), the RTS (pin 7) or RI (pin 9). When interfacing with a PC port, the converter sees these signals and can draw power from them. The ABB port provides does not provide power on the serial port so the BlackBox converter cannot draw power from the connection and communications are not possible. Figure 4: BlackBox Converter (Optional with DVT Systems) Possible Known problem: Communication between a DVT 600 and the ABB controller using the converter provided as an option with DVT systems may not work. The converter needs 6-2 volts supplied to certain pins in order to obtain power. Several solutions to this problem and the advantages and disadvantages of each will be discussed. Solution # Use a different interface converter that is powered externally. Several options will be presented here. The prices vary depending on the type of isolation and complexity of the devices. BlackBox offers several converters that are powered by VAC, 60 Hz. Although they provide extremely good isolation and configuration flexibility, the foot print of these converters is about x 8 inches and they are priced higher. RS-232-RS -422/48 Converter Plus : Part # IC08A List price : $29 RS-232-RS -422/48 Converter Plus w/opto-isolation: Part # IC09A-R2 For information on other converters visit www.blackbox.com. 4 List price : $308

The connectors on the converters mentioned above are a 4 point terminal block on the RS - 422/48 side and a 2-pin female D connector on the RS-232 side. The RJ- cable from DVT must be wired directly to the terminal block and an ABB-DB2 Male connector must be ordered or constructed as in figure 3 (simply connect transmit, receive and ground wires.) The converters can be configured as a DCE (Data Communications Equipment such as a PC) or DTE (Data Terminal Equipment, devices such as Bar code readers). The default configuration is DTE; so transmit and receive lines are crossed at the terminal block. See Figure. to VAC RJ- Connector on DVT 600 System Terminal block D2 female D2 male ABB Serial Port Connector PIn No. Signal V 2 Tx+ 3 Rx- 4 Rx+ Tx- 6 GND TxA TxB RxA RxB RS-422/48 to RS-232 converter 2 3 4 Figure : Connections with Externally Powered BlackBox Converter B&B Electronics manufactures an externally powered converter with terminal block connectors on the RS-422 and DB9 or DB2 connectors on the RS-232 side. It comes with an optional 0VAC to 2V DC transformer that provides power to 2 terminals in order to enable the driver. The price of this converter is around $70 in a very small package; one drawback is that it does not provide opto-isolation. The part number is 422LPCOR. For more information visit www.bb-eec.com Terminal block PIn No. Signal V 2 Tx+ 3 Rx- 4 Rx+ Tx- 6 GND TD (A) TD(B) RD(A) RD(B) GR RS-422/48 to RS-232 converter D2 female D2 male ABB Serial Port Connector 4 3 2 2V to VAC 2V Figure 6: Wiring for B&B electronics converter.

Obtaining one of these externally powered converters constitutes the most robust solution to the problem without special restrictions on the distances of the wires. Some disadvantages of this solution may be the increased price of the converter and the need for an extra power line on the installation. Solution #2 If the currently available converter is to be used then there must be power provided to it. A voltage of 6 2 volts with respect to SG (pin ) can be applied to any of the following pins exclusively: DTR: pin 4 RTS: pin 7 RI : pin 9 A terminal block with a 9 pin male connector will be ideal for this approach. The RS -232 side of the BlackBox converter plugs into the block and the TxD, RxD, and ground lines from the ABB serial cable are connected to the corresponding terminals. In addition a 2 V line should be connected to the terminal corresponding to pin 4 in order to power the converter. See Figure 7 for a schematic. RJ- from DVT Self-powerd converter Terminal block ABB Serial Port RS-422/48 to RS- 232 converter D9 female 2 3 4 D9 male 2 3 4 PIn No. Signal 2 TxD 3 RxD SG 6 7 8 Pin No. Signal NC 0 V 7 RTS N 8 CTS N 9 9 NC 2V + - Figure 7: Connections with Current BlackBox Converter This approach will provide a fast solution with the equipment currently available to DVT users. It carries almost no extra cost or space and has no special restrictions on the distance of the wires. A disadvantage of this solution is the need for an extra 2V line on the installation. 6

Solution #3 The final solution presented here consists of completely bypassing the converter. By wiring the TxD- and RxD- and ground wires from the RS-422 side to the TxD, RxD and ground from the RS- 232 side. To implement this solution, a different cable must be used on the DVT side. Instead of using a RJ- cable which carries only four conductors, a RJ-2 cable (same plug connectors but carries 6 conductors) must be used so that a common ground exists. A simple terminal block can be used for this approach. For the wiring details see Figure 8Figure. RJ-2 from DVT PIn No. Signal V 2 Tx+ 3 Rx- 4 Rx+ Tx- 6 GND RJ-2 cable (six conductors) ABB Serial Port Connector Pin No. Signal NC 0 V 7 RTS N 8 CTS N 9 NC Figure 8: Direct Wiring w/o Converter This solution is only applicable over very short distances (a few feet.) The RS-422/48 standard uses differential voltages to transmit data (allowing for greater distances), while the RS-232 standard uses absolute voltages. By performing the direct wiring explained above, the absolute signal levels produced in the RS-422/48 side and seen by the RS -232 side become close to the ±3V limit as the distance of the wires increases. In addition, this solution would make the system more vulnerable to noise. However, it has the advantage of not having to use a converter or an extra power line in the installation. Software-Example One of the solutions described in the hardware section should be implemented for the data exchange connection and the connections should follow the diagram in Figure 2. The best way to illustrate the necessary software steps is to go through a very simple example. A basic and common operation is to obtain the position of an object from the SmartImage sensor and feed it into a variable in the ABB controller. For the sake of simplicity this example will show how to send a single floating point number from the DVT system into the ABB controller (without regard for coordinate transformations). The steps necessary to accomplish this are: 7

On the DVT side:. Set up DataLink to output a string with the desired format. This simulates a soft sensor outputting a position result from an actual inspection. Write a floating point number as a string and note the EOL characters (LF last). 2. Output the string on every inspection 3. Configure the serial port B to the DataLink Driver and set connection parameters compatible with the ABB S4C+ requirements. It is important to use exactly these parameters or the connection will not work 8

The ABB port can be configured to receive data at 9600 Baud, 8 Data bits, Stop bit, no parity check and no flow control. Some of these settings can be modified on the controller side. Simply make sure that they coincide with DVT settings. 4. Wait until the S4C+ controller is ready to receive the data and trigger and inspection to test the installation. On the S4C+ side:. Write a simple program to read in the ASCII characters and place them in strings. 2. Convert the data to a floating point number and store it in a local variable. 3. Run the program and trigger a DVT inspection. 4. Check the variable to verify new addition. The following ABB Rapid program accomplishes the tasks defined above. VAR iodev channel2; VAR string dvtdata; VAR num dvtvalue; Open sio: channel2 \Bin; dvtdata := ReadStrBin(channel 2,); StrToVal(dvtData,dvtValue); Close channel2; Line : VAR iodev channel2 Declares an IO device and calls it channel 2 so it can be opened and read from. Line 2: VAR string dvtdata Sets up a string called dvtdata that will be used to store information from the serial port. Line 3: VAR num dvtvalue Declares a numeric value that can be used in the robot program to represent a position or distance. 9

Line 4: Open sio: channel2 \Bin Opens the serial port to read binary data. Line : dvtdata := ReadStrBin(channel 2,) Reads characters from the serial port and store them in dvtdata. Line 6: StrToVal(dvtData,dvtValue) Converts the string in dvtdata to a number and stores it in dvtvalue. Line 7: Close channel2 Closes the serial port. Feedback on this note is appreciated at techsupport@dvtsensors.com. 0