Beckhoff TF6120 Скачать руководство пользователя страница 40

Configuration

TF6120

40

Version: 1.1

Enter a name for that ADS device in field 

"Name"

. The name has to be OPC conform. Special characters

are not allowed. The device-name will be part of the ItemID later. Sample: TwinCAT-PLC was defined with a
variable "Temp". Choosing the devicename as "IO1" the opc-server present the variable as "IO1.Temp". With
click on "OK" we get the new dialog for further settings of device :

The following table gives an overview about all possible settings:

Содержание TF6120

Страница 1: ...Manual EN TF6120 TwinCAT 3 OPC DA 2022 02 28 Version 1 1 ...

Страница 2: ......

Страница 3: ...A on Windows XP 17 3 5 Setup OPC XML DA on Windows 7 21 4 Configuration 27 4 1 OPC DA Server 27 4 1 1 OPC DA Server 27 4 1 2 General 27 4 1 3 Data Access 33 4 1 4 Conversion 41 4 1 5 Simulation 44 4 1 6 Item Properties 47 4 1 7 Data exchange via network 48 4 2 OPC XML DA Server 51 4 2 1 OPC XML DA 51 4 2 2 Status information 52 5 Appendix 53 5 1 OPC Compliance Certificate 53 5 2 DCOM 54 5 2 1 Over...

Страница 4: ...Table of contents TF6120 4 Version 1 1 ...

Страница 5: ...ave already been supplied may be made on the basis of the data diagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT TwinCAT BSD TC BSD EtherCAT EtherCAT G EtherCAT G10 EtherCAT P Safety over EtherCAT TwinSAFE XFC XTS and XPlanar are registered trademarks of and licensed by Beckhoff Automation GmbH Other designations used in this publication may be trademarks whose use by thi...

Страница 6: ...e familiar with the applicable national standards Description of symbols In this documentation the following symbols are used with an accompanying safety instruction or note The safety instructions must be read carefully and followed without fail DANGER Serious risk of injury Failure to follow the safety instructions associated with this symbol directly endangers the life and health of persons WAR...

Страница 7: ...s The latter should be connected to the corporate network or the Internet only if appropriate protective measures have been set up In addition the recommendations from Beckhoff regarding appropriate protective measures should be observed Further information regarding information security and industrial security can be found in our https www beckhoff com secguide Beckhoff products and solutions und...

Страница 8: ...pecification 1 0a and 2 0 Free choice of TwinCAT devices ADS devices PLC IO NC CAM Access via TwinCAT PLC TwinCAT I O or bus controller to all the fieldbusses supported by TwinCAT Lightbus Profibus DP Interbus S CANopen DeviceNet Access to TwinCAT variables by address by name by generic ADS IndexGroup and IndexOffset Optimal access to data from the OPC server on TwinCAT variables Simulation mode s...

Страница 9: ...ms Windows XP Pro SP3 Windows Server 2008 R2 Windows Server 2012 TwinCAT TwinCAT 3 XAE Build 3100 or higher TwinCAT 3 XAR Build 3100 or higher OPC XML DA Server Operating systems Windows XP Pro SP3 TwinCAT TwinCAT 3 XAE Build 3100 or higher TwinCAT 3 XAR Build 3100 or higher Other Internet Information Services 5 1 6 0 7 0 and 7 5 3 2 Installation The following section describes how to install the ...

Страница 10: ...Installation TF6120 10 Version 1 1 2 Accept the end user licensing agreement and click Next 3 Enter your user data ...

Страница 11: ...inCAT 3 Function select Complete as installation type If you want to install the TwinCAT 3 Function components separately select Custom 5 Select Next then Install to start the installation ð A dialog box informs you that the TwinCAT system must be stopped to proceed with the installation ...

Страница 12: ...be activated via the TwinCAT 3 development environment XAE The licensing of a TwinCAT 3 Function is described below The description is divided into the following sections Licensing a 7 day test version 12 Licensing a full version 14 Further information on TwinCAT 3 licensing can be found in the Licensing documentation in the Beckhoff Information System TwinCAT 3 Licensing Licensing a 7 day test ve...

