Home

zenon driver manual BURPVI - COPA-DATA

image

Contents

1. oa PRI S di SR str Taar Edit selected cell F2 ible Replace textin selected column ts Project tee ae Netvork topology Replace text in limits 2 The dialog for configuring variables is opened 3 configure the variable Creating variables SS zenon 4 The settings that are possible depends on the type of variables Settings Name 5_Variable _Variable Start index is 0 Start index is 1 Dim 1 91 Automatic addressing Addressing according to data type offset and start offset Manual addressing Each datatype starts with new offset Automatic addressing Activate all elements Activate element manually Distinct name of the variable If a variable with the same name already exists in the project no additional variable can be created with this name Attention The character is not permitted in variable names If non permitted characters are used creation of variables cannot be completed and the Finish button remains inactive Drivers Select the desired driver from the drop down list Note If no driver has been opened in the project the driver for internal variables Intern exe Main chm Intern chm Intern htm is automatically loaded Driver object type Select the appropriate driver object type from the drop down list iCcti chm 266065 h tm 42 Data type Select the desired data type Click on the button to open the selection dialog Array setti
2. For example zenon 3 3 BURPVI Data sheet PLC types All Bernecker and Rainer PLCs which can use the PVI communication like System 2000 family 2003 2005 etc Acopos X20 System AutomationPC PowerPanel and others BURPVI Data sheet zenon X Spontaneous communication k H k K H c pooo m Hardware PC RS 232 interface or Standard network card Software PC PVI software necessary also under Windows CE PC setup can be found on installation DVD Operating systems Windows CE 5 0 CE 6 0 Windows XP Vista 7 Server 2003 Server 2008 R2 Driver history zenon CE platforms x86 4 Driver history 26 01 10 1400 Driver was created newly 14 01 10 1500 Fixed error at the configuration 05 03 10 1600 Adjusted to PVI 3 0 17 03 10 1700 Revised dialogs 5 Requirements This chapter contains information on the requirements that are necessary for use of this driver 5 1 PC PVI software from Bernecker Rainer 5 2 PLC 6 Configuration In this chapter you will learn how to use the driver in a project and which settings you can change 9 Info Find out more about further settings for zenon variables in the chapter Variables main chm 15247 htm of the online manual 6 1 Creating a driver In order to create a new driver gt Right click on Driver in the Project Manage and select Driver new in the context menu gt Inthe following dialog the control system offers a list of all avail
3. mainCyclic st Structured Text l Global var Variable Declaration l mair omn a Re TT zj Object Name Description PC Tag Name gt Data Type El 5 x20 bap E Global typ 1 Global var P main H fat mainCyclic st H st maininit st Fl g main var ba Cntr E i 1 P test ee Tmplnd1 ee Tmpind oo VarDint ve Varlnt L K VarString 6 add the variable you want to read out via drag amp drop Creating variables SS zenon 7 To beable to import structures and arrays offline too the items of the structures must be removed a x el caare masincycic st LA Rename L Var3Stuct New Meve Up e Var3Struct New Move Down Z Var3Struct New Sort Up Sort Down amp Var3Struct New L Var3Sruct New Columns Z Var3Struct New Add OPC Tag Add OPC Custom Property Add OPC Alarm Singularize OPC Tag K Var3Stuct memberi N L Var3Struct member1 N m Var3Stuct member1 N Z Var3Steuct member1 N 8 atcompiling the Automation Studio Project creates the OPCS file 9 the OPCS file is stored in the project folder of the Automation Studio in a subfolder e g Temp Objects Config1 PLC1 AsOPCS opcs Pee Edit view Insert Open Proet Source Corbo Online Tools Window elp eee R er A ee ee WRI A AAN o AHAH Di t me me Logical Wiswa Sele G mansmaiwCyeic st Structured Text 16 Giobalvar arabe Declaration gf nain main var variable Declaratio
4. Driver object type and data type must be amended to the target driver in the DBF file in order for variables to be imported gt dBase does not support structures or arrays complex variables at import EXPORT DBF FILE To start the export 1 right click on the variable list 2 inthe drop down menu of Extended export import select the Export dBase command 3 follow the export assistant 50 ES Attention DBF files gt must correspond to the 8 3 DOS format for filenames 8 alphanumeric characters for name 3 character suffix no spaces gt must not have dots in the path name e g the path C users John Smith test dbf is invalid Valid C users JohnSmith test dbf gt must be stored close to the root directory in order to fulfill the limit for file name length including path maximum 255 characters The format of the file is described in the chapter File structure 9 Info dBase does not support structures or arrays complex variables at export File structure of the dBase export file The dBaselV file must have the following structure and contents for variable import and export 51 amp Attention dBase does not support structures or arrays complex variables when exporting DBF files must gt correspond to the 8 3 DOS format for filenames 8 alphanumeric characters for name 3 character suffix nO spaces gt Be stored close to the root directory Root DESIGN Description
5. channel of the CAN controller On the LS172 card 2 CAN controllers are available With parameter CNO the desired controller is selected For the standard CAN controller you must not enter another values as O zero Example for LS172 card CAN Bus 1 IF inacan2 CNO 0 CAN Bus 2 IF inacan2 CNO 1 Interval timeout ms Defines the maximum time which may pass between receiving and sending an INA frame between two CAN messages This parameter is used together with parameter RT of the INA2000 CPU objects in order to recognize a connection termination The parameter must not be smaller than the reaction time of the control 5 30 ms plus a cushion of at least 25 ms if there is a high interrupt strain on the PC it must be respectively higher but it should be smaller than RT If no quick recognition of the connection termination is necessary the monitoring of the interval timeout can be switched off IT 0 Example IT 80 Basic CAN ID of the INA2000 communication All stations of the INA2000 network must have the same setting Example Bl 1598 Number of maximally possible INA2000 stations highest station number All stations of the INA2000 network must have the same setting Example MDA 50 Station number of the source station own station The station number must be unique within the INA2000 network 32 BD CMODE CT MC 10000 20000 50000 100000 125000 150000
6. 0 Online import The driver also supports for online import multidimensional arrays and arrays with a start index lt gt 0 and creates variables with names that correspond to the original array index Attention Addressing of one dimensional arrays If one dimensional rays are addressed with a start index lt gt 0 a comma must be attached to the index For details see Documentation B amp R For example zenon 3 For the online import 1 select command Import variables from driver from the context menu of the driver 2 select Online Browse in the import dialog 64 3 select the connection type and the desired task 3 Online import from device Connection Task C7 Offline Import from B amp R OPC Server configuration file OPCS File Import to connection 4 confirm the dialog by clicking OK 5 select the desired variable with the help of a double click or click on button Add multi selection is possible PWI Type Abbrechen Vanable name PY name ev Hinzufugen 6 click on button OK in order to import the variable into zenon 65 7 an nfo box informs you about imported variables changed variables and errors BURPVI F G Summary for variables import from PVI driver New 0 Changed 0 Errors 0 7 5 Driver variables The driver kit implements a number of driver variables These are divided into gt Information gt Configuration gt Stat
7. 050 and IF1 CN PP3 From the PC to the first PLC and on to the peripheral processor 3 ETHERNET CONNECTION A click on in area Device type opens the dialog for the configuration of the Ethernet connection if you have selected Ethernet Ethernet properties Interlace Source address Obtain destination address automatically Enter destination address 2 Obtain an IF address automatically 7 Specify an IF address 7 Specify a host name Use Default values Cancel 21 Parameters Interface Source address Obtain destination address automatically Enter destination address Obtain an IP address automatically Specify an IP address Specify a host name Use Default values OK Cancel Description Defines the interface Mist always be TCP IP Station number of the source station own station Aitention The station number must be unique within the INA2000 network As default B amp R Automation Studio uses station number 1 Thus it can easily happen that the communication to the PLC does not work if station number 1 is used The highest possible station number is 99 for SG3 and 255 for SG4 See also Configuration file in redundancy operation on page 39 Obtain destination address automatically PVI connects to the defined device IP address or computer name must be set and determines the station address automatically Enter destination address Enter the station address of the targ
8. 250000 500000 800000 1000000 11 29 gt 1 Example SA 3 Baud rate data rate at the CAN bus in bits per second The rate can also be in Kbits per second All stations of the INA2000 network must have the same setting Example BD 250000 or BD 250 CAN communication with 29 bit identifier extended frames or with 11 bit identifier standard frames If 29 bit CAN identifiers extended frames are used 11 bit identifiers cannot be received or sent All stations of the INA2000 network must have the same setting Example CMODE 29 Cycle time in ms in this time not more than the stated number of CAN messages parameter MC can be sent Values lt 20 ms make no sense Example CT 20 Maximum number of CAN messages which are sent in the states cycle time parameter CT Example MC 15 Parameters BD CMODE CT and MC can also be set with the B amp R CAN device configuration If these parameters are not stated in the connection description recommended method the values set in the configuration are used If one of the parameters is stated in the connection description the respective configuration setting is overwritten 33 Parameters CT and MC serve as message limitation With this the number of sent CAN messages per cycle time can be limited The traffic caused by the PC on the CAN bus is reduced by this The message limitation is important if other bus members c
9. Type Field size Comment KANALNAME Char 128 Variable name The length can be limited using the MAX_LAENGE entry in project ini KANAL R C 128 The original name of a variable that is to be replaced by the new name entered under KANALNAME field column must be entered manually The length can be limited using the MAX_LAENGE entry in project ini KANAL D Log 1 The variable is deleted with the 1 entry field column has to be created by hand TAGNR C 128 Identification The length can be limited using the MAX_LAENGE entry in project ini EINHEIT C 11 Technical unit DATENART C 3 Data type e g bit byte word corresponds to the data type KANALTYP C 3 Memory area in the PLC e g marker area data area corresponds to the driver object type HWKANAL Num 3 Bus address BAUSTEIN N 3 Datablock address only for variables from the data area of the PLC ADRESSE N 5 Offset 52 BITADR ARRAYSIZE LES SCHR MIT ARIT OBJEKT SIGMIN SIGMAX ANZMIN ANZMAX ANZKOMMA UPDATERATE MEMTIEFE HDRATE HDTIEFE NACHSORT DRRATE HYST PLUS HYST MINUS PRIOR REAMATRIZE Float 16 16 16 16 16 19 19 19 16 16 16 32 For bit variables bit address For byte variables O lower 8 higher byte For string variables Length of string max 63 characters Number of variables in the array for index variables ATTENTION Only the first variable is fully available All others are only av
10. a modem by internal buffering adds 35 ms breaks in the byte stream Normally it should not be necessary to select another value We can however not rule out that you must set a higher value if using another modem type or bad line quality modems have their own transfer security with automatic retransmission Example Example for connection description CD IF modem1 MO ZyXEL MODEM Omni 288S TN 43 7748 999 PROFIBUS FDL DEVICE The following table shows all definable parameters defined in the connection description of the device object for Profibus FDL communication 37 Paramete rs F BA FF FC CB SA Values pbusfdl1 pbusfdlX 0x00000 OxFFFFF Path name Path name 1 255 0 127 Input None OxDOO00 nw_load bin nw_pb_32 br Description Profibus device Example IF pbusfdl1 Basic address of the DPR of the Profibus card If the value is stated in hexadecimal Ox must be placed in front Example BA 0xD0000 Path name of the firmware file for the Profibus card Example FF nw bin Path name of the network configuration file for the Profibus card Example FC nw_pb br Number of communication buffers of the Profibus card Example CB 4 Station number of the source station own station The station number must be unique within the INA2000 network Example SA 2 A standard firmware file and configuration file is part
11. arrays with a start index lt gt 0 gt Blockwrite 71 9 Driver commands This chapter describes standard functions that are valid for most zenon drivers Not all functions described here are available for every driver For example a driver that does not according to the data sheet support a modem connection also does not have any modem functions Driver commands are used to influence drivers using zenon start and stop for example The engineering is implemented with the help of function Driver commands To do this gt create a new function gt select Variables gt Driver commands gt The dialog for configuration is opened Driver Driver commands OK a Driver SS _ R Cancel Current status Help Driver Driver command lt no Commando gt r E Show this dialog in the Runtime Parameters Description Drivers Drop down list with all drivers which are loaded in the project Current state Fixed entry which has no function in the current version Driver commands Drop down list for the selection of the command Start driver online Driver is reinitialized and started mode Stop driver offline Driver is stopped No new data is accepted mode Note If the driver is in offline mode all variables that were 72 gt Driver in Simulation mode Driver in hardware mode Driver specific command Activate driver write set value Deactivate driver write set valu
12. of the drivers are defined gt Only the respective required drivers need to be loaded for a project Later loading of an additional driver is possible without problems 10 9 Info For new projects and for existing projects which are converted to version 6 21 or higher the following drivers are created automatically gt Internal gt MathDr32 gt SysDrv 6 2 Settings in the driver dialog You can change the following settings of the driver 6 2 1 General Configuration tim Mode E Keep update list in memory E Outputs writeable E Variable image remanent E Stopped on Standby Server Update time global Global updatetime in ms 1000 Priority mal 1000 high 500 igher 200 nest 100 11 Parameters Mode Keep update list in the memory Output can be written Description Allows to switch between hardware mode and simulation mode gt Hardware A connection to the control is established Simulation static No communication between to the control is established the values are simulated by the driver In this modus the values remain constant or the variables keep the values which were set by zenon Logic Each variable has its own memory area e g two variables of the type marker with offset 79 can have different values in the Runtime and do not influence each other Exception The simulator driver Simulation counting No communication between to th
13. possible on System 2000 External systems are not supported by the PVI The settings of the PLC Profibus card NW100 NW150 and the PC card 5A1104 00 090 can be taken from the PROFIBUS user manual MASYS2PB 0 PC REQUIREMENTS The data exchange with the PC takes place via a 32 KB DPR For this a free address area must be defined on the PC On the Profibus card this is set with two hex switches SW1 and SW2 SW1 0 SW2 D If only one Profibus card is used in the system jumper BR1 and BR2 must be let open Additional information can be found in the PROFIBUS user manual For this memory to be deallocated on the PC the memory area must be excluded in the BIOS On the IPC5000 in the BIOS under PNP PCI Configuration you must exclude either 32 KB 1 Profibus card or 64 KB for 2 Profibus cards starting at basic address DOOO PLC REQUIREMENTS NW 100 or NW150 with revision higher equal to xx 05 27 On the PLC operating system 2 00 or higher is necessary For the INA2000 communication module FBPB BR must be burnt The Profibus configuration module is already part of the operating system and can be changed with the help of suitable tools if necessary To allow an INA2000 communication via Profibus you must extended the configuration for the INA2000 Profibus communication in the SYSCONF module LS251 COMMUNICATION PC REQUIREMENTS With Windows NT 2000 YP the LS251 card is recognized by the operating system automatically after i
14. single array 16 6 2 3 Connections On this tab you carry out the settings for the connection You can create any number of connections in the driver All connections use the global settings which are defined on tab General Settings on page 14 Global settings Connections Connection file E ProgramData COPA DATA SQL 05a9e6cb 889 488d bc89 55ebfeee6668 FILES zenon custom drivers BURPVI_PVING bd Connections Edit connection a Address and name Ethemet 0 Net address Connection name Variable name prefix Seriell 1 0 Communication parameters Device type Device parameters CPU parameters Routing Cancel 17 Parameters Connection file Connections New Delete Edit Edit connection Adress and name Net address Connection name Communication parameters Device type Description Storage location for the configuration file in which the connection and the global setting is saved The file is set in tab General Settings on page 14 List of available connections Adds new entry to the list Settings are carried out in the field to the right of the list Deletes selected entry from the list Makes it possible to configure the selected entry The area to the right of the list for editing the connection is activated Attention The driver dialog cannot be closed in editing mode Only once the editing mode has been left using Save or Cancel can you close the driver dialo
15. 24 9 24 10 24 11 24 12 24 13 24 14 24 15 24 28 Description Main version number of the driver Sub version number of the driver Build version number of the driver Zenon main version number zenon sub version number zenon service pack number zenon build number TRUE if the modem connection is idle TRUE if a call is received The call is accepted Dialtone recognized Dialing active While establishing the connection Target station is busy Special status information received Connection established Dialing completed Connection in hold Connection in conference mode Connection in hold for conference Connection in hold for transfer Connection stopped Connection status unknown Current modem status Driver stopped 67 SimulRTState CONFIGURATION Name from import ReconnectinRead ApplyCom ApplyModem PhoneNumberSet ModemHwaAdrSet GlobalUpdate BGlobalUpdaten TreiberSimul TreiberProzab ModemActive UDINT Type BOOL BOOL BOOL STRING DINT UDINT BOOL BOOL BOOL BOOL 60 Offset 27 36 37 39 Fordriver stop the variable has the value TRUE and an OFF bit After the driver has started the variable has the value FALSE and no OFF bit Informs the status of Runtime for driver simulation Description If TRUE the modem is automatically reconnected for reading Apply changes in the settings of the serial interface Writing to this variable immed
16. VI communication timeout s Enable Remote Connection Computer name or IP address TCP IP port number Online import options for arrays and structure variables Map array elements on driver object Type Array as whole Map structure elements on driver object Type Array as whole Create one variable per array structure item Create one variable Description File in which the configuration of connections and the global settings are saved Click on in order to open the Windows Explorer Please note the hints in chapter Configuration file in redundant operation on page 39 Active All PVI variables are requested via event mode PVI command AT rwe HY 0 Inactive PVI variables are read cyclically with the setting of the global update time AT rw RF global update time in ms Timeout or PVI communication in seconds Pvilnitialize dwTimeout Active Connection to a remote PVI system via TCP IP is established The communication takes place exclusively via this gateway A local PVI installation is always necessary In addition to the settings at the driver you must configure the setting for the remote communication via TCP IP at the PVI itself PVI Monitor Manager locally and at the remote system Computer name or 1P address on which the remote PVI system is installed and runs TSP IP port number of the remote PVI system Note Any firewall that may be present must be configured so that the
17. able drivers Definition eines Treibers verf gbare Treiber a 35 E TCodesys Arti NG SoftSPS Treiber al Codesys Arti SoftSPS Treiber BD Codesys SoftSPS Treiber 1 ABE 1 AEG 1 Allen Bradley _ Alstom G Apex C Apeplicom Archive J Arenet B Areva 9 Asfinag Bachmann a oe i i fae m t t 4 Treiberbezeichnung Codesys Arti WG Treiber Trederinformationen Beschreibung Codesys Soft SP5 Treiber Neve Generation fir die Codesys 35 4RTI 4synchron Runtime Interface Schnittstele Der Treiber untersbOtzt die direkte Variablendbernahme aus der Codesys Enwicklungsumgebung und ersetzt den Codesys Arti Soft SPS Treiber Fir folgende SP5 Typen geeignet Codesys Soft SPSen Moeller XControl SPSen C200 und C600 sowie Elau PacDrive Steuerungen MAX 4 C200 C400 C600 PAOD Folgende Kopplungsarten werden unterst tzt Ethernet Local OE Abbrechen Hilfe gt Select the desired driver and give it a name e The driver name has to be unique i e if one and the same driver is to be used several times in one project every time a new name has to be given each time e The driver name is part of the file name Therefore it may only contain characters which are supported by the operating system Invalid characters are replaced by an underscore _ e Attention This name cannot be changed later on gt Confirm the dialog with ox In the following dialog the single configurations
18. ailable for VBA or the Recipe Group Manager Write Read Authorization 0 Not allowed to set value 1 Allowed to set value time stamp in zenon only if supported by the driver Driver specific ID number of the primitive object comprises KANALTYP and DATENART Non linearized signal minimum signal resolution Non linearized signal maximum signal resolution Technical value minimum measuring range Technical value maximum measuring range Number of decimal places for the display of the values measuring range Update rate for mathematics variables in sec one decimal possible not used for all other variables Only for compatibility reasons HD update rate for historical values in sec one decimal possible HD entry depth for historical values number HD data as postsorted values Updating to the output for zenon DDE server in s one decimal possible Positive hysteresis from measuring range Negative hysteresis from measuring range Priority of the variable Allocated reaction matrix 53 BRSATZWERT SOLLMIN SOLLMAX VOMSTANDBY RESOURCE ADJWVBA ADJZENON ADJWVBA ZWREMA MAXGRAD amp Attention 16 16 16 128 128 128 16 16 Substitute value from measuring range Minimum for set value actions from measuring range Maximum for set value actions from measuring range Get value from standby server the value of the variable is not requested from the server but from t
19. an only process a certain number of received CAN messages at a fixed baud rate or reduce the interrupt strain of other bus members in general The disadvantage of the message limitation is a slower CAN communication For the INA2000 communication each station needs 3 CAN IDs The CAN IDs are created from the basic CAN ID parameter BI the station number node number and the maximum number of stations parameter MDA K ID1 initiate request lt Basic CAN ID gt lt station number gt 1 gt ID2 initiate response lt Basic CAN ID gt lt station number gt 1 lt maximum number of stations gt 2 gt ID3 data segment lt Basic CAN ID gt lt station number gt 1 lt maximum number of stations gt 2 Example Example for connection description CD IF inacan3 CNO 1 SA 3 ETHERNET UDP DEVICE The following table shows all definable parameters defined in the connection description of the device object for Ethernet UDP communication 34 Parameter Values Input Description S F tcpip None Ethernet UDP device Statement IF tcpip LOPO 1024 11159 Port number of the source station own station 32767 If the value is stated in hexadecimal Ox must be placed in front e g LOPO 0x2b97 You must only set another port number as the default if it is not unique within the local computer Example LOPO 11159 SA 0 99 255 1 Station number of the source station own station T
20. ardware address of current telephone number Modem is disconnected if no data transfer occurs for this time in seconds s Maximum write duration for a modem connection in milliseconds ms Number of ringing tones before a call is accepted Waiting time between calls in seconds s Time in seconds s to establish a connection 69 STATISTICS Name from import MaxWriteTime MinWriteTime MaxBlkReadTime MinBlkReadTime WriteErrorCount ReadSucceedCount MaxCycleTime MinCycleTime WriteCount ReadErrorCount MaxUpdateTimeNormal MaxUpdateTimeHigher MaxUpdateTimeHigh MaxUpdateTimeHighest Type UDINT UDINT UDINT UDINT UDINT UDINT UDINT UDINT UDINT UDINT UDINT UDINT UDINT UDINT Offset 31 32 40 41 33 35 22 23 26 34 56 57 58 59 Description The longest time in milliseconds ms that is required for writing The shortest time in milliseconds ms that is required for writing Longest time in milliseconds ms that is required to read a data block Shortest time in milliseconds ms that is required to read a data block Number of writing errors Number of successful reading attempts Longest time in milliseconds ms required to read all requested data Shortest time in milliseconds ms required to read all requested data Number of writing attempts Number of reading errors Time since the last update of the p
21. ariable is of the object type Driver variable gt the driver runs in simulation mode not programmed simulation The following states are not restored at the start of the Runtime gt SELECT 8 gt WR ACK 40 gt WR SUC 41 The mode Simulation programmed at the driver start is not a criterion in order to restore the remanent variable image Setting for redundancy at drivers which allow only on communication connection For this the driver is stopped at the Standby Server and only started at the upgrade Attention If this option is active the gapless archiving is no longer guaranteed Active Sets the driver at the not process leading Server automatically in a stop like state In contrast to stopping via driver command the variable does not receive status switched off statusverarbeitung chm 24150 htm but an empty value This prevents that at the upgrade to the Server irrelevant values are created in the AML CEL and Historian Active The set Global update time inms is used for all variables in the project The priority set at the variables is not used Inactive The set priorities are used for the individual variables Here you set the polling times for the individual priorities All variables with the according priority are polled in the set time The allocation is taken 13 place for each variable separately in the settings of the variable properties The communication of the individual variables are graduated
22. ble from O to 4294967295 You can take the exact maximum area for data blocks from the manual of the PLC Offset of the variable the memory address of the variable in the PLC Adjustable from 0 to 4294967295 Number of the bit within the configured offset Possible entries 0 65535 Only available for String variables Maximum number of characters that the variable can take Address information for the B amp R PVI driver Variable type List of types see table PVI variable types Number of elements at field variables Pre allocation VN 1 For multi dimensional field variables the number of the elements of all field dimensions is quoted Example var 10 5 gt VN 50 Variable length in bytes For single variables the variable length equals the process data length For field variables the variable length defines the element length Position of the variable within the defined offset Selection of the driver Depending on the employed driver an object type is selected during the creation of the variable the type can be changed here later Data type of the variable Is selected during the creation of the variable 44 the type can be changed here later ATTENTION If you change the data type later all other properties of the variable must be checked and adjusted if necessary Attention Addressing of one dimensional arrays If one dimensional rays are addressed with a start index lt gt 0 a comma mus
23. cation gt Did you configure the net address correctly both in the driver dialog and in the address properties of the variables 75 gt Did you use the right object type for the variable gt Does the offset addressing of the variable match the one in the PLC gt Analysis with the Diagnosis Viewer Which messages are displayed 10 3 Error messages Errors are documented in the output window or in the log file of the Diagnosis Viewer main chm 12464 htm Entry Debug Level Meaning Block array item XY Array ERROR Given index Address overwrites the actual index Index exceeds actual array limits dimenstions Limit Block array item XY ERROR zenon data types do not correspond to PVI Incompatible data types Data type type size Zahl differs from actual data type size Zah1 Block item XY Offset u ERROR Given index Address overwrites the actual exceeds actual size of the array structure limits object Su Block item XY Incompatible ERROR zenon data types do not correspond to PVI data types Data type size type Typel differs from actual data type size Type Block item XY Struct element ERROR Indicated structure element address does not Index does not exist exist 76
24. dent connection to the hardware 73 10 Error analysis Should there be communication problems this chapter will assist you in finding out the error 10 1 Analysis tool All zenon modules such as Editor Runtime drivers etc write messages to a joint log file To display them correctly and clearly use the Diagnosis Viewer main chm 12464 htm program that was also installed with zenon You can find it under Start All programs zenon Tools 7 00 gt Diagviewer zenon driver log all errors in the log files The default folder for the log files is subfolder Loc in directory ProgramData example C ProgramData zenon zenon700 LOG for zenon version 7 00 SPO Log files are text files with a special structure Attention With the default settings a driver only logs error information With the Diagnosis Viewer you can enhance the diagnosis level for most of the drivers to Debug and Deep Debug With this the driver also logs all other important tasks and events In the Diagnosis Viewer you can also gt follow currently created entries live gt customize the logging settings gt change the folder in which the log files are saved 1 In Windows CE even errors are not logged per default due to performance reasons 2 The Diagnosis Viewer displays all entries in UTC coordinated world time and not in local time 3 The Diagnosis Viewer does not display all columns of a log file per default To display more columns activate proper
25. e Establish connection with modem Disconnect from modem Show this dialog in the Runtime created for this driver receive the status Switched off OFF Bit 20 Driver is set into simulation mode The values of all variables of the driver are simulated by the driver No values from the connected hardware e g PLC bus system are displayed Driver is set into hardware mode For the variables of the driver the values from the connected hardware e g PLC bus system are displayed Enter driver specific commands Opens input field in order to enter a command Write set value to a driver is allowed Write set value to a driver is prohibited Establish connection for modem drivers Opens the input fields for the hardware address and for the telephone number Terminate connection for modem drivers The dialog is shown in Runtime so that changes can be made DRIVER COMMANDS IN THE NETWORK If the computer on which the driver command function is executed is part of the zenon network additional actions are carried out A special network command is sent from the computer to the project server which then executes the desired action on its driver In addition the Server sends the same driver command to the project standby The standby also carries out the action on its driver This makes sure that Server and Standby are synchronized This only works if the Server and the Standby both have a working and indepen
26. e 39 7 Creatine varia Dl S oo vis cesses cece s ssc vse eae EEEE TEE coe saeouessesie ener 40 7 1 Creating variables in the EqitOr cccccccccsssccccsssccceensceceeseccseeccesaueceseusseeseacessauscessueeessaeseeseaecessenseesaes 41 TA X lt Te f eee eee eee ee eee ern ee eee nn Ten nr eT ere e eee ee cree E E e ere nee ree ere 44 7 3 Driver Objects ANd datatyPe ccccssssccccsscccceseccccenecccceeseeseueecesaueccceaueeeseaecesseuecesauseessueeesseuscessaeeessaaees 46 7 3 1 DUV OO ETH 46 7 3 2 Mapping of the data types sese eee 48 7 4 Creating Variables DY IMPOSTING c 0sssccoessensesscteossscccvesencsssessevesescossesnensesadeossedecsssdaceessseersestossesneseeseneee 49 7 4 1 XML import of variables from another zenon Proje ct csecccccssssecceceeseeceeceeeeceesseeeeeeesaeasees 49 7 4 2 DBF Tesa di EXON ssn csspssiewssspsnsessnpedewssdasiawssnpsatwesigensesdnpsciswsdasiawsanpeslawsaagendesinpsdswssdasiansanpbuawsaagenawet 49 7 4 3 Import PVI variables from the dryer sss sees ee eee eee 56 7 5 DAYE PVA S a E E EEE E E E E E E EE R E 66 8 Driver specific functions sss sss sss sss sss esse eena 71 J 7 esl Te CHH 72 10 Enor an O LTH 74 NOT ANJySIS LOO riirn a E T 74 10 2 a see HS rine EO A E TO 75 10 3 Error eT areca as hares ocd sacs paras tind sett mats EESTE as gue ETETEN E EAEE AA EENE AAE EEN AS 76 1 Welcome to COPA DATA help GENERAL HELP If you miss any information in this hel
27. e control is established the values are simulated by the driver In this modus the driver increments the values within a value range automatically Simulation programmed N communication is established to the PLC The values are calculated by a freely programmable simulation project The simulation project is created with the help of the zenon Logic Workbench and runs in a zenon Logic Runtime which is integrated in the driver For details see chapter Driver simulation main chm 25206 htm Variables which were requested once are still requested from the control even if they are currently not needed This has the advantage that e g multiple screen switches after the screen was opened for the first time are executed faster because the variables need not be requested again The disadvantage is a higher load for the communication to the control Active Outputs can be written Inactive Writing of outputs is prevented Note Not available for every driver 12 Variable image remanent stop at the standby Server Global Update time Priority This option saves and restores the current value time stamp and the states of a data point Fundamental requirement The variable must have a valid value and time stamp The variable image is saved in mode hardware if gt one ofthe states S MERKER_1 0 up to S MERKER8 7 REVISION 9 AUS 20 or ERSATZWERT 27 is active The variable image is always saved if gt the v
28. ength defines the element length s Global variables can only be used when they are integrated in a task Therefore global variables are always displayed at the task variables at the online import and also addressed as task variable Task name variable name 58 PVI VARIABLE TYPE VT Type i8 i16 i32 u8 u16 u32 f32 f64 Boolean string Description 8 bit integer with sign Variable length VL 1 Value area 128 127 16 bit integer with sign Variable length VL 2 Value area 32768 32767 32 bit integer with sign Variable length VL 4 Value area 2147483648 2147483647 8 bit integer unsigned Variable length VL 1 Value area 0 255 16 bit integer unsigned Variable length VL 2 Value area 0 65535 32 bit integer unsigned Variable length VL 4 Value area 0 4294967295 32 bit floating point IEEE floating Variable length VL 4 Value area 3 402823466e 38 1 175494351e 38 1 175494351e 38 3 402823466e 38 64 bit floating point IEEE floating Variable length VL 8 Value area 1 7976931348623158e 308 2 2250738585072014e 308 2 2250738585072014e 308 1 7976931348623158e 308 Bit variable flag mapped on 1 byte Variable length VL 1 TRUE value unequal 0 FALSE value equal 0 String with 1 byte character size and binary O zero ending The length of the string buffer can be defined via the variable length parameter VL The length of the string b
29. et system If Obtain an IP address automatically is activated a broadcast is carried out in the network in order to find the station Obtain an IP address automatically Carries out a broadcast in the network and tries to find the station with the station address defined at Enter destination address Define IP address Enter the IP address of the station Define host name Enter the host name of the station Resets the properties to the default settings Applies settings and closes dialog Discards settings and closes the dialog As an alternative you can enter the values in areas Device Parameter CPU Parameter and Path target system 22 Configuration ST zenon SERIAL CONNECTION A click on in area Device type opens the dialog for the configuration of the serial connection if you have selected Serial Com port COMI La Baudrate A600 Parity CT none odd even Intervall timeout ms 1 Use Default values Com port Defines interface Default COM1 Baud rate Defines baud rate Default 57600 Parity Defines parity no gt odd even Default even Interval timeout ms Defines the interval in milliseconds Default 1 Resets the properties to the default settings Discards settings and closes the dialog As an alternative you can enter the values in areas Device Parameter CPU Parameter and Path target system 23 INA2000 communication The driver supports the communicat
30. ete block from the PLC Many individual arrays are therefore read as a single array Hint If only a few elements change in an array communication in Event Mode usually provides better performance The following applies for block reading gt The complete array is always polled Event controlled communication is not possible gt The priority selected must be the same for all elements gt The PVI settings VN VL and VT are only required for writing and ignored during reading They must be set identically to PLC marker gt Settings for import are defined in the Global Settings on page 14 of the driver configuration 47 ES Attention For block reading zenon data type and PVI type must be the same This means BOOL gt Boolean works BOOL gt Boolean does not work EVENT OPERATION Attention The defined update times also have an effect on the communication with the control in Event mode This means Events via value change never come more often than defined by the update time for the variable 7 3 2 Mapping of the data types All variables in zenon are derived from IEC data types The following table compares the IEC datatypes with the datatypes of the PLC PLC zenon Data type BOOL BOOL 8 USINT USINT 9 SINT SINT 10 UINT UINT 2 INT INT 1 UDINT UDINT 4 DINT DINT 3 LREAL LREAL 6 STRING STRING 12 Data type The property Data type is the internal numerical name of the data type It is also used for
31. g Edit connection settings Address and name Net address of the connection for the allocation of variables Attention If you change the net address here you must also change the net address of all other variables of the connection Otherwise the allocation is no longer correct and variables cannot communicate in the Runtime Symbolic connection name This name is used as a prefix for the variable name Communication parameter Selection of the PVI device type from the drop down list gt Serial gt Ethernet gt Modem gt CAN gt Shared gt User defined For types Serial and Ethernet you can open a dialog for configuration by clicking on 18 Device parameters CPU parameters Routing Save Cancel OK Cancel 9 Info Direct input of the PVI device parameter If you carry out the setting for the connection with the configuration dialog for Ethernet or Serial the settings are overwritten here Ethernet default I F TCPIP SA 1 Serial default IF COM1 BD 57600 PA 2 IT 1 You can find the settings for the single communication types in chapter Device parameter INA2000 device object on page 28 Direct input of the PVI CPU parameter This is the station address of the CPU For serial connections no station address is needed Ethernet default DA 2 Serial default Direct input of a routing path for the routing via PLC stations See description for routing further down Saves the co
32. he standby server in redundant networks Resource label Free string for export and display in lists The length can be limited using the MAX_LAENGE entry in project ini Non linear value adaption U Non linear value adaption is used 1 non linear value adaption is not used Linked VBA macro for reading the variable value for non linear value adjustment Linked VBA macro for writing the variable value for non linear value adjustment Linked counter REMA Gradient overflow for counter REMA When importing the driver object type and data type must be amended to the target driver in the DBF file in order for variables to be imported LIMIT DEFINITION Limit definition for limit values 1 to 4 and status 1 to 4 54 Description Type Field size Comment AKTIV1 R 1 Limit value active per limit value available GRENZWERTI F 20 Technical value or ID number of a linked variable for a dynamic limit see VARIABLEx if VARIABLEx is 1 and here it is 1 the existing variable linkage is not overwritten SCHWWERT1 F 16 Threshold value for limit HYSTERESEI1 F 14 Hysteresis in BLINKEN1 R 1 Set blink attribute BTB1l R 1 Logging in CEL ALARM1 R 1 Alarm DRUCKENL R 1 Printer output for CEL or Alarm QUITTIERIL R 1 Must be acknowledged LOESCHE1 R 1 Must be deleted VARIABLE1 R 1 Dyn limit value linking the limit is defined by an absolute value see field GRENZWERTx FUNC L R 1 Function linking ASK FUNC1 R 1 Wi
33. he station number must be unique within the INA2000 network The highest possible station number is 99 for SG3 and 255 for SG4 Example SA 3 at Example Example for connection description CD IF tcpip SA 3 MODEM DEVICE The following table shows all definable parameters defined in the connection description of the device object for modem communication 35 Paramete rs F MO TN MR RI JT Values modem 1 modemxX Modem description Phone number O INFINITE U 3600 U 60000 Input None None None INFINITE 60 40 Description Modem device Example IF modem1 Description of the modem as in the setup dialog control panel gt modem The string must be between single quotation marks If a single quotation mark should be used within a string you must use two single quotation marks e g m 56k is stated as MO 56k Example MO MicroLink 56k Phone number The phone number which should be called in accordance with ITU T Recommendation E 123 z B 43 7748 6586 You must always enter the complete phone number including international access code the conversion to the actual phone number is carried out automatically This string must be between single quotation marks If it should be waited for a call you must enter an empty string TN Example TN 43 7748 6586 Maximum number of failed re dialing attempts Defines the numbe
34. iately results in the method SrvDrvVarApplyCom being called which currently has no further function Apply changes in the settings of the modem Writing this variable immediately calls the method SrvDrvVarApplyModem This closes the current connection and opens a new one according to the settings PhoneNumberSet and ModemHwAdrSet Telephone number that should be used Hardware address for the telephone number Update time in milliseconds ms TRUE if update time is global TRUE if driver in sin simulation mode TRUE if the variables update list should be kept in the memory TRUE if the modem is active for the driver 68 Device ComPort Baud rate Parity ByteSize StopBit Autoconnect PhoneNumber ModemHwAdr RxldleTime WriteTimeout RingCountSet ReCallldleTime ConnectTimeout STRING UINT UDINT SINT SINT SINT BOOL STRING DINT UINT UDINT UDINT UINT UDINT 8 10 11 14 13 16 17 21 18 19 20 53 54 Name of the serial interface or name of the modem Number of the serial interface Baud rate of the serial interface Parity of the serial interface Number of bits per character of the serial interface Value 0 if the driver cannot establish any serial connection Number of stop bits of the serial interface TRUE if the modem connection should be established automatically for reading writing Current telephone number H
35. in respect of importance or necessary topicality using the priorities Thus the communication load is distributed better UPDATE TIME FOR CYCLICAL DRIVER The following applies for cyclical drivers For Set value Advising of variables and Requests a read cycle is immediately triggered for all drivers regardless of the set update time This ensures that the value is immediately available for visualization after writing Update times can therefore be shorter than pre set for cyclical drivers 6 2 2 Global settings General settings for the PVI communication are set in the Global Settings tab These settings are true for all connections which are available in the driver Configuration General Global settings Configuration file BURPVI_BR PV1 driver td Communication options E Use PVI event mode PV communication timeout 30 E Remote connection E Enable remote connection Computemame or IP address TCPyIP port number 20000 Online import options for arays and structure vanabies E Map aray elements on driver object type Read in one request E Map structure elements on driver object type Read in one request Create one variable per aray structure item Create one variable representing the whole aray structure block arrays C7 Create both ensure that you use a suffix for block arrays to avoid import errors Suffix for block arrays _BA 14 Parameters Configuration file Use PVI event mode P
36. ion in accordance with the INA2000 protocol The INA2000 communication is supported by the following devices gt Serial communication gt CAN communication gt Ethernet UDP communication gt Modem communication gt Profibus FDL communication gt LS251 communication gt AROOO communication Each INA2000 communication possesses a life monitoring As soon as a connection is established it is checked each second by exchanging small data packages ping pong GENERAL PLC PREREQUISITES The INA2000 communication works limited services as of PLC operating system 1 91 To be able to use all services e g upload download of modules PLC operating system 2 10 is necessary If multimaster abilities or a TCP IP communication between PC and PLC are necessary you must use PLC operating systems 2 20 or higher For a INA2000 event handling via the PLC PLC monitors data change a PLC operating system 2 24 or higher is needed INA2000 orders are processed in the PLC in the remaining time To receive suitable response times a balance time of at least 20 is required If 20 balance time cannot be guaranteed due to application reasons longer answer times will occur and therefore the data will be refreshed slower SERIAL COMMUNICATION The serial communication can only be operated as point to point connection RS232 or RS422 24 CAN COMMUNICATION The CAN communication is used as INA2000 network with a maximum of 32 extendable t
37. istics and gt Error messages The definitions of the variables defined in the driver kit are available in the import file drvvar dbf on the CD in the directory CD Drive Predefined Variables and can be imported from there Hint Variable names must be unique in zenon If driver variables are to be imported from drvvar dbf again the variables that were imported beforehand must be renamed 7 Info Not every driver supports all driver variants For example gt Variables for modem information are only supported by modem compatible drivers gt Driver variables for the polling cycle only for pure polling drivers gt Connection related information such as ErrorMSG only for drivers that only edit one connection at aatime 66 INFORMATION Name from import MainVersion SubVersion BuildVersion RTMajor RTMinor RTSp RTBuild LineStateldle LineStateOffering LineStateAccepted LineStateDialtone LineState Dialing LineStateRingBack LineStateBusy LineStateSpeciallnfo LineStateConnected LineStateProceeding LineStateOnHold LineStateConferenced LineStateOnHoldPendConf LineStateOnHoldPendTransfer LineStateDisconnected LineStateUnknow ModemStatus TreiberStop Type UINT UINT UINT UINT UINT UINT UINT BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL BOOL UDINT BOOL Offset 0 29 49 50 51 52 24 0 24 1 24 2 24 3 24 4 24 5 24 6 24 7 24 8
38. mmunication devices All other parameters depend on the used communication device The device name is not case sensitive You must insert at least one space character between the parameter declaration In the object description the connection description must always be between quotation marks EXAMPLE FOR CONNECTION DESCRIPTION CD IF com1 BD 57600 PA 2 SERIAL DEVICE The following table shows all definable parameters defined in the connection description of the device object for serial communication 29 Paramete rs F BD RS PA Values com1 COMX 9600 19200 38400 57600 115200 1 0 232 422 485 Input None 57600 232 Description Default com1 to com4 With corresponding serial interface cards or adapters even more than com4 is possible Example IF com1 Baud rate in bits per second set protocol RS232 or RS422 RS485 is not supported by INA2000 Example RS 422 With this parameter the flow control of the line CTS clear to send and RTS request to send of the serial interface is set Possible parameter values 1 PVI does not change the current setting see properties interface device of the CTS RTS flow control 0 always switch off RTS line RTS flow control is deactivated 232 Use RTS handshake 422 Always switch on RTS line 485 Switch on RTS line in order to trigger a transfer and during a transfer The CTS flow contr
39. n PLELCPU Software Configuration st main mainant FI Ta et ijecd Hame Description T Tag Name Data Type Description r Wae L Orr VTH 2 pie i VTH D Foma ea VTH R vem Tarse amp Tepr VT_BOOL Protected laa Vaivp VIM Fead access ma Ve VTE Wris access irua Z VerSteng VT_BSTA EG B Values eof fi F ra Tn rasa F ie 36671 pop IMPORT INTO ZENON 1 selectcommand Import variables from driver from the context menu of the driver 62 2 inthe import dialog select Offline import from B amp R OPC server configuration file 3 clickon Ppcs file and select the OPVS file Variables import from B amp R PVI driver O Online import from device Connection Task Offline Import from B amp R OPC Server configuration file OPCS File Import to connection cancel 4 select the connection for which the import should be carried out 5 confirm the dialog by clicking OK 6 select the desired variable with the help of a double click or click on button Add multi selection is possible Variablenauswahl Variable name PVI name PWI Type 70 i Abbrechen Entfernen Variable name PVI name PWI Type 7 click on button OK in order to import the variable into zenon 63 8 aninfo box informs you about imported variables changed variables and errors BURPVI F T Summary for variables import from PVI driver Near 0 Changed 0 Errors
40. nfiguration of the selected connection Discards configuration Saves all changes and closes dialog Discards all changes and closes dialog Maximum number of Ethernet connections 256 19 ROUTING With the help of routing communication connections can be established via a PLC station to PLC stations of other networks This connections can run via several PLC stations The single stations are defined in the routing path SYNTAX lt Entry 1 gt lt Entry 2 gt lt Entry n gt The single path entries are separated by character Syntax for an entry SL lt Slot gt SS lt Subslot gt IF lt Interface gt lt Address gt All partial entries are separated by character Statement SL lt Slot gt and SS lt Subslot gt need not to be specified for O or 1 The statement lt Address gt is only needed for connections via the network Parameters SLAS LOLS Sos OUDS LOLS ITF lt Interface gt lt Address gt Routing on or via peripheral processors Description Slot number 0 1 15 Subslot number 1 3 Interface number 1 15 Station address 1 ff hexadecimal 20 Parameters Description CP Main processor PP lt Slot gt peripheral processor slot number O 1 15 EXAMPLES CN IF3 IF2 7 From the PC to the first PLC from there via IF3 to the next station PLC and then via IF2 to a CAN station with station number 7 CN SL6 1F1 From the PC to the first PLC then on via slot 6 e g IF
41. ngs Expanded settings for array variables You can find details in the Arrays chapter Addressing options Expanded settings for arrays and structure variables You can find details in the respective section Automatic element Expanded settings for arrays and structure variables You can find details activation in the respective section INHERITANCE FROM DATA TYPE Measuring range Signal range and Set value are always gt derived from the datatype gt Automatically adapted if the data type is changed Note for signal range If a change is made to a data type that does not support the set signal range the signal range isamended automatically For example for a change from INT to SINT the signal range is changed to 127 The amendment is also carried out ifthe signal range was not inherited from the data type In this case the measuring range must be adapted manually 43 7 2 Addressing Group Property Addressing Net address Data block Offset Bit number Alignment String length PVI Address PVI Type VT PVI Number of Elements VN PVI Length VL Driver connection Driver Driver object type Data type Description Bus address or net address of the variable This address refers to the bus address in the connection configuration of the driver This defines the PLC on which the variable resides For variables of object type Extended data block enter the datablock number here Adjusta
42. o 255 stations The individual stations are distinguished by the CAN node number PC REQUIREMENTS Please refer to the manufacturers description to find out which CAN card can by used with which Windows system PLC REQUIREMENTS To allow an INA2000 communication via CAN you must activate CAN communication in Automation Studio See Automation Studio documentation Project gt Hardware configuration gt CAN configuration ETHERNET UDP COMMUNICATION PC REQUIREMENTS The TCP IP protocol must be installed PLC REQUIREMENTS To allow an INA2000 communication via Ethernet you must activate Ethernet communication in Automation Studio See Automation Studio documentation Project gt Hardware configuration gt Ethernet configuration For SG4 i386 the following is true The configuration of the IP address and the station number INA node number takes place in the Ethernet property dialog of the Automation Studio No additional modules must be transferred to the PLC For SG3 m68k the following is true For INA2000 communication modules FBTCPIP BR and TCPIPMGR BR must be burned In addition a data object TCPIPCFG DAT with the corresponding settings must exist USE SEVERAL ETHERNET NETWORK CARDS AT THE PC How to make sure that PVI uses the correct network card in order to communicated with the PLC when two or more network cards are available in the PC 25 In order for the correct network card to be selected for
43. o connection Online import from device Connection Task VARIABLE ADDRESSING Description Import via XML file which the BuR OPC server generated Selection of the OPCS XML file Click on button in order to open the explorer for selecting the OPCS file Selection of the connection A click opens the drop down list with all available connections All selected XML variables are connected at the import via the net address with the selected connection Variables are read online from the control Selection of the connection for the online browse Selection of the task which is read out at the online browse The addressing takes place via the properties of the applied PVI variable 57 Parameters Net address PVI Name PVI Type VT PVI Number of Elements VN PVI Length VL GLOBAL VARIABLES Description Determines the connection in the driver Refers to the net address of the connection in the driver configuration dialog The name of the PLC variable The name is created from Task name variable name Variable type A compilation of all variable types see list below Number of elements at field variables Pre allocation VN 1 For multi dimensional field variables the number of the elements of all field dimensions is quoted Example var 10 5 gt VN 50 Variable length in bytes For single variables the variable length equals the process data length For field variables the variable l
44. of the PVI If no path is entered the files must be in the folder of the PVI manager Settings such as baud rate and timeout cannot be defined via the device parameters For this the configuration file must be changed with the right tools 38 a Example Example for connection description CD lF pbusfdl1 FF c pbconfig nw_load bin FC c pbconfig nw_pb_32 br SA 1 LS251 DEVICE The following table shows all definable parameters defined in the connection description of the device object for LS251 communication Parameter Values Input Description S F Is251 1 ls251 9 None LS251 device Example IF Ils251 1 a Example Example for connection description CD IF ls251_1 6 2 4 Configuration file in redundant operation The PVI communication needs a unique station address for each station PLC or computer in the INA2000 network For the zenon redundancy operation this means that the server and the standby need different configuration files In the configuration file the station address is saved for each connection This is how you can created different configuration files for the server and the standby gt Set up the driver in the Editor so that the connection is correct gt Test the communication at the server in the Runtime 39 K Activate the standby once At this the standby fetches the whole project including the configuration file from the server Deactivate the standby K Openthe Remote transpor
45. ol is deactivated for all parameters gt 0 Some USB serial adapter USB to serial interface cannot handle the CTS RTS flow control correctly To establish an RS232 connection via these adapters parameter RS 0 must be entered Setting for parity O NOPARITY 1 ODDPARITY 2 EVENPARITY 3 MARKPARITY 4 SPACEPARITY Default setting for INA2000 communication is PA 2 30 Example Example for connection description CD IF com2 BD 115200 PA 2 CAN DEVICE To communicate with a INACAN device you must first set it up as CAN device via B amp R device configuration The configuration is started via control panel and CAN device The device list of the configuration shows all already setup CAN devices The device number must also be entered in the PVI device name At this device CAN1 matches the PVI device name INACAN1 CAN2 matches INACAN2 and so on With the B amp R CAN device configuration you also set the device resources IRQ port address etc The following table shows all definable parameters defined in the connection description of the device object for CAN communication 31 Paramete rs F CNO JIT BI MDA SA Values Input inacan1 None inacanX 0 1 U 0 60000 U 0 off 0 2047 1598 5368 0911 32 255 32 1 MDA 1 Description CAN device The used device must be entered in the device list of the B amp R CAN device configuration Example IF inacan1 Number
46. onnection establishment The Windows computer establishes a dial connection to the stated phone number and transfers the protocol defined by PVI line on this connection gt Passive connection establishment The Windows computer waits for an incoming call picks up automatically and establishes a connection With this operation mode it is for example possible that a PLC itself initiates a connection establishment to a Windows computer via PVI 26 PC REQUIREMENT S The PVI modem device needs Microsoft TAPI version 2 0 This version is already installed at Windows NT 4 0 When using Windows 95 it is necessary that the default TAPI version 1 4 is replaced by a newer version The most topical Microsoft www microsoft com version available is version 2 1 To install TAPI version 2 1 under Windows 95 start program tapi2195 exe in subfolder Pvi SysSetup Modem This file is installed via PVI setup option Modem system components The installation of a modem is carried out in Windows via control panel gt modem If the dialog is opened it is possible to add new modems and to change the settings of the modem Properties The label of the modem in this dialog matches the modem name which must be stated as PVI device parameter MO The behavior during dialing can be configured under Control panel gt Phone current location dialing card etc PROFIBUS FDL COMMUNICATION Note The INA2000 communication via Profibus FDL is only
47. p chapter or have any suggestions for additions please feel free to contact us via e mail documentation copadata com mailto documentation copadata com PROJECT SUPPORT If you have concrete questions relating to your project please feel free to contact the support team via e mail support copadata com mailto support copadata com LICENSES AND MODULES If you realize that you need additional licenses or modules please feel free to contact the sales team via e mail sales copadata com mailto sales copadata com 2 BURPVI Driver for B R controls based on the PVI software from Bernecker Rainer The driver communicates with PVI For example system 2000 family 2003 2005 etc Acopos X20 system Automation PC PowerPanel etc The driver supports spontaneous operation with hysteresis and online import of multidimensional arrays and arrays with a start index lt gt 0 Coupling Serial Ethernet BURPVI Data sheet zenon Protocol PVI The BUR PVI driver replaces the BUR20032 driver The addressing of these two drivers is not compatible with each other as the BUR20032 driver addresses the PVI items via an allocation file and the BUR PVI saves the addressing directly via properties in the V DLL The driver is symbol oriented A Attention Addressing of one dimensional arrays If one dimensional rays are addressed with a start index lt gt 0 a comma must be attached to the index For details see Documentation B amp R
48. r of tries a failed connection should be tried to be reestablish If you enter INFINITE the number of retries is unlimited If you enter O there is no retry Parameter MR only has a meaning if TN is not empty Examples MR 50 MR INFINITE Time interval between retries in seconds If a retry fails this time is waited until a new try is started Parameter RI only has a meaning if TN is not empty Example Rl 120 Interval timeout ms Defines the maximum time which may pass between the 36 reception of two successive characters Example IT 100 In addition to parameter IF you must also always enter parameter MO and TN Reading from the serial interface is carried out by an operating system function A buffer is handed over to this function In this buffer the received data is stored The operating system finishes the reading if one of the following situation occurs 1 The buffer is full 2 Since receiving the last character a time interval which is larger than the timeout interval has past The correct setting of parameter IT for the timeout interval is therefore especially important If the timeout interval is to small INA2000 frames could be lost This would lead to a connection termination If the timeout interval is to large the data throughput suffers as the timeout interval passes before the PC recognizes a received frame Default value 40 ms has been chosen because of measurings which show that
49. reating variables This is how you can create variables in the zenon Editor 40 7 1 Creating variables in the Editor Variables can be created gt as simple variables gt in arrays main chm 15262 htm gt as structure variables main chm 15278 htm VARIABLE DIALOG To create a new variable regardless of which type 1 Select the New variable command in the variables node in the context menu TS Project Manager eals Ia 09 A TL 0 UR LA LT MEAL Workspace TC WAS PE PEU S SJ VARIABLE Start pr gt Vanables Status Name Unit Net address Data block Offset Bit rum Abgrim 32 Driver 2 T A Datatypes pnns Y Reaction m J pe mer SE a Allocations ES U 0 I Alarm dN C Create standard function 0 D D 0 SE Units QN h 0 0 0 0 F Screens d h Linked elements K 0 p o 0 Y MS Functions gn h p 0 Copy Cne LC n capa table dw ae 0 0 0 0 istorian aste Ctri y d 9 Recipes l dr N ae a 0 D U 0 di Time control H drS eas 3 0 0 U 0 Y Z Programming ei Imer es snaicollapse node t 4 2 S straton IEC 6113 Inter oo 0 0 0 0 Tid Production amp Facilt Interr Activate a 0 L 0 0 W Interlocking Activate B Command Deactivate Energ Managemer S 4 vw Control Export XML selected 4 Menus K Report Generator Import ANIL E Uzer administrati Extended imiportexport K SAP miel are Files i Extended filter K IEL History ot chang Fem ove gll filte P Proektsicherun
50. ring take care that the data is only transferred up to and including the zero character All characters after the zero character are undefined Driver objects and datatypes Driver objects are areas available in the PLC such as markers data blocks etc Here you can find out which driver objects are provided by the driver and which IEC data types can be assigned to the respective driver objects Tsad Driver objects The following object types are available in this driver 46 Driver object type Channel Read Supported data Description type Write types Reading in an 36 R W BOOL SINT USINT Read array polling as a whole interrogation INT UINT DINT For details see Block reading UDINT REAL STRING of arrays section CPU status 9 R BOOL SINT USINT Status of CPU INT UINT DINT UDINT REAL STRING PLC marker 8 R W UINT INT Read data points polling spontaneously Driver 35 R W BOOL SINT USINT Variables for the statistical variable INT UINT DINT analysis of communication UDINT REAL STRING Find out more in the chapter about the Driver variables on page 66 BLOCK READING OF ARRAYS If many elements of an array change very often block reading of arrays can offer better performance than communication in the event of a value change For this simple array variables and structures via driver object type Read in an interrogation can be read as block A block array is a large variable in zenon that reads a compl
51. riority group Normal in milliseconds ms Time since the last update of the priority group Higher in milliseconds ms Time since the last update of the priority group High in milliseconds ms Time since the last update of the priority group Highest in milliseconds ms 70 PokeFinish BOOL 55 Goes to 1 for a query if all current pokes were executed ERROR MESSAGES Name from import Type Offset Description ErrorlimeDW UDINT 2 Time in seconds since 1 1 1970 when the last error occurred ErrorlimeS STRING 2 Time in seconds since 1 1 1970 when the last error occurred RdErrPrimObj UDINT 42 Number of the PrimObject when the last reading error occurred RdErrStationsName STRING 43 Name of the station when the last reading error occurred RdErrBlockCount UINT 44 Number of blocks to read when the last reading error occurred RdErrHwAdresse UDINT 45 Hardware address when the last reading error occurred RdErrDatablockNo UDINT 46 Block number when the last reading error occurred RdErrMarkerNo UDINT 47 Marker number when the last reading error occurred RdErrSize UDINT 48 Block size when the last reading error occurred DrvError SINT 25 Error message as number DrvErrorMsg STRING 30 Error message as text ErrorFile STRING 15 Name of error log file 8 Driver specific functions This driver supports the following functions gt Block arrays for structures and arrays gt in online import Multi dimensional arrays and
52. t has been plugged in In the hardware wizard you can select the corresponding driver under Pvi Drivers Ls251 W2k_xx Runtime PLC prerequisites On LS251 PLC operating system V2 01 or higher must be installed AROOO COMMUNICATION Communication with AROOO takes place via an Ethernet UDP device and an Ethernet UDP station with local IP address 127 0 0 1 Connection description for device IF Tcplp Connection description for station DAIP 127 0 0 1 REPO 11160 PC REQUIREMENTS The AROOO Runtime emulation must be installed Device parameter INA2000 device object With the INA2000 device object the used communication device is defined You must enter the parameters described here in the connection configuration in field Device parameter The following communication parameters can be defined gt Serial device gt CAN device 28 Ethernet UDP device Y gt Modem device gt Profibus FDL device gt LS251 device The communication device including the necessary device parameters are defined in the connection description of the device object Within the connection description the single parameters are distinguished by parameter identifications The parameter identification always starts with character SYNTAX OF THE CONNECTION DESCRIPTION F lt device name gt lt identification1 gt lt parameter value gt lt identification2 gt lt parameter value gt Parameter IF is the same for all co
53. t be attached to the index For details see Documentation B amp R For example zenon 3 45 PVI VARIABLE TYPE VT Type i8 i16 i32 u8 u16 u32 f32 f64 Boolean string 7 3 Description 8 bit integer with sign Variable length VL 1 Value area 128 127 16 bit integer with sign Variable length VL 2 Value area 32768 32767 32 bit integer with sign Variable length VL 4 Value area 2147483648 2147483647 8 bit integer unsigned Variable length VL 1 Value area 0 255 16 bit integer unsigned Variable length VL 2 Value area 0 65535 32 bit integer unsigned Variable length VL 4 Value area 0 4294967295 32 bit floating point IEEE floating Variable length VL 4 Value area 3 402823466e 38 1 175494351e 38 1 175494351e 38 3 402823466e 38 64 bit floating point IEEE floating Variable length VL 8 Value area 1 7976931348623158e 308 2 2250738585072014e 308 2 2250738585072014e 308 1 7976931348623158e 308 Bit variable flag mapped on 1 byte Variable length VL 1 TRUE value unequal 0 FALSE value equal 0 String with 1 byte character size and binary O zero ending The length of the string buffer can be defined via the variable length parameter VL The length of the string buffer is also the maximum string length The actual string length defined by the binary zero character At reading and writing process data with variable type st
54. t configuration in the project properties gt Select the line which is responsible for the driver files line 8 and set this line inactive This setting makes sure that the changes you made at the standby are not overwritten by the file from the server If you do not make this changes the standby will fetch the topical configuration file from the server and overwrite its own local file gt Transfer this change to the server and reload it or start it again gt Start the Windows Explorer at the standby gt Goto the Runtime folder of the project and then to folder RT FILES zenon custom drivers There you can find the driver configuration file Open the file with the Windows Editor Notepad gt For each connection you can find entry DEVICE PARAME in the file In this entry the station address is saved SA x Change the station address to an unique station address Save the changes and close the file gt Create a variable in the Editor which has property Only read from standby set With the help of this variable you can check in the Runtime whether the server and the standby communicate simultaneously with the control Z Attention Changes in the driver configuration e g changed IP address in the Editor are now no longer transferred via the Remote Transport to the server and from there to the standby You must manually take care that the changes are added to the configuration files at the server and the standby 7 C
55. target port can be reached Options for the online import of array variables and structure variables Active At the import of array elements select Driver object typesRead in a request exception for arrays in structures Active At the import of array elements select Driver object typesRead in a request also for arrays in structures Active Only individual variables are created and no nodes are displayed Default setting Active For arrays and structures only block variables are 15 representing the whole created but no variables that represent individual variables of array structure block structures arrays This option has no influence on top level variables arrays Create both ensure Active For arrays and structures both individual elements and that you use a suffix blocks that represent the whole structure are represented Lor DLOCK arrays To avoid import errors Suffix for block arrays Suffix for the zenon names of variables that were created as block array variables that represent a whole structure or complete array ARRAY AS A WHOLE With this all elements of the driver object type Array as whole are mapped All elements of this object type are no longer read in the event that a value changes but polled cyclically The driver always reads in the whole array as a block A block array is a large variable in zenon that reads a complete block from the PLC Many individual arrays are therefore read as a
56. th interrogation before execution FUNC NRI N 10 ID number of the linked function if 1 is entered here the existing function is not overwritten during import A GRUPPE N 10 Alarm event group A KLASSE1 N 10 Alarm event class MIN MAX1 C 3 Minimum Maximum FARBE 1 N 10 Color as Windows coding GRENZTXT1 C 66 Limit value text A DELAY1 N 10 Time delay INVISIBLE R 1 Invisible Expressions in the column Comment refer to the expressions used in the dialog boxes for the definition of variables For more information see chapter Variable definition 55 7 4 3 Import PVI variables from the driver PVI variables can be imported offline via an OPCS XML file or via the online import of the driver At the import the variables are merged with existing ones The key for this is the variable name gt Variable designation e The variable name consists of Connection name task name variable name gt Address information e Address Task name variable name e Data type 016 e Connection allocation Net address 0 To start the import gt select Import variables from driver from the context menu of the driver Variables import from B amp R PVI driver Online import from device Connection Task 9 O Offline Import from B amp R OPC Server configuration file OPCS File Import to connection 56 Parameters Offline Import from B amp R OPC Server configuration file OPCS file Import t
57. the PLC communication the subnet mask must be set correctly The IP address of the target station PLC is linked with the subnet mask with AND thus the correct network card is found and used for the communication Example Device parameter IF tcpip SA 1 CPU parameter DA 13 DAIP 172 43 70 13 IPAdr NW1 172 43 71 12 subnet mask 255 255 255 0 IPAdr NW2 172 43 70 12 subnet mask 255 255 255 0 IPAdr PLC 172 43 70 13 With this network card two is used for the communication to the PLC If a DHCP server is configured for a network card you must know which IP addresses and subnet masks the DHCP server assigns so that you can configure the second network card correctly MODEM COMMUNICATION The Modem communication just as the serial communication is a point to point connection Modem features gt Transparency The modem is accessed only via standard Windows functions l e any modem can be used which can be installed under Windows The user must only take care about the installation of the modem He does not need any special knowledge about the modem AT commands etc gt Automatic connection reestablishment An actively established connection see below will be monitored constantly When the connection is lost e g interruption of the phone line unplugging the modem turning of the modem a new connection establishment is tried in periodic intervals The number of tries and the interval can be engineered gt Active c
58. the extended DBF import export of the variables 48 7 4 Creating variables by importing Variables can also be imported by importing them The XML and DBF import is available for every driver 7 4 1 XML import of variables from another zenon project For the import export of variables the following is true gt The import export must not be started from the global project gt The start takes place via e Context menu of variables or data typ in the project tree e or context menu of a variable or a data type e or symbol in the symbol bar variables Z Attention When importing overwriting an existing data type all variables based on the existing data type are changed Example There is a data type XYZ derived from the type I NTwith variables based on this data type The XML file to be imported also contains a data type with the name XYZ but derived from type STRING If this data type is imported the existing data type is overwritten and the type of all variables based on it is adjusted l e the variables are now no longer INT variables but STRING variables 7 4 2 DBF Import Export Data can be exported to and imported from dBase 49 IMPORT DBF FILE To start the import 1 right click on the variable list 2 inthe drop down menu of Extended export import select the Import dBase command 3 follow the import assistant The format of the file is described in the chapter File structure 9 Info Note
59. ty Add all columns with entry in the context menu of the column header 4 Ifyou only use Error logging the problem description is in column Error text For other diagnosis level the description is in column General text 74 5 Eor Communication problems many drivers also log error numbers which the PLC assigns to them They are displayed in Error text and or Error code and or Driver error parameter 1 and 2 Hints on the meaning of error codes can be found in the driver documentation and the protocol PLC description 6 At the end of your test set back the diagnosis level from Debug Or Deep Debug At Debug and Deep Debug there are a great deal of data for logging which are saved to the hard drive and which can influence your system performance They are still logged even after you close the Diagnosis Viewer 9 Info You can find further information on the Diagnosis Viewer in the Diagnose Viewer main chm 12464 htm chapter 10 2 Check list Checks after communication errors gt Is the PLC connected to the power supply gt Are the participants available in the TCP IP network gt Can the PLC be reached via the Ping command gt Can the PLC be reached at the respective port via TELNET gt Are the PLC and the PC connected with the right cable gt Did you select the right com port gt Do the communication parameters match Baud rate parity start stop bits gt Is the com port blocked by another appli
60. uffer is also the maximum string length The actual string length defined by the binary zero character At reading and writing process data with variable type string take care that the data is only transferred up to and including the zero character All characters after the zero character are undefined 59 Offline import PREPARATIONS IN THE AUTOMATION STUDIO 1 got to the desired file File Edit View Insert Open Project Source Control Online Tools Window Help ASR EG e oo Xt SMe SHH Ke Ata Logical View GG LRE A r Object Name Description PROGRAM _CYCLIC X cyclic program T Global typ E Global var Output_01 NOT Outpu Bh A i Output_02 NOT Outpu G Libraries TmpIn01l NOT Tmpinol TmpIn02 Input_02 VarInt VarInt 1 IF VarInt gt 10000 THE VariInt 0 END_IF VarDint VarDint 1 IF VarDint gt 1000000 VarDint 0 2 select Add Object in the context menu 3 in folder opc select template New OPC Tag Declaration le New OPC Tag Declaration Anew OPC tag file L Net gt Genet Hee Creating variables 60 4 assign a file name with extension opct 1 New OPC Tag Declaration Anew OPC tag file Filename NewOocTag opct Description Anew OPC tag file 5 open the OPC tag list in Automation Studio File Edit View Insert Open Project Source Control Online Tools Window Help SAP ded 2A v 8 El 6 CESE 9 99 K Logical View a mpe
61. zenon driver manual BURPVI COPADATA 2012 Ing Punzenberger COPA DATA GmbH All rights reserved Distribution and or reproduction of this document or parts thereof in any form are permitted solely with the written permission of the company COPA DATA The technical data contained herein has been provided solely for informational purposes and is not legally binding Subject to change technical or otherwise Contents 1 Welcome to COPA DATA help cscscsccscscessccscsceccccscsccscecscscsccececscsccscecscssescecscscesescececesessecscesess 5 De BURP o E E E umes wapees ious saueses see 5 3 BURP VI Daca SINC H 6 A Driver TUNSCOUY occa oie oe acs ove site E EE essemecsaceteees 8 Ba TROCUIPOIMOIIUS orna E E Oansacoseseeseacicnaees 8 BM gt areata vette te se ata actrees cease ee HT 8 PG E E song one sdaay scmeaegenne cotee ant anayeeueteraseaieets sueancneoadsahasoslelemsenesceanseuaetenetsacsansntoarsntees 9 6 Configuration aise ce cscs sarinctsee farsa nto saat nnsce weed iraou norinciu neranda biar eer ce saveks aiios tess ai naas esaea 9 61l Crea mea drive gene nee ee eee ee ee eee 9 6 2 Settings in the driver dialog ices csssstsacesacnnncteariunsaeaesmetapeansaitsciuniansdbenesaasicwedsadtancetsanencdassdnsaueassansdeedbsatssanutea 11 6 2 1 EN ea T T EE EE A E EA E panes 11 6 2 2 Eloo Ea e A A A T 14 6 2 3 CONNECTIONS aaa A E T E AE E AAEE E AETAT E ES 17 6 2 4 Configuration file in redundant operation sss ee eee ee eee ee

Download Pdf Manuals

image

Related Search

Related Contents

Coastal Shower Doors L31IL24.69N-C Installation Guide  "取扱説明書"  Téléchargez le pdf  MALATHION 85 E  Manual de Microsoft Word 2007  CSCQS9CC23  APENDICE  User Guide  

Copyright © All rights reserved.
Failed to retrieve file