Configuration 2. Step: Check and save configuration Save new configuration by selecting menue "File - Save As...". After successfully creating and saving of new OPC-configuration file the next dialog offers to activate this new configuration. Select "OK" to activate the configuration. With next startup the OPC-Server will work with new settings. In case of opc server offers old previous configuration to opc-clients but a new configuration was activated this means, that OPC-server was not restarted to load fresh configuration. 3. Step: Link of PLC-Variable with Alarm-Type With previous steps we defined a "simulation-template" with detailed information about simulation behaviour.
Now we define, which PLC variable should be handled like a simluation. This link is configured in PLC-Control as and additional information for IEC1131-variable declaration. Take care on following settings : Add a comment behind PLC-variable declaration. This comment will be interpreted by the opc-server and links this plc-variable to a previous defined simulation-template. The simulation-template with the unique Simulation-ID was configured in step 1. Today just global PLC-variables can be linked to Simulation-Templates. Elements of structures or arrays can not be configured as an simulated variable. Future versions of OPC-Server will not have this limitation. Sample :
PLC-Variable of Typ LREAL dblMemAlarmCounter is a OPC variable linked to simulation template 6. The OPC-Server will not access this PLC variable, but instead give simulated values back to OPC- client. The syntax is important: TS6120 30 Version: 1.2.0 Signal Type Req./Opt. Description 5 : Square Optional 6 : Triangle Optional 7 : Stepp Optional Disable Optional Disables this signal. OPC-Server will ignore this signal.