Страница 13: ...ated on the target system the corresponding TwinCAT 3 licenses are automatically copied to this system 4 In the Solution Explorer double click License in the SYSTEM subtree ð The TwinCAT 3 license manager opens 5 Open the Manage Licenses tab In the Add License column check the check box for the license you want to add to your project e g TF6420 TC3 Database Server 6 Open the Order Information Runt...

Страница 14: ...ay trial version is enabled Licensing a full version 1 Start the TwinCAT 3 development environment XAE 2 Open an existing TwinCAT 3 project or create a new project 3 If you want to activate the license for a remote device set the desired target system To do this select the target system from the Choose Target System drop down list in the toolbar ð The licensing settings always refer to the selecte...

Страница 15: ...nal 6 Open the Order Information tab ð In the tabular overview of licenses the previously selected license is displayed with the status missing A TwinCAT 3 license is generally linked to two indices describing the platform to be licensed System ID Uniquely identifies the device Platform level Defines the performance of the device The corresponding System Id and Platform fields cannot be changed ...

Страница 16: ...cense Request File with all the necessary information Click No if your computer does not have an email program installed on it or is not connected to the internet Copy the License Request File onto a data storage device e g a USB stick and send the file from a computer with internet access and an email program to the Beckhoff license server tclicense beckhoff com by email 10 Send the License Reque...

Страница 17: ...e TwinCAT restart the license file is automatically copied to the directory TwinCAT 3 1 Target License on the respective target system 3 4 Setup OPC XML DA on Windows XP All necessary files for OPC XML DA will be automatically installed by the setup routine This chapter describes the required IIS Internet Information Services configuration for OPC XML DA on Windows XP Please note The configuration...

Страница 18: ...Installation TF6120 18 Version 1 1 Everybody is welcome so just click next Please enter the alias TcOpcXmlDa and click Next ...

Страница 19: ...1 With Browse you have to specify the folder which contains the TwinCAT OPC Xml DA Server By default the folder should be like C TwinCAT OPC Server XMLDA Select Next to proceed Check options Read Run scripts and Execute and click Next ...

Страница 20: ...he configuration The URL of the OPC XML DA server on the PC system can be checked locally or from a remote PC In both cases open the Internet explorer and enter the URL of the OPC Server XML DA on PC system like http ip adress or name of PC device tcopcxmlda tcopcxmlda dll Sample http 192 16 17 5 tcopcxmlda tcopcxmlda dll ...

Страница 21: ...files for OPC XML DA will be automatically installed by the setup routine This chapter describes the required IIS Internet Information Services configuration for OPC XML DA on Windows 7 Please note The configuration may be different in other Windows Operating Systems for example Windows XP 17 Step 1 Installing IIS on Windows 7 By default IIS is not part of the Windows 7 installation Therefore you ...

Страница 22: ...Setup Open Internet Information Service IIS Manager which can be found under Control Panel Administrative Tools Right click on Default Web Site Select Add Virtual Directory Please enter the alias TcOpcXmlDa and the physical path to your TwinCAT OPC XML DA Server installation By default this folder should be under C TwinCAT OPC Server4 Server XMLDA Click on OK ...

Страница 23: ... on Handler Mappings Click on Edit Feature Permissions and select the Execute permission Click on OK As a next step you need to create an ISAPI allowance Please select the root node in IIS Manager named after your computername and then double click ISAPI and CGI Restrictions Click on Add to create a new enabled extensions In the ISAPI or CGI path textbox please specify the path to TcOpcXmlDa dll w...

Страница 24: ...S In this case please perform the following steps Open Internet Information Service IIS Manager which can be found under Control Panel Administrative Tools Click on Application Pools Select the DefaultAppPool and click on Advanced Settings from the Actions panel Set the entry Enable 32 bit Applications to True then click on OK to commit the changes ...

