All the components are supplied in particular hardware and software configurations appropriate for the application. Modifications to hardware or software configurations other than those described in the documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG. Personnel qualification This description is only intended for trained specialists in control, automation and drive engineering who are familiar with the applicable national standards.
Foreword Notes on information security The products of Beckhoff Automation GmbH & Co. KG (Beckhoff), insofar as they can be accessed online, are equipped with security functions that support the secure operation of plants, systems, machines and networks. Despite the security functions, the creation, implementation and constant updating of a holistic security concept for the operation are necessary to protect the respective plant, system, machine and networks against cyber threats.
OPC stands for "Openess Productivity and Collaboration" and describes an initiative for standardisation of data exchange in automation. Beckhoff is an active member of the OPC Foundation. (More information about OPC may be obtained under www.opcfoundation.org ) The OPC standard specifies the communication of industrial process data between sensors, instruments, controllers and software systems.
System requirements The following chapter lists the system requirements. The TS6120 supplement or the TF6120 function is no longer being further developed and is there- fore not released for newer operating systems. The so-called UA Gateway in the product TS6100/ TF6100 OPC UA is available to you as a free OPC DA interface: https://infosys.beckhoff.com/content/1033/tf6100_tc3_opcua/9007200762490123.html...
Page 10
Installation 2. Accept the end user licensing agreement and click Next. 3. Enter your user data. Version: 1.1 TF6120...
Page 11
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. TF6120 Version: 1.1...
• 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 version 1. Start the TwinCAT 3 development environment (XAE).
Page 13
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 (Runtime) tab. ð In the tabular overview of licenses, the previously selected license is displayed with the status “missing”. TF6120 Version: 1.1...
Page 14
ð The licensing settings always refer to the selected target system. When the project is activated 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. Version: 1.1 TF6120...
Page 15
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. TF6120 Version: 1.1...
Page 16
9. Select a location and click Save. ð A prompt appears asking whether you want to send the License Request File to the Beckhoff license server for verification: • Click Yes to send the License Request File. A prerequisite is that an email program is installed on your computer and that your computer is connected to the internet.
Please note: The configuration may be different in other Windows Operating Systems, for example Windows 7 [} 21]. Step 1: Create "Virtual Directory" in IIS (Internet Information Service) • Open "Internet Information Services" (under "Control Panel/Administrative Tools/"). • Right click on "Default Web Site" • Select "New" and "Virtual Directory..." TF6120 Version: 1.1...
Page 18
Installation • Everybody is welcome, so just click next. • Please enter the alias "TcOpcXmlDa" and click "Next" Version: 1.1 TF6120...
Page 19
• 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". TF6120 Version: 1.1...
Page 20
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 Version: 1.1 TF6120...
By default, IIS is not part of the Windows 7 installation. Therefore you need to add this functionality manually. For more information see http://technet.microsoft.com/de-de/library/cc725762%28v=ws.10%29.aspx. Please note: When installing IIS, the following extensions need to be activated: • ISAPI Extensions • ISAPI Filters TF6120 Version: 1.1...
Page 22
• 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". Version: 1.1 TF6120...
Page 23
• Click on "Add" to create a new enabled extensions. In the "ISAPI or CGI path" textbox, please specify the path to TcOpcXmlDa.dll, which normally is "C:\TwinCAT\OPC'Server4\Server XMLDA\TcOpcXmlDa.dll". Also select the checkbox "Allow extension path to execute". TF6120 Version: 1.1...
Page 24
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 Version: 1.1 TF6120...
Page 25
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 successful. TF6120 Version: 1.1...
Page 26
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. Version: 1.1 TF6120...
Configuration OPC DA Server 4.1.1 OPC DA Server The TwinCAT 3 Function TF6120 provides an OPC-Server, which provides different features. The following table gives an overview about all features and links to the corresponding chapter in this documentation. Feature Description Provides documentation about general configuration General [} 27]...
Page 28
"in-process" server (with DLL as the file extension). When connecting to the server, the OPC-Client uses the ProgID to identify the OPC-Server. In case of the TwinCAT OPC-Server, the ProgID is "BECKHOFF.TwinCATOpcServerDA", which is the same for Out-of-Process and In-Process. Both execution types can be configured via the OPC-Configurator.
Page 29
The following information applies to the OPC server running on a PC platform. This information is not relevant when running on a CE platform. This option causes the OPC Server to automatically update its cache after write operations. TF6120 Version: 1.1...
Page 30
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"...
Page 31
<AutoCfgSymFile> 8 : Include tpy- file of TwinCAT28-project defined under <AutoCfgSymFile>, but import only symbols with symbol- property "OPC=1" AutoCfgSymFile Optional full path and name of symbol-file to be included like "C:\Test\demo.sym" or "\ \User1\Test\demo.sym" or "C: \User1\Test\demo.tpy" TF6120 Version: 1.1...
Page 32
NumSteps Optional, depends on <SignalType> Amplitude Optional, depends on <SignalType> Period Optional, depends on <SignalType> Phase Optional, depends on <SignalType> Position Optional, depends on <SignalType> Ratio Optional, depends on <SignalType> Version: 1.1 TF6120...
• Receiving Data from the TwinCAT I/O task [} 38]: Configuration by variable upload from the TwinCAT I/O Task 4.1.3.2 Receiving data from TwinCAT PLC As mentioned bfore, the OPC-Server gives the possibility to read/write process values from ADS devices and therefore also from the TwinCAT PLC. TF6120 Version: 1.1...
Page 34
AT%MX10.2 : BOOL; bMemAlarm2 AT%MX10.3 : BOOL; (*~ (OPC:1:available for OPC Clients) *) iReadOnly : INT; (*~ (OPC:1:available for OPC Clients) (OPC_PROP[0005]:1:available for OPC Clients but ReadOnly) *) The comment OPC_PROP[0005]:1 causes that the variable is read only. Version: 1.1 TF6120...
Page 35
In the second step you need to configure the OPC-Server. This is a one-time configuration. Start the TwinCAT-OPC-Configurator "Start - All Programs - TwinCAT System - TwinCAT OPC - TwinCAT OPC Configurator" Select "I/O Devices" with right click and then menu "New". TF6120 Version: 1.1...
Page 36
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. Version: 1.1 TF6120...
Page 37
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. TF6120 Version: 1.1...
Page 38
• 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" - "TaskName". Version: 1.1 TF6120...
Page 39
Step 2: Configuration of the 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".
Page 40
"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: Version: 1.1 TF6120...
• Processvalue --> Communication to OPC-Server --> convertion within OPC-Server --> Communication to OPC-Client --> OPC-Client • OPC-Client --> Communication to OPC-Server --> convertion within OPC-Server --> Communication to process --> Processvalue Sample: • KL3202 offers process value of temperatures in unit 1/10 Grad Celsius, e.g. 200. TF6120 Version: 1.1...
Page 42
Navigate to "Conversions", right click and select menue "New". For "Name" please enter a name for this alarm definition. This name has to be OPC conform, no special characters allowed.With "OK" you see the dialog to configure in detail your new "Conversion". Version: 1.1 TF6120...
Page 43
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. TF6120 Version: 1.1...
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-Configurator "Start - All Programs - TwinCAT System - TwinCAT - TwinCAT OPC Configurator" Version: 1.1 TF6120...
Page 45
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. TF6120 Version: 1.1...
Page 46
Now we define, which PLC variable should be handled with simulation. Similar to the Data Access feature, this configuration also occurs by adding comments to the PLC-project. Beispiel: Please note: Today just global PLC-variables can be linked to simulation-templates. Elements of structures or arrays can not be configured as an OPC-Simulation. Version: 1.1 TF6120...
PLC-variables and their link to the OPC-server. The OPC server will analyze this information of the TPY file., so configure the OPC-Server to know the file <PLC-projectname>.tpy. The following table shows a list of all Item Properties: TF6120 Version: 1.1...
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 OPC_PROP[6011] BECKHOFF Defined : Conversion ID 4.1.7 Data exchange via network 4.1.7.1...
Page 49
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 find the settings needed for ADS communication over a network in the ADS Reference. TF6120 Version: 1.1...
Page 50
• Activate "Enable Distributed COM on this computer" • For "Default Authentication Level" select "None" • For "Default Impersonation Level" select "Anonymous Step 2 Select the dialog "Applications" and then the entry „TwinCAT OPC Server DA". Double-click this entry. Version: 1.1 TF6120...
4.2.1 OPC XML DA In addition to the OPC DA Server, the Function TF6120 also contains an OPC XML-DA Server, which will be automatically installed by Setup. Depending on the used Windows Operating System, you may need to perform additional settings to setup XML-DA in the IIS webserver. Please consult the chapter "Installation" to see how to do that.
Reading status information of the OPC XML-DA Server ?info=log Reading protocol information of the OPC XML-DA Server ?info=reload Reload the configuration ?info=config Show active configuration ?action=restart Restart the OPC XML-DA Server ?action=stop Stop the OPC XML-DA Server Version: 1.1 TF6120...
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 are listed on the web site of the OPC foundation: http://www.opcfoundation.org TF6120 Version: 1.1...
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. Version: 1.1 TF6120...
Page 55
To keep configuration simple it is assumed that two machines have the same operating system installed, are both in the same Workgroup and have the same user accounts (same person/PWD actually logged on). On the Server Machine an OPC Server is located and on the Client Machine an OPC Client was installed. TF6120 Version: 1.1...
Please note: In a mixed configuration (e.g. a client installed on Windows 7 and the server installed on Windows 2000), the Windows 7 machine automatically "changes" to the classic Win2k bevavior when lauching and accessing the DCOM Server, but there will be no callbacks comming through. Version: 1.1 TF6120...
Page 57
Domain and have different user accounts logged on. The different users are members of one User Group. This for this User Group access is granted in the DCOM settings of the Client and the Server Machine. TF6120 Version: 1.1...
Page 58
To keep configuration simple it is assumed that two machines have the same operating system installed, are both in the same Workgroup and have the same user accounts (same person/PWD actually logged on). On the Server Machine an OPC Server is located and on the Client Machine an OPC Client was installed. Version: 1.1 TF6120...
• Navigate to Console Root --> Component Services --> Computers --> My Computer • Select "My Computer", right click it and select Properties • On the "General" tab no changes have to be made. The default settings will be correct for OPC Client side security settings TF6120 Version: 1.1...
Page 60
Appendix 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. Version: 1.1 TF6120...
Page 61
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. TF6120 Version: 1.1...
Page 62
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" the Domain. Therefore the machine must "know" the users (they must have a local Login). ◦ Authentification Level = None ◦ Impersonation Level = Anonymous Version: 1.1 TF6120...
Page 63
OnDataChange) to the OPC Client the server's process must have access permission on the Client. ◦ The Default Access Permission should be granted for Administrators Interactive User System Network "OPC Server's Security Context" • The Default Launch Permission should not be changed on the Client machine. TF6120 Version: 1.1...
Page 64
Appendix • On the MSDTC Tab no changes have to be done. The default settings will be correct for OPC Client side security settings. Version: 1.1 TF6120...
To configure DCOM for a remote OPC communication, please perform the following steps on the computer running TwinCAT OPC-Server. Please note: Only local administrators are allowed to open and change the DCOM security. • Open Start --> Run --> dcomcnfg.exe to start the DCOM configuration dialog. TF6120 Version: 1.1...
Page 66
• 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). Version: 1.1 TF6120...
Page 67
Appendix • On the "Location" tab no changes have to be made. The default settings will be correct for the OPC Server's security settings. TF6120 Version: 1.1...
Page 68
• The Server Specific Configuration Permission should not be changed on the Server machine. • On the "Endpoints" tab the default settings should remain. In the Default Protocols Tab for all COM- Objects Connection-oriented TCP/IP protocol should be moved to the top position. Version: 1.1 TF6120...
Page 69
◦ This user = Server will overtake the security context of this person By selecting This user it will be guaranteed that always the same person's security context is used when the server is started. On the Client side only for this person the Access Permission must be granted. TF6120 Version: 1.1...
OPC Server. • Access Permission [} 70] • Launch Permission [} 71] • Select Users [} 72] 5.2.5.2 Access Permission For granting access permission (accessing the application) to a certain user the Edit... button must be clicked opening the following dialog. Version: 1.1 TF6120...
Page 71
Appendix 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. TF6120 Version: 1.1...
Page 72
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. Version: 1.1 TF6120...
Page 73
Appendix The list of all known users will be displayed after clicking the Find Now button. TF6120 Version: 1.1...
Need help?
Do you have a question about the TF6120 and is the answer not in the manual?
Questions and answers