Connecting UniOP to CoDeSys Controllers via Ethernet

Similar documents
Connecting UniOP to Fatek Controllers with Facon Protocol

CODESYS V2.3 Ethernet Driver for JMobile

Connecting UniOP to Omron PLCs with the FINS Protocol

Connecting UniOP to Moeller Easy800

Connecting UniOP to Unidrive SP with Modbus CMP Protocol

Connecting UniOP to Beckhoff ADS Ethernet

Connecting UniOP Using Generic Modbus RTU

Connecting UniOP to Galil/Yaskawa controllers

Connecting UniOP as Modbus/TCP Server

Connecting UniOP as a Modbus Slave

Getting started with UniOP and CoDeSys integrated controller

CODESYS v. 2.3, Ethernet driver for AGI 3xx Use the CODESYS Ethernet driver in the AGI Creator Set up the CODESYS for use with the AGI Creator

ABB Modbus RTU Driver for JMobile

Mitsubishi FX Driver for JMobile

Profibus DP Driver for JMobile

Connecting UniOP to Datalogic Barcode Readers

CANopen HMI Communication Driver for JMobile

Mitsubishi FX Ethernet Driver for JMobile

Control Techniques Unidrive - Modbus CMP Ethernet Driver for JMobile

ROC Plus Communication Driver for JMobile

CODESYS V3 Ethernet Driver for JMobile

Panasonic FP Serial Driver for JMobile

Modbus TCP Driver for JMobile

Omron FINS Ethernet Driver for JMobile

Simatic S7 Ethernet driver for JMobile

Getting started with JMobile Suite

Connecting UniOP to Modbus/TCP

Modbus TCP Server Driver for JMobile

JMobile Suite User Manual

KNX TP/IP Communication Driver for JMobile

Getting Started with UniOP B Series Panels

UniOP Command Summary

Updating Systems Components in UniOP Series 400 Products

JMobile V2.6 SP1 Release Notes

Ethernet Connectivity for UniOP

Configuring WO Automation for Radio for TuneGenie

Control with UniOP. Tech-note PN# tn137-2.doc - 29/07/ Ver Contents

Connecting UniOP to Simatic S7 Profibus

CREATING PANEL APPLICATIONS

Newsletter. Communicate and Stay in Control. In This Issue

UniOP epad03 and epad04

Connecting UniOP to Simatic S7 MPI

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

UniOP CP01R-04, CP05R-04 and CP01F-02

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

Polling Data Registers from Siemens PLC Series S7-300, S7-400 & S7-1200

Compact HMI devices with 9 function keys, numerical keypad and 20 characters display.

ROC Plus Ethernet Driver

EasyBuilder Pro V This model is a gateway device; therefore, it is not possible to generate a

TECH-NOTE. The Keyboard Macro Editor. The Keyboard Macro Editor Dialog Box

JMobile V2.0 HF1 Release Notes

Operating guide. OPC server for ECL Comfort 310. Table of Contents

UniOP epad30, epad32. Tech-note PN# tn171-3.doc - 03/10/ Ver Highlights

Allen-Bradley Micro800 Series

Compact HMI devices with 5 function keys, numerical keypad and 20 characters display.

Fisher ROC Plus Ethernet Driver Help Kepware, Inc.

Fanuc Focas Ethernet Driver Help Kepware, Inc.

Industrial-Automation System HIMatrix. MODBUS Master/Slave. Manual

Fisher ROC Plus Serial Driver Help Kepware, Inc.

Connecting UniOP to Profibus DP TI

List of Technical Notes

CONTROLLER INFORMATION SHEET

Mitsubishi FX Net Driver PTC Inc. All Rights Reserved.

1. By adding [MODBUS Server] with [Ethernet] interface, the [MODBUS TCP/IP. Gateway] feature can be enabled by selecting the [Enable] checkbox.

BAC/S1.5.1 Building Automation Controller Function Description

REPLACING A PEERLINK NETWORK WITH 2572-A / 2572-B ETHERNET

EasyBuilder Pro V screen and editing the project with the Work Space window open.

Fisher ROC Serial Driver Help Kepware Technologies