Страница 25: ...ser e g Internet explorer and enter the URL of the OPC XML DA Server for example http ip adress or name of PC device tcopcxmlda tcopcxmlda dll Examples http 192 16 17 5 tcopcxmlda tcopcxmlda dll http localhost tcopcxmlda tcopcxmlda dll The OPC XML DA Server will reply with a status page containing the product version If you see this page the installation and configuration of OPC XML DA has been su...

Страница 26: ... 1 1 Please note In case of problems like receiving no HTML status data please check if your system uses a proxy server After deactivating the proxy and reloading the URL the OPC XML DA Server should reply with the status info above ...

Страница 27: ... documentation which describe general configuration parameters of the OPC Server Feature Description Optimizations 27 Describes some basic concepts about how to optimize the OPC Server e g by reducing its namespace OPC Server as EXE oder Inproc DLL 28 Describes different execution modes of the OPC Server Automatic Cache Update 29 Describes the feature of an automatic cache update after each write ...

Страница 28: ... has to be crossed via DCOM Arguments for working with DLL More than one OPC Client will communicate with the OPC Server Instead one single OPC Server shares his CPU time to multiple opc clients the OPC Server should work as a DLL As a result each OPC Client will have his personal instance of the OPC Server with each opc server having a separate ADS communication channel into the ADS device like t...

Страница 29: ...un properly Aktivation of the TwinCAT OPC Servers as Out of process Server EXE Select Server Mode Out of Process EXE and press Apply Result The TwinCAT OPC server now operates as an EXE program and each OPC client works with the single shared instance of the OPC server In this version the TwinCAT OPC server is visible as an independent process in the task manager If a number of OPC clients are wor...

Страница 30: ...d is not updated until the next scan cycle As this behaviour causes problems in some applications the Beckhoff OPC Server provides an option to change this behaviour This option is turned off by default so that the Beckhoff OPC Server operates correctly according to OPC Specification To change the cache update behaviour start the TwinCAT OPC Configurator Open the OPC Server Settings tab and check ...

Страница 31: ...ice AdsTimeSuspend Optional ADS suspend time in ms for this ADS device if the ads communication fails AutoCfg Optional 0 do not include symbol file defined under AutoCfgSymFile 1 Include sym file of TwinCAT PLC defined under AutoCfgSymFile 2 Include sym file of TwinCAT BCxxxx project defined under AutoCfgSymFile 5 Upload symbolic from ADS device 7 Include tpy file of TwinCAT28 project defined unde...

Страница 32: ...sitionRamp Sine Square Triangle Step periodical signals Their time behavior is influenced by Period and Phase parameters Period specifies the signal frequency while Phase moves the signal origin on the time axisSquare and Triangle signal types have one more parameter Ratio Ratio defines Triangle signal steepness or Square signal H L proportions NumSteps parameter of the Step signal defines a numbe...

Страница 33: ...sents a standardised interface for the management of process data The process data available in the TwinCAT system must therefore be known to the OPC server or must be made known to it at the time of configuration To represent this hierarchical process space clearly the Devices are subdivided into subsidiary items The OPC client can browse through this representation and use it for the server s ac...

Страница 34: ...essible via OPC Step 1 Configuration of variables in the PLC Step 2 Configuration of the OPC Server this is a one time step When using AutoCfg 7 step 1 will become obsolete and you can directly move on to step 2 Step 1 Configuration of variables in the PLC To make a PLC variable accessible via OPC this variable needs to be explicitely configured This happens via special PLC comments directly behin...

Страница 35: ... OPC These are therefore OPC enabled in all instances After the first PLC project has been compiled the project directory contains a TPY File which needs to be configured in the OPC Server see Step 2 This TPY File includes information about all PLC variables and whether a variable has been configured for OPC or not Please note When making structural changes to the PLC program this TPY File may als...

