Simatic S7 Ethernet driver for JMobile

Similar documents
Mitsubishi FX Driver for JMobile

Modbus TCP Driver for JMobile

ABB Modbus RTU Driver for JMobile

Omron FINS Ethernet Driver for JMobile

CODESYS V2.3 Ethernet Driver for JMobile

CODESYS V3 Ethernet Driver for JMobile

Panasonic FP Serial Driver for JMobile

Profibus DP Driver for JMobile

Mitsubishi FX Ethernet Driver for JMobile

ROC Plus Communication Driver for JMobile

CANopen HMI Communication Driver for JMobile

Control Techniques Unidrive - Modbus CMP Ethernet Driver for JMobile

Modbus TCP Server Driver for JMobile

NMEA 0183 driver for JMobile

Siemens S (symbolic addressing) (Ethernet)

Connecting UniOP to CoDeSys Controllers via Ethernet

Connecting UniOP to Beckhoff ADS Ethernet

Application Note. Connecting a S S7A Driver V

KNX TP/IP Communication Driver for JMobile

Please refer to application note AN00129 for further details on HCP2 configuration in ABB motion control products.

JMobile V2.0 HF1 Release Notes

Connecting a PC Station to an S using OPC

JMobile V2.6 SP1 Release Notes

Getting started with UniOP and CoDeSys integrated controller

JMobile Suite User Manual

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE B5 Structured programming with function blocks

Motion Control Products Application note Connecting CP600 to motion products via Modbus RTU

Motion Control Products Application note Connecting CP600 to motion products via Modbus RTU

Connecting UniOP Using Generic Modbus RTU

Motion Control Products Application note Connecting CP600 to motion products via Modbus TCP

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

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA)

TIA Portal V11 Exercises

Getting started with JMobile Suite

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

Connecting UniOP to Moeller Easy800

GE Ethernet Global Data Driver Help Kepware Technologies

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

FAQ about communication via IE

GE Ethernet Driver Help Kepware Technologies

Connecting UniOP to Simatic S7 Profibus

Connecting UniOP as a Modbus Slave

Connecting UniOP to Fatek Controllers with Facon Protocol

Usability Improvement SIMATIC NET PC CD 11/2003

Honeywell HC900 Ethernet Driver Help Kepware Technologies

Connecting UniOP to Unidrive SP with Modbus CMP Protocol

Table of Contents. Table of Contents

Using an EXOR HMI with an SMLC

2.1. Project Information and Protection Global Settings Working with Tags... 15

S Firmware V4.0 Connection Guide

SIMATIC. Component Based Automation SIMATIC imap STEP 7 AddOn Creating PROFINET components. Preface. Creating PROFINET components in STEP 7

Learn-/Training Document

echochange Setting up data exchange between a Siemens S7-300 and an Allen-Bradley ControlLogix, using Siemens PUT and GET functions How to...

View the most recent product information online

UniOP Command Summary

Updating Systems Components in UniOP Series 400 Products

While every effort was made to verify the following information, no warranty of accuracy or usability is expressed or implied.

Internal PLC (CODESYS) User Manual

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

Aotewell SIMATIC S7-PDIAG for S7-300 and S Configuring Process Diagnostic Getting St

Service & Support. Data Communication between S7 Station and PC Station, using SIMATIC NET OPC Server SIMATIC S7. Function description March 2013

Applications & Tools. Time-of-Day Synchronization between WinCC Runtime Professional and S7 Controllers. WinCC Runtime Professional

EtherNet /IP. Interface Configuration Quick Start

Siemens TCP/IP Unsolicited Ethernet Driver PTC Inc. All Rights Reserved.

CDN Series Displays with Profibus-DP ELEN UNI-TXT (ND) protocol PARAMETRIZATION OF PROFIBUS-DP COMMUNICATION INTERFACE

SIMATIC. S7 and Profibus- DP Configuration Guide G1026

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E09. PROFINET with 2x CPU 315F-2 PN/DP