Servo press kit YJKP - Host interface

Simulator Driver PTC Inc. All Rights Reserved.

Ping Driver PTC Inc. All Rights Reserved.

Fatek OPC Server. User s Manual

Application Note Designer Studio

User Manual AXON TEST V3.8 IKELOS. Simulator

Fisher ROC Plus Serial Driver Help Kepware Technologies

Philips P8/PC20 Driver PTC Inc. All Rights Reserved.

TIWAY Host Adapter Driver Help Kepware Technologies

Honeywell HC900 Ethernet Driver Help Kepware Technologies

EasyBuilder Pro V Build

Using Ethernet Port Isolation on the 2500P-ECC1 Ethernet Communications Coprocessor

SattBus Ethernet Driver PTC Inc. All Rights Reserved.

GE Ethernet Driver Help Kepware Technologies

JMobile V2.0 SP1 Release Notes

Cordex Controller Software v2.15

Modbus ASCII Serial Device Driver Help 2009 Kepware Technologies

ICC. EtherNet/IP Client Driver Manual INDUSTRIAL CONTROL COMMUNICATIONS, INC Industrial Control Communications, Inc.

Machine Automation Controller NJ-series. EtherNet/IP TM. Connection Guide. OMRON Corporation. CJ2-series Controller P568-E1-01

JMobile V2.0 Exor_template_v1.01

Alstom Redundant Ethernet Driver Help Kepware Technologies

7TS7TCP. IGSS Siemens S7 TCP/IP Interface Driver. User s Manual

Opto 22 Ethernet Driver Help Kepware Technologies

CODESYS Driver PTC Inc. All Rights Reserved.

CONTROLLER INFORMATION SHEET

7TS7TCP (Driver 72) IGSS Siemens S7 TCP/IP Interface Driver. User s Manual

Macros in Excel: Recording, Running, and Editing

Internal PLC (CODESYS) User Manual

Quick instructions: Programming of SmartPLC AC14/AC4S with CODESYS V3

The default installation folder is C:\Program Files\Wheel Shop Automation\Press.

WiaTag 1.4. User Guide. date: January 1, 2017

B-1122(7) Tutorial Guide

Transcription:

Connecting UniOP to CoDeSys Controllers via Ethernet This Technical Note contains the information required to connect UniOP panels to controllers based on the 3S CoDeSys PLC system using Ethernet communication. Contents 1 Introduction...3 2 CoDeSys Parameters and Designer Tags...3 3 Setting-up the Communication with Designer...5 3.1 Controller Setup...5 3.2 Panel Setup...6 3.3 Access Multiple Controllers, Source ID and Destination ID...6 4 Node Override IP...7 5 Node Override enable...9 6 Node enable...10 7 Node Port Override...9 8 The Data Field Properties dialog box...11 9 Data Formats...12 10 RDA, Alarms, Mailbox and Data Transfer...12 Connecting UniOP to CoDeSys Controllers via Ethernet 1

Tn242 Ver. 1.02 2007 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.uniop.com Connecting UniOP to CoDeSys Controllers via Ethernet 2

1 Introduction To create a Designer project for communication with controller based on CoDeSys ETH, select the driver CoDeSys ETH from the list of available communication drivers in the Configure Controller dialog box. Note: In case the CoDeSys ETH is not shown in the list, make sure that the file D32uplc212.dll is present in the Designer folder and then press the Refresh button. Starting from the version 5.02 4.01 the CoDeSys Ethernet communication driver supports two types of CoDeSys TCP protocols: TCP/IP Level 2 (this is the protocol originally supported) and TCP/IP Level 4. Starting from the version 5.03 4.03 the CoDeSys Ethernet communication driver supports also TCP/IP Level 2 Route. Selection can be done in Controller Setup as explained later in this document. 2 CoDeSys Parameters and Designer Tags This chapter describes how to import CoDeSys PLC parameter information into Designer using the TagEditor. When configuring PLC using the manufacturer s configuration software, make sure to enable Symbol file creation (file with.sym extension). It can be done under the CoDeSys programming software, by selecting Project\Option\Symbol configuration and mark the check box Dump symbol entries as shown in the picture below. Figure 1 Symbol configuration Click then on the Configure symbol file button and make sure the Export variables of object check box is marked as shown in the following picture. We recommend to un-check the check box and mark it again to be sure about the proper settings. Connecting UniOP to CoDeSys Controllers via Ethernet 3