Страница 36: ...conform no special characters allowed Sample The TwinCAT PLC runtime system 1 has a PLC variable temperatur Definition of devicename with Plc1 will publish the PLC variable via OPC as Plc1tTemperatur later for OPC Clients The new device has been added and you can now configure it according to your system environment ...

Страница 37: ... port numer of the device e g 851 for the first PLC runtime AdsNetId optional Address of the ADS device By default this is 0 0 0 0 0 0 for local system AdsTimeout optional Timeout for ADS connection to the device measured in ms If the device is not reachable within that timeframe the OPC Server returns BAD_QUALITY to the OPC Client AdsTimeSuspend optional Suspend time for the ADS device measured i...

Страница 38: ... possibility to read write process values from ADS devices and therefore also from the TwinCAT I O The following steps need to be taken to make an I O task available via OPC Step 1 Configuration of I O Task Step 2 Configuration of the OPC Server one time step Step 1 Configuration of I O Task To make an I O Task available via OPC please open the TwinCAT Solution and navigate to SYSTEM Tasks TaskNam...

Страница 39: ...he OPC Server one time step In the second step you need to configure the OPC Server This is a one time configuration Start TwinCAT OPC Configurator Start All Programs Beckhoff TwinCat3 Functions TF6120 OPC DA In the left navigation tree please select I O Devices with a right click the menu item New ...

Страница 40: ...s are not allowed The device name will be part of the ItemID later Sample TwinCAT PLC was defined with a variable Temp Choosing the devicename as IO1 the opc server present the variable as IO1 Temp With click on OK we get the new dialog for further settings of device The following table gives an overview about all possible settings ...

Страница 41: ...s If the ADS connection breaks the OPC Server waits this time before sending the next ADS request to the runtime Disable optional Deactivates the device Save the configuration via File Save As After the configuration has been saved you will be asked if this configuration should be set as the startup configuration The configuration will be automatically activated on next restart of the OPC Server 4...

Страница 42: ...tatyp in the PLC The usage of OPC Conversions needs the configuration of a TPY File AutoCfgSymFile for the corresponding device and AutoCfg 8 Step 1 Configuration of OPC Conversions in OPC Server In the first step you need to configure TwinCAT OPC Server for conversions This is a one time configuration and does not need to be repeated when changes to the PLC project occur Start TwinCAT OPC Configu...

Страница 43: ...m and minimum value If this value is higher lower it will be clamped High EU Low EU optional High IR optional Low IR optional H Clamping optional L Clamping optional Disable optional Deactivates the conversion setting Save the configuration via File Save As After the configuration has been saved you will be asked if this configuration should be set as the startup configuration The configuration wi...

Страница 44: ...instead simulated values are send to OPC client Different simulation templates like sinus ramp random etc are available to be configured with detailed behaviour amplitude start stop values The OPC Server offers simulation of all process values simulation of some specific process values Please note It is not possible to combine both simulated and real process values The complete sample contains bot...

Страница 45: ...e New For Name please enter a name for this simulation template This name has to be OPC conform no special characters allowed With OK you get into the dialog to configure in details your new Simulations Signal The following table gives an overview about all possible configuration settings ...

Страница 46: ... startup configuration The configuration will be automatically activated on next restart of the OPC Server Step 2 Configuration of PLC Variables for OPC Simulation With previous steps we defined a simulation template with detailed information about simulation handling Now we define which PLC variable should be handled with simulation Similar to the Data Access feature this configuration also occur...

Страница 47: ...erver Sample lTemperatur DWORD OPC 1 Make variable visible for OPC Server OPC_PROP 0005 3 OPC_PROP_RIGHTS here Read AND Write Access OPC_PROP 0100 Grad F OPC_PROP_UNIT OPC_PROP 0101 Demovariable OPC_PROP_DESC OPC_PROP 0205 We are the champions OPC_PROP_SND OPC_PROP 0206 info html OPC_PROP_HTML OPC_PROP 0207 service avi OPC_PROP_AVI Each time compiling the PLC project the PLC Control will create th...