SIMATIC Industrial software Readme SIMATIC S7-PLCSIM Advanced V2.0 SP1 Readme

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

Siemens Distributor SIMATIC. Component based Automation Creating PROFInet Components

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

Fanuc Focas Ethernet Driver Help Kepware, Inc.

Sample project Filling Station SIMATIC. STEP 7 Professional / WinCC Advanced V11 for Sample project Filling Station. Overview of the Getting.

Display of SINAMICS Fault Messages in WinCC V7.4

GE Ethernet Driver PTC Inc. All Rights Reserved.

Modicon Modbus Driver

SCE Training Curriculum for the end-to-end automation solution Totally Integrated Automation (TIA)

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

Wonderware InTouch Client Driver Help Kepware Technologies

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

First Steps with S7-PDIAG and ProAgent

JMobile V2.0 Exor_template_v1.01

Simulator Driver PTC Inc. All Rights Reserved.

Modbus ASCII Serial Device Driver Help 2009 Kepware Technologies

Siemens TCP/IP Unsolicited Ethernet Driver PTC Inc. All Rights Reserved.


Advanced Process Functions V2.0

SIMATIC Visualization Architect (SiVArc) Getting Started

Document: S7 Driver Configuration. Setting up the S7 driver to communicate with Siemens Hardware (S7-300/400 Series) using CP

CHAPTER DIRECTLOGIC DRIVER. In This Chapter... DirectLOGIC Using Tag Integration DirectLOGIC Addressing in Point of View...

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

SCE Training Curriculum For Integrated Automation Solutions Totally Integrated Automation (TIA)

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE B6 Converting STEP5 -> STEP 7

InTouch Client Driver Kepware, Inc.

How to read or write multiple parameters using FB286

Ignition HMI interface to Fanuc Industrial Robots

Fisher ROC Serial Driver Help Kepware Technologies


Fisher ROC Plus Serial Driver Help Kepware Technologies

Why can you not transfer the HMI configuration to the panel? - PROFIBUS Connection - FAQ 03/2014

Transcription:

Simatic S7 Ethernet driver for JMobile This Technical Note contains the information needed to connect the system to Siemens Simatic S7 controllers on the Ethernet network using the Simatic protocol. Exor international S.p.A. Ptn0378 Ver. 1.08

Copyright 2015 EXOR International 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. Third-party brands and names are the property of their respective owners. www.exorint.net Simatic S7 Ethernet driver for JMobile 2

Contents Simatic S7 Ethernet Driver... 4 Protocol editor settings... 5 Tag editor settings... 6 Tag import for Simatic Step7... 8 Tag import for TIA Portal... 14 Aliasing tag names in PLC network configuration... 19 String data type... 20 Simatic S5timer data type... 23 Special data type... 25 S7-1200 and S7-1500 PLC Configuration... 26 Logo! PLC Configuration... 28 Communication status... 29 Simatic S7 Ethernet driver for JMobile 3

Simatic S7 Ethernet Driver The Simatic controller must either have an on-board Ethernet port or be equipped with an appropriate Ethernet interface (either built-in or with a module). The communication is based on the PG/OP (ISO on TCP) communication functions. The chapter describes settings for the driver to be applied in programming IDE software and in S7 PLC programming software. Document code ptn0378 Version 1.08 Simatic S7 Ethernet driver for JMobile 4

Protocol editor settings Tech-note Add [+] a driver in the Protocol editor and select the protocol called Simatic S7 ETH from the list of available protocols. Protocol settings can be defined using the following configuration dialog: Figure 1 Alias IP address Slot PLC Models PLC Network Name to be used to identify nodes in the plc network configuration. The name will be added as a prefix to each tag name imported for each network node. The Ethernet IP address of the controller connected to the operator panel. Defines the number of the slot where the CPU is mounted. Currently the Slot number is always 2 for S7-300 and may assume higher values for systems based on S7-400. The driver supports the communication with a number of different Siemens controllers. Please check directly in the programming IDE software for a complete list of supported controllers. The protocol supports connection to multiple controllers. To enable this option, check the "PLC Network" check box and enter the configuration per each controller node. Simatic S7 Ethernet driver for JMobile 5