Figure 2 TagEditor can be used to import parameters contained in the file exported by the CoDeSys software. TagEditor will prepare the Tag Database (.MDB file) which can be used in standard way from Designer s UI to import Tags. For more details on how to import MDB file, please check the Designer manual. Connecting UniOP to CoDeSys Controllers via Ethernet 4

3 Setting-up the Communication with Designer 3.1 Controller Setup Figure 3 below shows the Controller Setup... dialog box for the CoDeSys ETH driver. Figure 3 Controller Setup Dialog Box IP address Port Number PLC Model Use Motorola byte order Retain segment active Ethernet IP address of the controller connected to the UniOP This parameter allows changing the port number used for the communication. Default value for this parameter is set to 1200 and it corresponds to the default setting of CoDeSys-based controllers. Shows a list with the available protocol variants. Please make sure you check what protocol variant is supported by the CoDeSys run-time you want to connect. Defines the byte order that will be used by UniOP s communication driver when sending communication frames to the PLC. This is not applied to the byte order of the Data Received From/Sent To controller! To obtain the correct Data byte order, make sure to use appropriate Data Format, for instance: WORD or WORD INV. (Data Format can be selected in Data Field Properties dialog box described in chapter 4. Also, check chapter 5 for more details about Data Formats). Activates or deactivates usage of the retain segment defined in POURef 3. The user must be aware that when this option is checked, no automatic reallocation of already defined fields which uses POURef 3 segment is done. So, in the moment of checking this option, a warning message is displayed. Connecting UniOP to CoDeSys Controllers via Ethernet 5

Access Multiple PLC s Source ID &Destination ID The protocol allows the connection of multiple controllers to one operator panel. To set-up multiple connections, check Access Multiple PLC s checkbox and enter IP Address for all controllers. Source and Destination ID are available only when TCP/IP Level 2 Route is selected in Controller Setup. The Destination ID is the node of the PLC and allows the protocol to reads variable in a sub-network. The ID is used to read variables when multiple PLCs are connected in a subnetwork (serial network) but only one of it have the Ethernet interface. See chapter for 3.2 Panel Setup The HMI panel must have a unique IP address assigned to it. The IP address for the device may be entered in the Panel Setup dialog box under the tab External Devices. Enter the IP address in the field Ethernet Board as shown in Figure 3 below. Alternative methods of specifying the panel s IP address are also available. Figure 4 Define panel IP Address 3.3 Access Multiple Controllers, Source ID and Destination ID The Source ID and Destination ID are used only with TCP/IP Level 2 Route controller model. The typical situation in which Source ID and Destination ID are required, is a sub network made of controllers, interconnected between them, and having one unique Ethernet interface with one unique IP. The Destination ID is the controller identifier in the sub-network. Figure 5 shows an example. Connecting UniOP to CoDeSys Controllers via Ethernet 6

Figure 5 4 Node Override IP The Node Override IP is a function that allows changing in run time the IP addresses of any of the controllers configured in the PLC network. Note: the Node Override IP function requires driver version 5.04 4.04 or higher The Node Override IP is an internal variable of the communication driver; the Data Field Properties dialog box is shown in Figure 6. Each of the devices configured in the PLC network has it own Node Override IP variable. The node override variables can be used in the Designer project as normal numeric items; they have a default value matching the IP address assigned to individual controllers in Connecting UniOP to CoDeSys Controllers via Ethernet 7

the PLC network configuration. The value of the Node Override variables can be changed at run time to connect different IP addresses. Figure 6 The Data Field Properties dialog box The Node Override IP object is a double word; the 4 bytes correspond to the 4 bytes of the IP address as explained in Figure7. Figure7 Designer project example showing the bytes of the IP address Connecting UniOP to CoDeSys Controllers via Ethernet 8