Страница 48: ... OPC_PROP 0200 OPC_PROP_DSP OPC_PROP 0201 OPC_PROP_FGC OPC_PROP 0202 OPC_PROP_BGC OPC_PROP 0203 OPC_PROP_BLINK OPC_PROP 0204 OPC_PROP_BMP OPC_PROP 0205 OPC_PROP_SND OPC_PROP 0206 OPC_PROP_HTML OPC_PROP 0207 OPC_PROP_AVI OPC_PROP 6007 BECKHOFF Defined Simulation ID OPC_PROP 6008 BECKHOFF Defined Alarm enabled OPC_PROP 6009 BECKHOFF Defined Alarm ID OPC_PROP 6010 BECKHOFF Defined Conversion enabled ...

Страница 49: ... but only passes the changes in the process on to the OPC client 4 1 7 2 Network via TwinCAT ADS The TwinCAT OPC server performs the communication with the TwinCAT components PLC run time systems bus terminal controllers etc via TwinCAT ADS Since these services are also available in the network the TwinCAT OPC server can also communicate with TwinCAT components that exist in the network You will f...

Страница 50: ...u need to allow data exchange between an OPC client and the TwinCAT OPC server over a network via DCOM this DCOM access type must be configured beforehand The following steps describe the necessary settings for the PC on which the TwinCAT OPC server is installed Prerequisites It is assumed that all the PCs which are to participate via DCOM in an OPC client server connection are already set up for ...

Страница 51: ...L DA provides a remote OPC communication via Web Service therfore you do not need to configure any DCOM settings By default the OPC XML DA Server is being pre configured and you only need to specify the TPY File of the corresponding PLC project The configuration file is located in the directory wwwroot TcOpcXmlDa TcOpcXmlSvrCfg xml and contains a list of all ADS devices which should be made access...

Страница 52: ...tion describes the interfaces which an OPC XML DA Server should provide However there are some additional functionalities which will help you on your daily work with the OPC XML DA Server for example Reading status information Reading protocol information Reload configuration Show active configuration Restart OPC XML DA Server Stop OPC XML DA Server These functionalities can be called via the URL ...

Страница 53: ...rver should be done by competent personal only besides the results could be forged Example In one test case the OPC compliance tool writes variables in the OPC Server reads them afterwards back and compares the values If these test variables would be PLC variables which changes cyclically in the PLC these test case would be failed Compliance certification These and further current OPC certificates...

Страница 54: ...nication through DCOM specially OPC users an idea on possible settings in an industrial environment This Help File just showes possible settings of DCOM security that will make the system running If the manufacturers or vendors of OPC products provide their own manuals this manuals should be used instead of this Help File ...

Страница 55: ... runs local on the same machine but in it s own process REMOTE Server The COM Server runs in it s own memory area the Server is a EXE and runs remotely on a different machine and of course in it s own process as the Client The communication between Client and Server process followes the rules of COM Whenever the Client is located on one machine and the Server on an other DCOM Distributed COM comes...

Страница 56: ...th START Control Panel Administrative Tools Local Security Policy Local Policies Security Options Find the following entry Network access Sharing and security model for local accounts and change this setting to Classic users authenicate as themselves Please note in a mixed configuration e g Client installed on XP and Server installed on Windows 2k the XP machine automatically changes to the classi...

Страница 57: ...ause new users will only be added to the domain Domain The Client and Server Machine should be member of the same Domain Different domains must should be trust eachother Users Accounts Authentification is performed on the domain machine the User Accounts Name and PWD or groups are used in the DCOM settings of the Client and the Server Machine Operation System The Operation System on the Client and...

Страница 58: ...l information on all users that should be able to remote access this node local identification The administrative effort will increase imensely when adding new users Workgroup The Client and Server Machine should be member of the same Workgroup Users Accounts As authentification is performed locally on every single machine the User Accounts Name and PWD should be identical on the Client and the Se...