Tag editor settings Tech-note Into Tag editor select the protocol Simatic S7 ETH from the list of defined protocols and add a tag using [+] button. Tag settings can be defined using the following dialog: Figure 2 Memory Type Area of PLC where tag is located. Data Type Internal Memory Data Block Input Output Timer value Counter value Simatic Type M DB I (E) O (A) T C Offset SubIndex Data Block Offset address where tag is located. This allows resource offset selection within the register. If Memory Type is Data Block, this will identify the DB number. Data Type Data Type Memory Space Limits boolean 1 bit data 0... 1 byte 8-bit data -128... 127 short 16-bit data -32768... 32767 int 32-bit data -2.1e9... 2.1e9 unsignedbyte 8-bit data 0... 255 Simatic S7 Ethernet driver for JMobile 6

unsignedshort 16-bit data 0... 65535 unsignedint 32-bit data 0... 4.2e9 float IEEE single-precision 32-bit floating point type 1.17e-38... 3.40e38 string Refer to String data type chapter NOTE: to define arrays, select one of Data Type format followed by square brackets like byte[], short[] Arraysize Conversion When configuring array or string tags, this option define the amount of array elements or characters of the string. Conversion to be applied. Value Inv bits Negate AB -> BA ABCD -> CDAB ABCDEFGH -> GHEFCDAB BCD S5timer(BCD) S5timer(BIN) Invert a bit (boolean tag) Invert all bits Swap nibbles of a byte Swap bytes of a word Swap bytes of a double word BCD format conversion S5 Timer in BCD format S5 Timer in binary format Simatic S7 Ethernet driver for JMobile 7

Tag import for Simatic Step7 The Simatic S7 Ethernet tag import filter accepts symbol files with extension.asc and.awl created by the Simatic Step7. The.asc file can be exported from the symbol table utility. See in Figure 3 how to access the Symbol Table from the Step7 programming software. Figure 3 From the Symbol Editor, click then on the Symbol Table menu and select Export.... Assign a name and save the ASCII file as shown in figure. Figure 4 Simatic S7 Ethernet driver for JMobile 8

The.awl file comes from the export operation of the Source code. Open any program block in the editor, for example OB1. Click on File menu and select Generate Source You will get the dialog box shown in Figure 5: Figure 5 Define a name (in the example is Sources ) and click OK. Simatic S7 Ethernet driver for JMobile 9

In Generate source Sources dialog - click [All >] button to select source generation for all blocks, - mark include reference blocks and Sort according to program structure checkboxes - choose Symbolic addresses then confirm with OK. Figure 6 Simatic S7 Ethernet driver for JMobile 10

This will generate an object called Sources (the name given before) accessible from the Sources folder of the Step7 project as shown in the following figure. Figure 7 Right click on the object and select Export Sources... This will allow you obtaining the.awl file to be imported in the Tag Editor. Figure 8 Simatic S7 Ethernet driver for JMobile 11

NOTE: the.awl file contains additional information not included in the.asc file exported from the Symbol Table; to make sure they are properly imported, a reference to the block should be inserted in the Symbol Table. For example, the tags from a data block are imported only if the symbol table contains a line with the data block name and related comment as shown in the following figure. Figure 9 The entry indicated in will Figure 9 enable the import filter to import the tags related to the specific data block. After.awl and.asc creation, click on the Import tag button >] to start the importer. Select Import type *.asc, then locate the.asc file and.awl files and confirm. They are both required to have the full information about all the data types used. Figure 10 Simatic S7 Ethernet driver for JMobile 12

Tags present in the exported files are listed in the tag dictionary from where they can be directly added to the project using the add tags button as shown in the following figure Figure 11 Simatic S7 Ethernet driver for JMobile 13