4.1.1 Node Override Port Node Override Port allows changing at run time the Port number of a controller configured in Controller Setup. This object has a default value set to 1200 (Figure8). Figure8 The Data Field Properties dialog box Similarly to the Node Override IP, each controller configured in the PLC network, has its own Node Override Port. 4.2 Node Override Enable The Node Override Enable is an internal variable of the communication driver which is required to enable/disable the IP and Port override as programmed in the Node IP Override and Node Override port variables. The Data Field properties dialog is shown in Figure 9. Each controller configured in the PLC network has its own Node Override Enable variable. When the Node Override Enable is set to true, it activates the use by the communication protocol of the controller target IP specified by the Node Override IP and Node Override port variables. When the Node Override enable is set to false the target IP and Node Override port for the controller is the one specified in the project at programming time. Connecting UniOP to CoDeSys Controllers via Ethernet 9

Figure 9 The Data Field Properties dialog box 5 Node Enable The Node Enable variable allows disabling the connection to a certain controller. This can be useful when the Designer project is configured for several nodes and some of them are not physically present in the network for any reason. After disabling the communication with those nodes, the rest of the project will operated properly without the performance being influenced by the missing nodes (Figure 10). Figure 10 The Data Field Properties dialog box Connecting UniOP to CoDeSys Controllers via Ethernet 10

Note: all protocol system variables Node Override IP, Node Port override, Node Override enable, and Node enable are stored in RAM memory with battery back-up. 6 The Data Field Properties Dialog Box The CoDeSys ETH Data Field Properties dialog box is shown in the figure below. Figure 4 The Data Field Properties dialog box The Data Type combo box is used to select the memory area to be referenced. The following memory areas can be selected: Name Offset range Internal Panel Memory 0-511 PLC Memory 0-2147483646 PLC Input 0-65535 PLC Output 0-65535 PLC Retain 0-65535 PLC Parameters 0-65535 Internal Panel Memory This is a memory area internal to the UniOP panel and does not have any relation with the controller s memory. Any access to this area does not generate any message on the serial line. PLC Memory, PLC Input, PLC Output, PLC Retain This is the controller s general-purpose memory. Code number (POURef) for PLC Retain is adjustable in Controller Setup. PLC Parameters In order to access PLC Parameters, the user needs to import parameters from the symbol file, as described in previous chapter. Connecting UniOP to CoDeSys Controllers via Ethernet 11

7 Data Formats Tech-note The CoDeSys ETH communication driver handles standard as well controller-specific data formats, such as those needed for the TIME and POINTER data types. All standard data types are available both in normal and inverted low-level data storage. This will make possible to connect to controllers that are based both on high-endian and little-endian data formats. Some comments on special data types are given below. 1) Designer provides the special Data Format TIME and TIME INV. Values read from the PLC will be displayed in the following format: 1h2m3s4ms. Data entry for TIME variables can be done only using macro command STEP available in Designer Macro Editor, with appropriate step sizes: Use step size: hours 3600000 minutes 60000 seconds 1000 milliseconds 1 2) Designer will treat POINTER type data as DWORD when presenting its Data Format in the user interface. Please remind that special data formats do not support scaling and cannot be used in UniNet clients. 8 RDA, Alarms, Mailbox and Data Transfer All available data types can be used as reference for RDA, Alarms, Mailbox and Data Transfer. NOTE: Data Type PLC Parameters can be used for such purpose only if PLC s memory is configured in appropriate way. To check this, see Designer manual and appropriate memory mappings for each of these purposes. Connecting UniOP to CoDeSys Controllers via Ethernet 12

Appendix A. Communication Error Codes Current communication status is displayed on the system page of the UniOP. Beside the string, describing current state of the communication (OFF, ON, ERR), there is an additional error code representing the last (which may be not the current one) error encountered. The codes are: 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 while UniOP is waiting for ACK, or invalid data in frame. 05 Time out (receiving) No response received form the controller within the timeout period. 06 Response error Wrong response telegram structure. 07 General communication error General unknown communication error. 09 Send Timeout Timeout when sending data frame to controller 12 Checksum error Wrong checksum received from the controller. Connecting UniOP to CoDeSys Controllers via Ethernet 13