beckhoff TS6120 — 6.1.4 Simulation

Configuration Sample : PLC-Variable of Typ INT intMemCounterConversion is an OPC-DA variable which is converted by the opc-server as defined in conversion template 102. The syntax is important : intMemCounterConversion : INT; (* ~ (OPC : 1 : available for OPC-clients) (OPC_PROP[6010] : 1 : OPC_PROP_CONV_ENABLE) (OPC_PROP[6011] : 102 : OPC_PROP_CONV_ID) *) Each time compiling the PLC-project the PLC-Control will create the file .tpy. This XML based file contains information about 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 .tpy https://infosys.beckhoff.com/content/1033/tcopcserver/Resources/ 12162179979/.htm 6.1.4 Simulation The OPC-Server offers to simulate process-values. In this case no communication to the ADS-device (like PLC) is done 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 feature "Simulation" ist available in OPC Server version V4.0.x.x.

OPC-Server version V4.1.x.x offers a multiple more performant access to TwinCAT-devices, the simulation- mode is under construction and not supported today. The OPC-Server offers simulation of all process values simulation of some specific process values It is not possible to combine both simulated and real-process values. Sample The https://infosys.beckhoff.com/content/1033/tcopcserver/Resources/12162182795/.zip contains both, the PLC project and the definition of OPC-simulation. 1. Step:

Configuration of simulation-templates for TwinCAT OPC Server Start TwinCAT-OPC-Configurator "Start - All Programs - TwinCAT System - TwinCAT - TwinCAT OPC Configurator" Navigate to "Simulations", right click and select menu "New" . TS6120 28 Version: 1.2.0