Home
CODESYS V2.3 Ethernet Driver for JMobile
Contents
1. System Widget Recipe PLC PRG Y POS P1 4 CoDeSys ETH protl PLC PRG Y POS P1 D Read Only 9 Read Write Write Only TagIndex 0 Lox cancel Figure 11 Data Types The import module supports variables of standard data types and user defined data types Standard Data Types The following data types in the CODESYS programming tool are considered standard data types by the import module BOOL WORD DWORD INT UINT UDINT DINT STRING ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 14 EXOR INTERNATIONAL lech note DATE amp TIME and 1 dimensional ARRAY of the types above The 64 bit data types L WORD LINT and LREAL are not supported String length for a STRING variable in PLC should be max 80 characters Declare a STRING variable either with a specified size str STRING 35 or default size str STRING which is 80 characters Special Data Types The CODESYS V2 ETH driver provides one special data type called IP Override The IP Override IP allows changing at run time the IP address of the target controller you want to connect 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 IP Override is set to 0 0 0 0 all the communication with the node is stopped no request frames
2. BlockSize Timeout ms Protocol type Source Address Destination Address Motorola PLC Models Motorola Figure 2 Note The CODESYS V2 Ethernet driver supports the connections to multiple controllers starting from version V1 60 Note The CODESYS V2 ETH driver is the best choice also when creating projects for the internal controller DLC CODESYS To use the CODESYS V2 ETH driver for communication with iPLC it is enough to configure the IP address of the PLC as localhost 127 0 0 1 The iPLC CODESYS supports communication with CODESYS V2 ETH driver with symbol based support see next chapter starting from V1 55 and above ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 7 X OR iNTERNATIONAL lech note CODESYS Software Settings When creating the project in CODESYS the option Download Symbol File in Target Settings General must be checked r Target Settings Configuration EXOR SITEK CoDeSys for JMobilewWCE WE AARM UN31 Target Platform Memory Layout General Network functionality Visualization 0 Contiguration Iw Configurable No address check Iw Download symbol file Byte addressing mod Iw PLC Browser Load bootproject automatically Iw Trace Iw Online Change I Cycle independent forcing Retain forcing Save Update unused Lis Default Cancel Fi
3. 04 03 00 global vari library SYSLIBTIME LIB 27 7 05 04 03 00 global variables abate connscuon ibrary SYSTASKINFO LIB e S Macros S A OO Bt AG 28 ani SO AR cana SO nuu D I 1 Version 2 7ProjectId 120356 7Checksum 0 Filesize 0 rVersion REAL 4 140 4 b 164 02000044 2 4 5 8 s 0 IV Export variables of object Iw Export data entries Iw Export structure compone Export array entries JW write access Figure 10 Note When Export array entries is not set only one tag is created and exported into the SYM file The Array will not be automatically imported in Tag Editor and Tags need to be manually configured in Tag Editor Z LPagel protocol e sl A V X B m Codese ETHart JaA Lene REEL Gee M o ye RE e Lee ULC PRG Y POS P1 CoDeSys ETH prot DEL PRG Y POS P1 4143 fase Va CoDeSys ETH e CoDeSys ETH Address Space Tag Name Offset Local Global Var PLc mon POS P1 144 r2 SubIndex Data Type o short 0 Conversion OW EE ANersion PLC_PRG Y_ PLC PRG Y POS ear PLC PRG Y POS P1 1 PLC PRG Y POS P1 2 PLC PRG Y POS P PLC PRG Y POS P1 4 PIC PRG Y POS BIS Kl ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 13 EXOR iNTERNATIONAL lech note All Tag elements can be referenced in the editor using Taglndex in the Attach to Tag dialog P fieldi value
4. Aliasing Tag Names in Network Configurations 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 ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 10 X OR iNTERNATIONAL lech note vi X i joesste Ji Les Ty De Mem seg i sd Wane TF gee t rapi Pet RH ex open sdH ff TH geng 5 1 e pedibus om Et ow adit Milha TH g ti np Pt sd M n 7 7 aen 4 sd Ted TF anm ia S Wf 7 7 gen ia idi Wate 77 gen j D St cy 2 m sighed Short Node id as defined in import file Slave Id B i ei c i PL Water evel gr o e moe s owt n i p Dt wn H Me
5. are generated anymore If the IP Override 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 Override variable Note the IP Override values assigned at run time are retained through power cycles CODESYS V2 ETH CODESYS V2 ETH Address Space Node Override IP e Data Type Conversion Applica te Figure 12 ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 15 X UH INTERNATIONAL lech note Limitations Max block size is 1024 byte Communication Status The current 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 codes supported for this communication driver are Symbols file not present Check Symbol file and download again the PLC program tag not present in Symbols files Check if the Tag is present into the PLC project Time out on Acknoledge Time out on last Acknoledge Controller didn t sent last ack Time out on data reciving Controlled does not reply with data Connection timeout Device not connected ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 16
6. based controllers PLC Model Defines the byte order that will be used by the communication driver when sending communication frames to the PLC Block Size Enter the max block size supported by your controller limit is 1024 KB Protocol type 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 Timeout The number of milliseconds between retries when communication fails ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 6 X OR INTERNATIONAL lech note Source Address amp Destination Address PLC Network CoDeSys ETH Source and Destination Address are available only when TCP IP Level 2 Route is selected in Controller Setup The Destination is the node of the PLC and allows the protocol to reads variable in a sub network The address is used to read variables when multiple PLCs are connected in a sub network serial network but only one of it have the Ethernet interface 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 Alias IP address Port V PLC Network Alias IP address 0 Port 1200 BlockSize 128 Timeout ms 10000 Protocol type Level2 Source Address 0 Destination Address 0 PLC Models
7. E X UH INTERNATIONAL Tech note CODESYS V2 3 Ethernet Driver for JMobile This documents describes how to use the CODESYS Ethernet driver for JMobile platform EXOR International S p A Ptn0344 Ver 1 09 X OR INTERNATIONAL lech note Copyright 2013 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 uniop com X LI R INTERNATIONAL lech note ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile EXOR INTERNATIONAL lech note Contents CoDeSys V2 3 Ethernet Driver 5 Protocol Editor Settings ionic edes ee salse sae ee Pea Bue ea caa idee 5 CODESYS Software Settings sssssssssssssesee eene enne 8 BE Te Din lee 9 Aliasing Tag Names in Network Contourattons 10 1 1 COE uci 11 BICIS 14 Standard BEIM TE 14 Special Data Type TL 15 LAMINALIGNS e DR 16 C omm nicaton TEE 16 ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 4 EXOR INTERNATIONAL lech note CoDeSys V2 3 Ethernet Driver The CODESYS communication driver for Ethernet supports communication switch controllers based on the V2 3 CODE
8. SYS version Please note that changes in the controller protocol or hardware which may interfere with the functionality of this driver may have occurred since this documentation was created Therefore always test and verify the functionality of the application To accommodate developments in the controller protocol and hardware drivers are continuously updated Accordingly always ensure that the latest driver is used in the application Protocol Editor Settings Add a driver in the Protocol editor and select the protocol called CODESYS V2 ETH from the list of available protocols The CODESYS V2 ETH driver supports three different protocol types Level2 Level2 Route Level4 The protocol type can be selected from the dedicated combo box in the dialog ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 5 X OR iNTERNATIONAL lech note Port BlockSize Timeout ms Protocol type Source Address Destination Address 0 PLC Models Motorola Figure 1 Alias Name to be used to identify nodes in network configurations The name will be added as a prefix to each tag name imported for each network node IP address Ethernet IP address of the controller Port 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
9. ese ae ke D E Ds AN oe Es own I rut te ee Mtt rrt oem Figure 8 Note An Aliasing tag name is 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 you modify the Alias string 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 1 1 Tag Array Tag Arrays are split into individual elements and one Tag for each element is created The figure below shows an example of one Array with 10 elements ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 11 X OR INTERNATIONAL Tech note vos 7 mm mm E Edit Project Insert Extras Online Window Help 2u iae e 9 PLC PRG PRG ST JiPROGRAM PLC PRG up E PLC_PRG PRG EE 1 Version 2 2 ProjectId 128702 3 Checksum 0 4 Filesize 0 5 rVersion REAL 4 140 4 b 16 02000044 PLC PRG Y POS P1 ARRAY 0 10 OF INT 4 144 22 b 16 00000040 Y POS P1 ARRAY 0 10 OF INT BAIE Set object attributes Options Category Load amp Save i Use Information Iv Dump symbol entries j Desktop EF Resource
10. gure 3 Note CODESYS V2 ETH communication driver supports the automatic symbol file SDB upload from the PLC any change in the tag offset due to new compilation of the PLC program does not require a symbol file re import Tag file has to be re imported only in case of tag rename or definition of new tags When the option Download symbol file is not available or not checked the protocol can work only if the Projectld tag is imported Any change in the tag offset due to new compilation of the PLC program requires that symbol file is imported again t vj kmmpljoessumee ER Name Address H Name Group Driv z Projectid ar We ETHp OF Projectld PRO ID 147842 UL E E Gd Projectld nr false 0 PROJ D 147842 Figure 4 ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 8 X OR INTERNATIONAL lech note Tag Import 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 Options Category Load amp Save User Information Editor Desktop Colors Directories Set object attributes I Dump symbol entries Cancel Passwords Source download Symbol config
11. s Colors Soso ECH Global Variables Directories library ANALYZATION LIB tog 7 library IECSFC LIB 27 7 05 Passwords Configure symbol fil library SYSLIBCALLBACK LIJ Source Geet i 3 3 library SYSLIBTIME LIB 27 Symbol configuration i TERT D C library SYSTASKINFO LIB 2 Macros D m IV Export variables of object T Export data entries Export structure components IV Export array entries I Write access Figure 9 Note When Export array entries is set a tag for each element is created and exported into the SYM file The entire tag list is automatically imported into Tag Editor The amount of tags can be reduced and only one Tag for each one array can be created by removing the checkbox Export array entries see figure below ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 12 X OR iNTERNATIONAL lech note hone 799 mmm mm I8 Edit Project Insert Extras Online Window en Sigi Eee i Sel 9 PLC PRG PRG ST POUs E PLC PRG PRG PROGRAM PLC PRG AR Set object attributes mme CH array pro BS POUs amp jB PLC PRG PRG Ceci User Information FZ Dump symbol ertried POR eU pos pi ARRAY 0 10 OF INT nd e T Resources j T Bump ML gibal A E Global Variables E library ANALYZATION LIB 5 10 99 10 05 06 global variabl library IECSFC LIB 27 7 05 04 03 00 global variables Configure symbol file C3 library SYSLIBCALLBACK LIB 27 7 05
12. uration 2 z S Database connection i LYZATION LIB 05 06 global variab Macros 0 glob Pr Configure symbol file Iw Export variables of object port data entries Iw Export structure components IV Export array entries IV Write access Figure 5 Note 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 Select the driver in the Studio tag editor and click on the Import tag button to start the importer ptn0344 9 doc 9 06 2014 CODESYS V2 3 Ethernet Driver for JMobile 9 X OR iNTERNATIONAL lech note d ProjectView e 1 Pagel t cw A V amp 0 gt Codesys ETH pnt a Projectl tg Projectl Gp Pages 1 Pagel Ce Config Protocols Tag Import Tags B Trends A Alarms gf Events Buffer TW Scheduler 55 MultiLanguage Eig Security i 6 UserGroups A Users Eby AuditTrail PORTO AAT Figure 6 Locate the sym file and confirm The tags present in the exported document 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 dex 8 ARRAY WORDI I 0 ARRAY WORD 2 MWO 1 ARRAY WORD 3 MWO 2 ARRAY WORDIZ MWO 3 MDW2 MDO 2 MDW3 MDO 3 Figure 7
Download Pdf Manuals
Related Search
Related Contents
Origin Storage Dell Internal Notebook Keyboard - Russian read catalog Samsung Samsung Gear circle Инструкция по использованию DDS RUT500 Router WAKE FRE IM - Vers le répertoire parent 回路図非公開 回路図非公開 Beewi BBH12 KitchenAid KHMS145J User's Manual Behringer PX3000 User's Manual Mode d - Primo Copyright © All rights reserved.
Failed to retrieve file