![Beckhoff TF6120 Manual Download Page 28](http://html.mh-extra.com/html/beckhoff/tf6120/tf6120_manual_2719284028.webp)
Configuration
TF6120
28
Version: 1.1
In the TwinCAT PLC programming environment, select "Project"->"Option"-
>"Symbolconfiguration". Activate "Create Symbol", and use the mouse to select under "Configure
Symbolfile..." the areas that you want to export (e.g. POUs and global variables). After compiling
the PLC-project the new symbolfile "<yourProjectName>.sym" will be in the same folder as your
plc-project.
◦ Each compiling of the PLC-project will automatically update the symbolfile.
◦ The OPC-Server imports structure and array-elements out of *.SYM files.
Option 2 :
Mark PLC-variables in the PLC-code to be relevant for OPC. This way is based on the TwinCAT
export file *.tpy.
2. OPC-Server : Running as EXE or DLL ?
• Arguments for working with EXE :
- One single OPC-client will access data from TwinCAT-OPC-Server
- The OPC-Client is installed on a different PC , the network 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 the PLC.
4.1.2.3
OPC Server as EXE / DLL
TwinCAT OPC-Server is available as an "out-of-process" server (with EXE as the file extension) and as an
"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.
Start the TwinCAT-OPC-Configurator
"Start - All Programs - TwinCAT System - TwinCAT OPC -
TwinCAT OPC Configurator"
Select the tab
"OPC Server settings
". See current active type of
"Server Mode"
.
Summary of Contents for TF6120
Page 1: ...Manual EN TF6120 TwinCAT 3 OPC DA 2022 02 28 Version 1 1 ...
Page 2: ......
Page 4: ...Table of contents TF6120 4 Version 1 1 ...
Page 74: ...Appendix TF6120 74 Version 1 1 ...
Page 75: ......