Home
CODESYS V2.3 Serial Driver for JMobile
Contents
1. ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 10 X OR INTERNATIONAL LeCh note ee E Edit Project Insert Extras Online Window Ben au Eee i Sel PLC_PRG PRG ST POUs E PLC_PRG PRG PROGRAM PLC_PRG AR Set object attributes a s E array pro POus E PLCPRG PRG crea User Information FZ Dump symbol ertried po baw t dY_POS_P1 ARRAY 0 10 OF INT See a T Resources j T Bump ML gibal A E Global Variables E library ANALYZATION LIB 5 10 99 10 05 06 global variabl f library IECSFC LIB 27 7 05 04 03 00 global variables Configure symbol file E library SYSLIBCALLBACK LIB 27 7 05 04 03 00 global vari library SYSLIBTIME LIB 27 7 05 04 03 00 global variables siabeseconrecton ibrary SYSTASKINFO LIB 4 ge Macros p Se OO Deer AG AO SO AD BO BO 1 Version 2 7ProjectId 120356 7Checksum 0 7Filesize 0 rVersion REAL 4 140 4 b 16 02000044 2 4 5 8 o IV Export variables of object IV Export data entries IV Export structure compone I Export array entries Write access Figure 9 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__uPagel_ _ protocols Tags x A V X B M gt CoDesys ETHpon J
2. 13 ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 4 X OR INTERNATIONAL LeCh note CODESYS V2 3 Serial Driver The communication driver has been designed for serial communication with controllers based on CODESYS V2 3 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 SER from the list of available protocols Alias BlockSize Timeout ms Num of repeats PLE Models CODESY S V2 SER Figure 1 Alias Block Size Timeout Num of repeats ptn0433 2 doc 9 06 2014 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 Enter the max block size supported by your controller limit is 1024 The number of milliseconds between retries when communication fails This parameter defines the number of times a certain message will be CODESYS V2 3 Serial Driver for JMobile 5 XO R INTERNATIONAL P
3. EX OUR INTERNATIONAL Tech note CODESYS V2 3 Serial Driver for JMobile This documents describes how to use the CODESYS V2 serial driver for JMobile EXOR International S p A ptn0433 Ver 1 02 X OR INTERNATIONAL Le Ch 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 XO R INTERNATIONAL Le Ch note ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile EXOR INTERNATIONAL Le Ch note Contents CODESYS V23 Serial Driver visi inc dow ee Le eens de ed 5 Protocol Editor Settings sssrinin iane chee ulis ieee ellie echel indeed 5 CODESYS Software Settings ccccccecceeeeeeeeeneeeeneeeceaeeeeaeeeeeaeeteaeeeseaeeseaeeseaaeeseeeeeeneenaas 6 TAG MMPOrts E A E eh Ge ie ol ee eh de ee ee 7 Aliasing Tag Names in Network Configurations cccccccceeeeeeeeeeeeeeeeeeeeaeeseneeeseaeeseeeees 9 1 1 Mag Attay shen etal eh A TE dil ae 10 Data TYPOS tive A lethal ecteiett A a 12 standard Data Types tencr iiiaae aaa eaa Allee eatin 12 LIMILALIGNS sii coe tees Dea EE R ieee cet 13 Communication Statu Scn e i eee
4. LC Model Comm Parameter Dialog Port Parity Baudrate Stop bits 4 Tech note sent to the controller before reporting the communication error status A value of 1 for the parameter No of repeats means that the panel will eventually report the communication error status if the response to the first request packet is not correct Defines the byte order that will be used by the communication driver when sending communication frames to the PLC Figure 2 Port Baudrate Parity Data bits Stop bits Serial port selection COM1 is the PLC port COM2 is PC Printer port on panels with 2 serial ports or refers to the optional plug in module plugged in Slot 1 2 for panels with 1 serial port on board COMS refers to the optional plug in module plugged in Slot 3 4 for panels with 1 serial port on board Communication parameters for the serial line CODESYS Software Settings When creating the project in CODESYS the option Download Symbol File in Target Settings General must be checked ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 6 X OR INTERNATIONAL LeCh note Target Settings Configuration EXOR SITEK CoDeSys for JMobilew CE WCE ARM UN31 Target Platform Memory Layout General Network functionality Visualization 1 0 Configuration MV Configurable No address check M Download symbol file T_ Byte addressing mode V PLC Browser 7 Load bo
5. Source download Configure symbol file Symbol configuration Database connection Macros IV Export variables of object IV 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 ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 8 X OR INTERNATIONAL LeCh note ProjectView RIX PY Hav Avi shel E Y gt CoDesys ETHprot1 7 6 3 Driver a Projectl ig Projectl Gp Pages E 1 Pagel Config Protocols Tags 4 Trends a Alarms sw Events Buffer FF Scheduler Rp MultiLanguage Eig Security g UserGroups A Users AuditTrail i A AMudtTeil Tag Import 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 m dex 8 ARRAY_WORDI I 0 ARRAY_WORD 2 MWO 1 ARRAY_WORD 3 MWO 2 ARRAY_WORD 4 MWO 3 MDW2 MDO 2 MDW3 MDO 3 Figure 7 Aliasing Ta
6. aA Ne eg e _ ___er__ _fosress ___ Conmert__ aw _ _satwe_ gt PLC_PRG Y_POS_P1 CoDeSys ETH prot OPLC_PRG Y POS PI 4 14 false Va CoDeSys ETH CoDeSys ETH Address Space Tag Name Offset Local Global Var PLC_PRG Y_POS_P1 144 SubIndex Data Type o short 0 Conversion gjj EE ANersion PLC_PRG Y_ PLC_PRG Y_POS TETT PLC_PRG Y_POS_P1 1 PLC_PRG Y_POS_P1 2 PLC_PRG Y_POS_P1 3 PLC_PRG Y_POS_P1 4 PIC PRG Y POS P1I5L i Kl ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 11 EXOR INTERNATIONAL LeCh note All Tag elements can be referenced in the editor using Taglndex in the Attach to Tag dialog fieldi_value Tag System Widget Recipe 4 CODESY S V2 SER protl PLC_PRG Y _POS 1 ReadOnly Read Write Write Only Figure 10 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 ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 12 EXOR INTERNATIONAL Le Ch note DATE amp TIME and 1 dimensional ARRAY of the types above The 64 bit data types LWORD LINT and LREAL are not supported String length for a STRING variable in PLC should be
7. ample of one Array with 10 elements DeSys array pro Edit Project Insert Extras Online Window Help u Wee amp PLC_PRG PRG ST 0004 PROGRAM PLC_PRG VAR Y_POS_P1 ARRAY 0 10 OF INT P o M PLC_PRG PRG I aray pro Category aa POUs E B PLC_PAG PRG crea Load amp Save i oA B Resources 9 Global Variables library ANASLYZATION LIB library IECSFC LIB 27 7 05 0 library SYSLIBCALLBACK LI Symbol configuration ibrary SYSLIBTIME LIB 27 1 projectId 128702 Database connection library SYSTASKINFO LIB 2 E Checka Macros 4 Filesize 0 s rVersion REAL 4 140 4 b 16 02000044 PLC_PRG Y_POS_P1 ARRAY 0 10 OF INT 4 144 22 b 16 00000040 User Information v 3 Editor IV Dump symbol entries Desktop T Dump XML symbol t Colors Directories Passwords Configure symbol fil Source download 2 Version 2 IV Export variables of object IV Export data entries I Export structure components IV Export array entries I White access Figure 8 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
8. g 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 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 ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 9 X OR INTERNATIONAL Le Ch note 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 ex
9. max 80 characters Declare a STRING variable either with a specified size str STRING 35 or default size str STRING which is 80 characters 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 Symbol file not present Check Symbol file and download again the PLC program tag not present in Symbol file Check if the Tag is present in the PLC project Time out on Acknowledge Controller didn t send acknowledge Time out on last Acknoledge Controller didn t send last acknowledge Time out on data receiving Controlled does not reply with data Connection timeout Device not connected ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 13
10. otproject automatically M Trace MV Online Change I Cycle independent forcing T Retain forcing l Save M Update unused I Os Default Cancel Figure 3 Note CODESYS V2 SER 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 CODESYS V2 SER p 0 Projectid PROJ_ID 147842 UL PROJ_I 147842 Figure 4 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 ptn0433 2 doc 9 06 2014 CODESYS V2 3 Serial Driver for JMobile 7 X OR INTERNATIONAL Le Ch note selecting Project Option Symbol configuration and mark the check box Dump symbol entries as shown in the picture below Category Load amp Save User Information Editor Desktop Colors Directories Set object attributes V Dump symbol entries Passwords
Download Pdf Manuals
Related Search
Related Contents
FBK-20601XLN-LS17 吊顶风幕机说明书20141224(220~, 50Hz) pH Meter pH 960 USER MANUAL User Manual Climate Controller KR494 Version Manuel - Animo 522 KB - Hitachi Digital Media Group Copyright © All rights reserved.
Failed to retrieve file