Tag import for TIA Portal Tech-note The Simatic S7 Ethernet tag import filter accepts symbol files with extension.tia and.xlsx exported from TIA Portal programming software. The.tia files refer to DB tags defined under "Program blocks", to import them follow these steps: 1. Configure the Data Block as Not optimized. With right click on Data Block name select Properties: Figure 12 Simatic S7 Ethernet driver for JMobile 14

Tab General > Attributes uncheck "Optimized block access" as below: Figure 13 NOTE: If checkbox "optimized block access" is not available (grayed out) could due to DB is an "instance DB" linked to an "optimized access FB". 2. Compile project to ensure TIA Portal calculate tags offset: Figure 14 3. Export DB tags for every Program Block: a) Double click on DB name b) Expand the view of program block selected c) Highlight all row into this view (CTRL + A to select all rows) d) Copy into clipboard ( CTRL + C ) e) Open a Text editor and paste the clipboard content ( CTRL + V) Simatic S7 Ethernet driver for JMobile 15

Figure 15 f) Save the file as "DBxxx.tia", where xxx=number of DB. NOTE: saving text file with Notepad with extension ".tia" pay attention to select "Save as type" as "All Files" otherwise the file will be named DB2.tia.txt and will not be visible from importer. The.xlsx file refers to PLC tags, to import them follow these steps: 1. Double click on "Show all tags" to open tag table 2. Click on Export button and browse for path file 3. Define file name Figure 16 Simatic S7 Ethernet driver for JMobile 16

4. Confirm with Save Figure 17 5. Export with OK Figure 18 Simatic S7 Ethernet driver for JMobile 17

After.tia and.xlsx creation, click on the Import tag button >] to start the importer. Select Import type as *.tia; *.xlsx Figure 19 Locate.tia if you have tags coming from DB otherwise skip with [Cancel] button, then locate the.xlsx file and confirm. The tags present in the exported files are listed in the tag dictionary from where they can be directly added to the project using the add tags button as shown in the following figure Figure 20 Simatic S7 Ethernet driver for JMobile 18

Aliasing tag names in PLC network configuration Tag names must be unique at project level; it often happens that the same tag names are to be used for different controller nodes (for example when the HMI is connected to two devices that are running the same application). Since tags include also the identification of the node and Tag Editor does not support duplicate tag names, the import facility in Tag Editor has an aliasing feature that can automatically add a prefix to imported tags. With this feature tag names can be done unique at project level. The feature works when importing tags for a specific protocol. Each tag name will be prefixed with the string specified by the Alias. As shown in the figure below, the connection to a certain controller is assigned the name Node1. When tags are imported for this node, all tag names will have the prefix Node1 making each of them unique at the network/project level. Figure 21 NOTE: Aliasing tag names are only available when tags can be imported. Tags which are added manually in the Tag Editor do not need to have the Alias prefix in the tag name. The Alias string is attached to the tag name only at the moment the tags are imported using Tag Editor. If the Alias string is modified after the tag import has been completed, there will be no effect on the names already present in the dictionary. When the Alias string is changed and tags are imported again, all tags will be imported again with the new prefix string. Simatic S7 Ethernet driver for JMobile 19

String data type In Simatic S7 PLC it's possible to define two different types of tags to manage string variables. - as Array [1..xx] of Chars. - as String[xx]. Step7 string declaration is showed in Figure 22: Figure 22 TIA Portal string declaration is showed in Figure 23: Figure 23 NOTE: Usage of String[xx] data type is allowed but a specific Conversion must be applied to the tag. Anyway using tag importer to import tag dictionary from TIA Portal or Step7 string tags are automatically configured and no changes/conversion are needed. Simatic S7 Ethernet driver for JMobile 20

To manually add an "Array [1..xx] of Chars" data type tag, press the [+] button in the Tag Editor, then select "string" as Data Type of the Tag and type the string length in the "Arraysize" field: and confirm with OK button. Figure 24 To manually add a "String[xx]" data type tag, press the [+] button in the Tag Editor, then select "string" as Data Type of the Tag and type the string length in the "Arraysize" field, Figure 25 Simatic S7 Ethernet driver for JMobile 21

then click on [+/-] button to open the Conversion dialog. Figure 26 Into conversion dialog: - select the "S7 String" conversion type. - click on [+] button to add the conversion. Figure 27 The conversion will be listed into the Configured window on the right. Confirm with OK button. Simatic S7 Ethernet driver for JMobile 22

Simatic S5timer data type Tech-note Simatic drivers support a special data type, called S5Timer. The tag must be configured with a specific data type and a conversion must be applied to the Tag to correctly read/write a Simatic S5Timer Variable. Open the Tag Editor and add a Tag pressing the Plus button. Figure 28 Select unsignedint as Data Type of the Tag. Figure 29 Simatic S7 Ethernet driver for JMobile 23

Click on +/- button to open the Conversion dialog. Figure 30 In the Conversion dialog select the S5timer(BCD) conversion type [A] then click on Plus button [B] to add the conversion, the configured conversion will be listed into the Configured window on the right. Then confirm with OK. Figure 31 Simatic S7 Ethernet driver for JMobile 24

Special data type The Simatic S7 Ethernet driver provides a special data type called "Node Override IP". The Node override IP allows changing at run time the IP address of the target controller. This memory type is an array of 4 unsigned bytes, one per each byte of the IP address. The Node Override IP is initialized with the value of the controller IP specified in the project at programming time. If the Node Override IP is set to 0.0.0.0, all the communication with the slave is stopped, no request frames are generated anymore. If the Node Override IP has a value different from 0.0.0.0, it is interpreted as node IP override and the target IP address is replaced run-time with the new value. In case the panel has been configured to access to a network of controllers, each node has its own Node Override IP variable. Note: the Node Override IP values assigned at run-time are retained through power cycles Figure 32 Simatic S7 Ethernet driver for JMobile 25

S7-1200 and S7-1500 PLC Configuration The S7-1200 (starting from firmware version 4.0) and S7-1500 plc series from Siemens has a built-in firewall, by default the maximum protection level is enabled. To establish communication with these plc models it is necessary to enable S7 communications with 3 rd party devices, this setting is available from TIA Portal programming software, as explained in the following section. 1. Open the PLC project in the TIA Portal software. 2. Select the PLC from the project tree and open the PLC Properties. Figure 33 Simatic S7 Ethernet driver for JMobile 26

3. In the General tab, select Protection and make sure Full access (no protection) is selected. Figure 34 4. Then scroll down the page and check Permit access with PUT/GET communication from remote partner (PLC, HMI, OPC, ) option. Figure 35 Simatic S7 Ethernet driver for JMobile 27

Logo! PLC Configuration Tech-note The communication with Logo! PLC requires a specific configuration, to set-up the PLC for proper communication please follow these steps: 1. Open the Logo!Soft Comfort project, then select Tools > Ethernet connections. Into the Configure Ethernet Connections dialog right click on Ethernet Connections voice and add a server connection. Figure 36 2. Double click on the newly created connection to open the connection properties, inside the dialog select the Connect with an operator panel (OP) and the Accept all connection requests options, then into the Remote Properties (Client) section enter 02.00 into the TSAP field. Figure 37 Simatic S7 Ethernet driver for JMobile 28

Communication status Tech-note The communication status can be displayed using the dedicated system variables. Please refer to the User Manual for further information about available system variables and their use. The status codes supported for this communication driver are: Error NAK Timeout Invalid response General Error Notes Controller replies with a not acknowledge. Request is not replied within the specified timeout period; ensure the controller is connected and properly configured for network access The panel did receive from the controller a response, but its format or its contents or its length is not as expected; ensure the data programmed in the project are consistent with the controller resources. Error cannot be identified; should never be reported; contact technical support Table 1 Simatic S7 Ethernet driver for JMobile 29