Страница 59: ...twork configuration Depending on the client s operating system some additional network settings need to be taken Basically the same settings must be performed However some operating system specific settings must be done to get the DCOM security runing Please refer to our Article about Operating Systems 56 for more information Step 2 DCOM configuration To configure DCOM for a remote OPC communicati...

Страница 60: ...Appendix TF6120 60 Version 1 1 Fig 1 Dcom_general On the Options tab no changes have to be made The default settings will be correct for OPC Client side security settings ...

Страница 61: ...ction oriented TCP IP protocol should be moved to the top position This setting forces the use of TCP IP for DCOM connections All other protocols can be removed if the are not used with DCOM The timeout will be reduced if DCOM tries to connect only on TCP IP connections ...

Страница 62: ... Anonymous If the client machine runs in a Domain the level remains to default settings Authentification Level Connect Impersonation Level Identify If the client machine runs in a mixed configuration e g the Client machine in a Workgroup and the Server machine in a Domain the level should be changed The machine being part of the Domain must be able to identify the security context without asking t...

Страница 63: ...se None and Delegate On the Default COM Security Tab the Access and Launch permission for all COM Objects can be changed As the OPC Client is nothing else than a COM Client the security setings should be changed to grant access to the Client application Specially when the OPC Server sends callbacks e g OnDataChange to the OPC Client the server s process must have access permission on the Client Th...

Страница 64: ...Appendix TF6120 64 Version 1 1 On the MSDTC Tab no changes have to be done The default settings will be correct for OPC Client side security settings ...

Страница 65: ...note The following settings have been tested on Windows 2000 Windows XP and Windows 7 computers Step 1 General network configuration Depending on the server s operating system some additional network settings need to be taken Basically the same settings must be performed However some operating system specific settings must be done to get the DCOM security running Please refer to our Article about ...

Страница 66: ... its Clones right click it and select Properties to change the DCOM security for this specific DCOM Server only On the General tab no changes have to be made The default settings will be correct for OPC Server s security settings The Authentication Level set to Default will overtake the settings from the Default Properties Tab valid for all COM Objects on this machine Connect by default ...

Страница 67: ...Appendix TF6120 67 Version 1 1 On the Location tab no changes have to be made The default settings will be correct for the OPC Server s security settings ...

Страница 68: ...Permission should be granted for Administrators Interactive User System Network OPC Client s Security Context The Server Specific Launch Permission should be granted for Administrators Interactive User System Network OPC Client s Security Context The Server Specific Configuration Permission should not be changed on the Server machine On the Endpoints tab the default settings should remain In the D...

Страница 69: ...election The interactive user default The interactive user depends on the person that is logged on thus it can be different each time and only exists if somebody is logged on The launching user should NEVER be used The launching user will have the security context of the Client application the OPC Client launches connects the OPC Server When having different Clients in the network several instance...

Страница 70: ...t depending on the uuser actually logged in and double clicked the Client The access permission is described as the right to access communicate to an application As an OPC Client will call functions on the OPC Server Object the Security Context of the Client must be known by the Server When sending callbacks to the Client asynchronous functions or DataChange the Client must grant access permission...

Страница 71: ...n 1 1 For selecting users click the Add button Selecting Users 72 5 2 5 3 Launch Permission For granting launch permission starting the application to a certain user the Edit button must be clicked opening the following dialog ...

Страница 72: ...g of all user names The location states the machine name where the user account is stored this can be the local workstation or the central domain controller machine The edit box below the names can be typed in and verified afterwards by pressing the Check Names button All users known by the machine selected in Location can be displayed by pressing the Advanced button ...

Страница 73: ...Appendix TF6120 73 Version 1 1 The list of all known users will be displayed after clicking the Find Now button ...

Страница 74: ...Appendix TF6120 74 Version 1 1 ...

Страница 75: ......

Страница 76: ...Beckhoff Automation GmbH Co KG Hülshorstweg 20 33415 Verl Germany Phone 49 5246 9630 info beckhoff com www beckhoff com ...

Отзывы: