TC3 Interface for Matlab /Simulink

Similar documents
Manual. TC3 EtherCAT Simulation. TwinCAT 3. Version: Date: Order No.: TE1111

Manual. PLC Lib: Tc2_DataExchange. TwinCAT 3. Version: Date:

Manual. TC3 Power Monitoring. TwinCAT 3. Version: Date: Order No.: TF3650

Manual. TC3 Virtual Serial COM. TwinCAT 3. Version: Date: Order No.: TF 6360

Manual. MATLAB /Simulink. TwinCAT 3. Version: Date:

Manual. PLC Lib: Tc2_DataExchange. TwinCAT 3. Version: Date:

Manual. PLC Lib: Tc2_Coupler. TwinCAT 3. Version: Date:

Documentation KM2042. Sixteen channel digital output module with D-Sub Connector. Version: Date:

Manual. Software Protection. TwinCAT 3. Version: Date:

Manual. TwinCAT MC Flying Saw. TwinCAT 3. Version: Date: Order No.: TF5055

Documentation for. TwinSAFE User. Tool to modify the User Administration of a TwinSAFE Logic. Version: Date:

Documentation EM2042. Sixteen Channel Digital Output Module with D-Sub Connector. Version: Date:

Manual. PLC Lib: Tc2_DMX. TwinCAT 3. Version: Date:

Documentation ZB8610. Fan cartridge for EtherCAT and Bus Terminals. Version: Date:

PLC Lib: Tc3_MC2_AdvancedHoming

Manual. PLC Lib: Tc2_SMI. TwinCAT 3. Version: Date:

Documentation. KM2604 and KM2614. Four channel relay module. Version: Date:

Manual. PLC Lib: Tc2_Drive. TwinCAT 3. Version: Date:

Documentation. Mains filter AX2090-NF50. Version: Date:

Manual. PLC Lib: Tc2_Standard. TwinCAT 3. Version: Date:

Manual. PLC Lib: Tc2_EtherCAT. TwinCAT 3. Version: Date:

Documentation. KM10xx. Terminal Modules with Digital Inputs. Version: Date:

Description AX5805. List of permissible motors. Version: Date:

Documentation. FC2001 and FC2002. Lightbus PCI Interface Cards. Version: Date:

Documentation. CU20xx, CU22xx. Ethernet Switch. Version: Date:

Documentation KM2002, KM2004, KM2008. Terminal modules with digital outputs, 24 V, 0.5 A. Version: Date:

Operating instructions for AX5801. TwinSAFE drive option card for the AX5000 servo drive. Version: Date:

Documentation. AL225x Connector-Box. Accessory for servo drives of the series AX5000 and AX2000. Version: Date:

Manual. PLC Lib: Tc2_NcDrive. TwinCAT. Version: Date:

Documentation. FC7501 and FC7502. SERCOS interface PCI Cards. Version: Date:

Description AX5805. Default values for the permissible motors. Version: Date:

Manual. PLC Lib: Tc2_DALI. TwinCAT 3. Version: Date:

Manual TC3 UML. TwinCAT 3. Version: Date: Order No.: TF1910

Manual. TC3 ADS-over-MQTT. TwinCAT. Version: Date:

Installation- and Operating instructions for CU Ethernet Controller with USB Input. Version: 1.4 Date:

Documentation KL channel Digital Output Terminal, 24 V DC, 2 x 4 A/1 x 8 A. Version: Date:

Manual. TwinCAT MC Camming. TwinCAT. Version: Date: Order No.: TS5050

Installation- and Operating instructions for CU Port USB 2.0 Hub. Version: 1.3 Date:

C9900-P223 and C9900-P224

Installation- and Operating instructions for CU Port USB 3.0 Hub. Version: 1.1 Date:

C9900-P208 and C9900-P209

Application Note FC1100/FC1121 (EtherCAT Slave Card)

Application Note FC1100/FC1121 (EtherCAT Slave Card)

Manual. TC3 Database Server. TwinCAT 3. Version: Date: Order No.: TF6420

TwinCAT KinematicTransformation

Operation Manual BK5000. Bus Coupler for CAN-CAL Version: 1.12

Manual. TC3 Filter. TwinCAT 3. Version: Date: Order No.: TF3680

Documentation. KL2784 und KL2794. Four channel digital output terminals with MOSFET transistors. Version: Date:

EL9820/EL9821 Evaluation Kit. Version: 1.3 Date:

Manual. TC3 Scope View. TwinCAT 3. Version: Date: Order No.: TE13xx

Manual. NC PTP: Quick Starting Guide. TwinCAT 3. Version: Date: Order No.: TF5000

Manual. TC3 Robotics unival PLC. TwinCAT 3. Version: Date: Order No.: TF5130

Installation- and Operating instructions for CU CP-Link 4 transmitter box The Two Cable Display Link. Version: 1.

Installation- and Operating instructions for CU CFast card adapter with USB connector. Version: 1.1 Date:

CU port USB 2.0 hub. Version: 1.1 Date:

Manual. PLC Lib: Tc3 BA Common. TwinCAT. Version: Date:

Documentation. KM3701, KM3702 and KM3712. Pressure Measuring Module. Version: Date:

Operating manual ELX channel digital input terminal for NAMUR sensors, Ex i. Version: Date:

Documentation KL2602, KL2622. Two-channel Relay Output Terminals. Version: Date:

Manual EAP. TwinCAT 3. Version: Date:

Operation Manual for. EJ19xx and EJ29xx. TwinSAFE EJ Modules with digital fail-safe in and outputs. Version: Date: 1.2.

CU USB-Extender-Rx (USB and DVI Extender) Version: 0.3 Date:

Manual. TC3 EthernetIP Scanner. TwinCAT 3. Version: Date: Order No.: TF6281

Operating manual ELX9012, ELX9410, ELX9560. ELX System Terminals. Version: Date:

New Automation Technology PC-based control for Wind Turbines

Documentation KL2791. Single channel speed controller terminals for AC motors. Version: Date:

Manual TC3 TCP/IP. TwinCAT 3. Version: Date: Order No.: TF6310

Aotewell SIMATIC S7-PDIAG for S7-300 and S Configuring Process Diagnostic Getting St

Documentation. KL85xx und KL9309. Manual operating modules with K-Bus interface. Version: Date:

Documentation KL6781. M-Bus Master Terminals. Version: Date:

CU Compact-Flash card adapter for USB. Version: 1.0 Date:

SIMATIC. Communications processor CP 340 first commissioning steps. Getting Started 04/2005 A5E

Preface 1. Main Management System 2. Contact Information 3 SIPLUS CMS. SIPLUS CMS4000 X-Tools - User Manual Main Management System.

KL2751/KS2751, KL2761/KS2761

Documentation. EL20xx, EL2124. Digital Output Terminals. Version: Date:

SIMATIC. Process Control System PCS 7 PCS 7 system documentation - Readme V8.0 SP2 (Update 1) Options for Accessing Documentation 1

Safety module SY6 Manual

Documentation TwinCAT ADS Library for LabVIEW TCP 4.1

Using WAGO Series 750 EtherCAT coupler with CoDeSys SP Win V3 Application note

Preface 1. Storage System 2. Contact Information 3 SIPLUS CMS. SIPLUS CMS X-Tools - User Manual Storage System. English.

Documentation. EPI2xxx. IO-Link-Box Modules with digital inputs. Version: Date:

Operating Instructions

Machine Automation Controller NJ-series. EtherNet/IP TM. Connection Guide. OMRON Corporation. CJ2-series Controller P568-E1-01

Documentation. EL28xx. Digital HD output Terminals. Version: Date:

Import/Export Project Components. Programming Manual

S7-300 Programmable Controller

Manual CX Audio interface for CX20x0. Version: Date:

Operating manual ELX3152. Two channel, analog input terminal, 0/4 20 ma, single ended, 16 Bit, Ex i. Version: Date: 1.5.

KL5151/KS5151, KL5152/KS5152

EL9800 Base Board. Version: 1.9 Date:

Fieldbus Independent I/O Modules Bluetooth RF Transceiver Quick Start

Manual. TC3 IoT Data Agent. TwinCAT 3. Version: Date: Order No.: TF6720

Polymer Electric. Operating Instructions. Control Unit SG-EFS 1X4 ZK2/1 8k2. Version 3

Documentation KL Channel Accurate Input Terminals for PT100 (RTD) Version: Date:

MindSphere. Visual Explorer. Introduction. User roles for "Visual Explorer" Connecting "Visual Explorer" to MindSphere data. Creating Visualizations

Documentation KL6224. IO-Link Terminal. Version: Date:

Installation and Operating instructions for C Ultra compact Industrial PC. Version: 1.3 Date:

Fieldbus Independent I/O Modules 8 DI DC 24 V 3.0 ms, Manual

Documentation for. AX TwinSAFE Drive Option. TwinSAFE Drive Option for AX8xxx-x1xx Servo Drives. Version: Date: 1.0.

Documentation. EL30xx. Analog Input Terminals (12 Bit) Version: Date:

Transcription:

Manual TC3 Interface for Matlab /Simulink TwinCAT 3 Version: Date: Order No.: 1.0 2017-08-17 TE1410

Table of contents Table of contents 1 Foreword... 5 1.1 Notes on the documentation... 5 1.2 Safety instructions... 6 2 Overview... 7 3 Installation... 8 4 Licenses... 9 5 TE1410 Simulink Library... 10 5.1 Asynchronous Blocks... 10 5.1.1 TC ADS Async Read... 10 5.1.2 TC ADS Async Write... 12 5.2 Synchronous Blocks... 14 5.2.1 TC ADS Symbol Interface... 14 5.2.2 TC ADS Module Interface... 15 5.2.3 TC ADS Sync Read... 19 5.2.4 TC ADS Sync Write... 21 5.3 Utilities... 23 5.3.1 Sync Clock... 23 TC3 Interface for Matlab /Simulink Version: 1.0 3

Table of contents 4 Version: 1.0 TC3 Interface for Matlab /Simulink

Foreword 1 Foreword 1.1 Notes on the documentation This description is only intended for the use of trained specialists in control and automation engineering who are familiar with the applicable national standards. It is essential that the documentation and the following notes and explanations are followed when installing and commissioning the components. It is the duty of the technical personnel to use the documentation published at the respective time of each installation and commissioning. The responsible staff must ensure that the application or use of the products described satisfy all the requirements for safety, including all the relevant laws, regulations, guidelines and standards. Disclaimer The documentation has been prepared with care. The products described are, however, constantly under development. We reserve the right to revise and change the documentation at any time and without prior announcement. No claims for the modification of products that have already been supplied may be made on the basis of the data, diagrams and descriptions in this documentation. Trademarks Beckhoff, TwinCAT, EtherCAT, Safety over EtherCAT, TwinSAFE, XFC and XTS are registered trademarks of and licensed by Beckhoff Automation GmbH. Other designations used in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owners. Patent Pending The EtherCAT Technology is covered, including but not limited to the following patent applications and patents: EP1590927, EP1789857, DE102004044764, DE102007017835 with corresponding applications or registrations in various other countries. The TwinCAT Technology is covered, including but not limited to the following patent applications and patents: EP0851348, US6167425 with corresponding applications or registrations in various other countries. EtherCAT is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany Copyright Beckhoff Automation GmbH & Co. KG, Germany. The reproduction, distribution and utilization of this document as well as the communication of its contents to others without express authorization are prohibited. Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of a patent, utility model or design. TC3 Interface for Matlab /Simulink Version: 1.0 5

Foreword 1.2 Safety instructions Safety regulations Please note the following safety instructions and explanations! Product-specific safety instructions can be found on following pages or in the areas mounting, wiring, commissioning etc. Exclusion of liability 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. 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! Serious risk of injury! Failure to follow the safety instructions associated with this symbol directly endangers the life and health of persons. DANGER Risk of injury! Failure to follow the safety instructions associated with this symbol endangers the life and health of persons. WARNING Personal injuries! Failure to follow the safety instructions associated with this symbol can lead to injuries to persons. CAUTION Damage to the environment or devices Failure to follow the instructions associated with this symbol can lead to damage to the environment or equipment. Attention Tip or pointer This symbol indicates information that contributes to better understanding. Note 6 Version: 1.0 TC3 Interface for Matlab /Simulink

Overview 2 Overview TE1410 interface for MATLAB /Simulink TE1410 interface for MATLAB /Simulink can be used for data exchange between TwinCAT3 and MATLAB /Simulink. The data is exchanged via ADS using Simulink blocks, which are provided in a simulink library. Webinars concerning TE1400 and TE1410 Date Topic Referent 01.10.2013 TwinCAT 3 Matlab /Simulink -integration: Introduction, application examples, TC3 Interface for Matlab /Simulink (german) Overview of the Beckhoff webinars (german) Dr. Knut Güttel TC3 Interface for Matlab /Simulink Version: 1.0 7

Installation 3 Installation System requirements MATLAB /Simulink R2010a or newer. TwinCAT 3.0 or newer. Installation instructions 1. Run the TwinCAT 3 Setup 2. Run the Setup "TE1410-InterfaceForMatlabSimulink" 3. Start MATLAB as administrator and execute "%TwinCAT3Dir%..\Functions\TE1410- InterfaceForMatlabSimulink\SetupTE1410.p" in MATLAB. NOTE! When executing MATLAB without Administrator permission, on a system with User Account Control (UAC) enabled, the MATLAB path can't be saved durable. In this case "SetupTE1410.p" has to be executed after each restart of MATLAB, otherwise some files cannot be found, which are necessary to generate TwinCAT modules. 8 Version: 1.0 TC3 Interface for Matlab /Simulink

Licenses 4 Licenses To use the functions of the TE1410 interface for MATLAB /Simulink, a TE1410 license is required on the system on which MATLAB /Simulink is operated with the TE1410 Simulink function blocks. In addition, at least a TwinCAT ADS installation is required on this computer, in order to make the ADS router available. From this system, connections to various target platforms can then be established. No additional runtime licenses are required for using the TE1410 on the target platforms. Demo version A 7-day trial license is not available for TE1410, since it is an engineering product. However, you can test the product with limited functionality (demo version). The limitations of the demo version are automatically triggered if no valid TE1410 license is found on the system. The functionality is limited to a total of 5 ADS variables and 5 ADS function blocks per Simulink model. TC3 Interface for Matlab /Simulink Version: 1.0 9

5 TE1410 Simulink Library After TE1410 - Interface for MATLAB /Simulink was installed successfully, the Simulink library browser contains the entry Beckhoff / TwinCAT ADS: 5.1 Asynchronous Blocks TE1410 - Interface for MATLAB /Simulink was installed successfully, the Simulink library browser contains the entry Beckhoff / TwinCAT ADS: 5.1.1 TC ADS Async Read The block "TC ADS Async Read" provides read access to TwinCAT ADS varaibles. You can find this block beneath the subfolder "Asynchronous" of the Beckhoff ADS Library inside the "Simulink Library Browser". 10 Version: 1.0 TC3 Interface for Matlab /Simulink

Block input ports NetId Port IdxGrp IdxOffs Trig The target AMS NetId The target ADS Port The target ADS Index Group The target ADS Index Offset Positive edge triggers the ADS request Block output ports Data Busy Err ErrId The value, read from the ADS variable Boolean flag signaling that the block is currently waiting for an ADS response Boolean flag signaling an actual ADS error The ADS error code Block parameters TC3 Interface for Matlab /Simulink Version: 1.0 11

Block sample time Abort simulation on ADS error Data type Data width ADS timeout Direct feed through Create signal labels The Simulink block sample time, which is the ADS request interval (refered to the Simulink time but not to the real time) Stop simulation at the first ADS error The data type of the Data output signal, which should be the data type of the transmitted ADS variable The width of the Data output signal. Use values greater than 1 to transmit arrays. Simulink will wait on a response of the last ADS request until this timespan is exceeded (in each time step) Evaluate the input values in the output method of the block. This ensures, that the values at the output ports in the current time step belong to the ADS parameters at the input ports of the same time step. Otherwise the output values belong to the input ADS parameters of the previous time step. Activating this option can significantly slow down the simulation. Signal labels are created for the signal lines, connected to the output ports Code generation Code generation is supported only for the TwinCAT Target. 5.1.2 TC ADS Async Write The block "TC ADS Async Write" provides write access to TwinCAT ADS variables. You can find this block beneath the subfolder "Asynchronous" of the Beckhoff ADS Library inside the "Simulink Library Browser". Block input ports NetId Port IdxGrp IdxOffs Data Trig The target AMS NetId The target ADS Port The target ADS Index Group The target ADS Index Offset The value to be written to the ADS variable Positive edge triggers the ADS request Block output ports Busy Err ErrId Boolean flag signaling that the block is currently waiting for an ADS response Boolean flag signaling an actual ADS error The ADS error code 12 Version: 1.0 TC3 Interface for Matlab /Simulink

Block parameters Block sample time Abort simulation on ADS error Data type Data width ADS timeout Direct feed through Create signal labels The Simulink block sample time, which is the ADS request interval (referred to the Simulink time but not to the real time) Stop simulation at the first ADS error The data type of the Data input signal, which should be the data type of the transmitted ADS variable The width of the Data input signal. Use values greater than 1 to transmit arrays. Simulink will wait on a response of the last ADS request until this time span is exceeded (in each time step) Evaluate the input values in the output method of the block. This ensures, that the values at the output ports in the current time step belong to the ADS parameters at the input ports of the same time step. Otherwise the output values belong to the input ADS parameters of the previous time step. Activating this option can significantly slow down the simulation. Signal labels are created for the signal lines, connected to the output ports Code generation Code generation is supported only for the TwinCAT Target. TC3 Interface for Matlab /Simulink Version: 1.0 13

5.2 Synchronous Blocks TE1410 - Interface for MATLAB /Simulink was installed successfully, the Simulink library browser contains the entry Beckhoff / TwinCAT ADS: 5.2.1 TC ADS Symbol Interface The block "TC ADS Symbol Interface" provides synchronous read and write access to a TwinCAT ADS symbols. You can find this block beneath the subfolder "Synchronous" of the Beckhoff ADS Library inside the "Simulink Library Browser". Block input and output ports The number of ports and the data types of the ports depend on the block configuration. There are no fix input or output ports. 14 Version: 1.0 TC3 Interface for Matlab /Simulink

Block parameters ADS symbols Define the input and output ports of the Simulink block. You can use the target browser to search for ADS symbols and put the symbols to the symbol list of the desired transmit direction. This can be done via the appropriate buttons of the target browser or via Drag and Drop. General Simulink block settings Block sample time The Simulink block sample time, which is the ADS request interval (referred to the Simulink time but not to the real time) Code generation Code generation from models using this block is supported for the TwinCAT Target. The generated TwinCAT module gets additional Data Areas (Process Images), which contain the input and output variables of the Simulink block. 5.2.2 TC ADS Module Interface The block "TC ADS Module Interface" provides synchronous read and write access to a special TwinCAT module. You can find this block beneath the subfolder "Synchronous" of the Beckhoff ADS Library inside the "Simulink Library Browser". TC3 Interface for Matlab /Simulink Version: 1.0 15

Block input and output ports The number of ports and the data types of the ports depend on the block configuration. There are no fix input or output ports. Block parameters Target module Module settings Module in-/outputs NetId OID Module instance definition file Default module sample time The NetId of the target system, where the interface module instance is running. The object ID of the module instance. Create or open a TMI (TwinCAT module instance) file, containing the interface module configuration. This file can be imported to the TwinCAT project. The default sample time of the interface module. Define the input and output ports of the Simulink block. These settings are saved to the selected TMI (TwinCAT module instance) file. The signals can be of any base type or a Simulink Bus Object, which is defined in the MATLAB workspace. General Simulink block settings 16 Version: 1.0 TC3 Interface for Matlab /Simulink

Block sample time The Simulink block sample time, which is the ADS request interval (referred to the Simulink time but not to the real time) Synchronisation No synchronization / Synchronized data exchange Provide TwinCAT time output port The real time span from the start of the simulation is transmitted from the interface module to Simulink and can optionally be used to slow down the simulation time to the real time. Provide the real time span from the start of the simulation as an output port. Interface module configuration 1. Open the TwinCAT project you want to connect to 2. Create a new instance of the MatlabInterfaceModule at the TwinCAT projects node "System / TcCom Objects" via its context menu item "Add new item..." TC3 Interface for Matlab /Simulink Version: 1.0 17

3. Open the context menu of the newly created object node and Reload the TMI file. Open the TMI file that was configured in the Simulink block configurator. 18 Version: 1.0 TC3 Interface for Matlab /Simulink

4. Link the process image variables of the interface module to the desired process images of other TwinCAT modules (PLC, C++, MATLAB/Simulink, IOs). The objects input Data Area contains the Simulink block outputs and vice versa. Code generation Code generation from models using this block is supported for the TwinCAT Target. The generated TwinCAT module gets additional Data Areas (Process Images), which have the same structures as the Data Areas of the interface module instance. 5.2.3 TC ADS Sync Read The block "TC ADS Sync Read" provides read access to TwinCAT ADS variables. You can find this block beneath the subfolder "Synchronous" of the Beckhoff ADS Library inside the "Simulink Library Browser". Block input ports NetId Port IdxGrp IdxOffs The target AMS NetId The target ADS Port The target ADS Index Group The target ADS Index Offset TC3 Interface for Matlab /Simulink Version: 1.0 19

Block output ports Data Err ErrId The value, read from the ADS variable Boolean flag signaling an actual ADS error The ADS error code Block parameters 20 Version: 1.0 TC3 Interface for Matlab /Simulink

Block sample time Abort simulation on ADS error Data type Data width ADS timeout Direct feed through Create signal labels The Simulink block sample time, which is the ADS request interval (referred to the Simulink time but not to the real time) Stop simulation at the first ADS error The data type of the Data output signal, which should be the data type of the transmitted ADS variable The width of the Data output signal. Use values greater than 1 to transmit arrays. Simulink will wait on a response of the last ADS request until this time span is exceeded (in each time step) Evaluate the input values in the output method of the block. This ensures, that the values at the output ports in the current time step belong to the ADS parameters at the input ports of the same time step. Otherwise the output values belong to the input ADS parameters of the previous time step. Activating this option can significantly slow down the simulation. Signal labels are created for the signal lines, connected to the output ports Code generation Code generation is not supported. The reason is, that synchronous ADS communication requires to wait for the ADS responses. Due to nondeterministic ADS response times, this could lead to big jitter and cycle time exceeding in real time applications. Use asynchronous ADS blocks for use in real time applications instead. 5.2.4 TC ADS Sync Write The block "TC ADS Sync Write" provides write access to TwinCAT ADS variables. You can find this block beneath the subfolder "Synchronous" of the Beckhoff ADS Library inside the "Simulink Library Browser". Block input ports NetId Port IdxGrp IdxOffs Data The target AMS NetId The target ADS Port The target ADS Index Group The target ADS Index Offset The value to be written to the ADS variable Block output ports Err ErrId Boolean flag signaling an actual ADS error The ADS error code TC3 Interface for Matlab /Simulink Version: 1.0 21

Block parameters Block sample time Abort simulation on ADS error Data type Data width ADS timeout Direct feed through Create signal labels The Simulink block sample time, which is the ADS request interval (referred to the Simulink time but not to the real time) Stop simulation at the first ADS error The data type of the Data input signal, which should be the data type of the transmitted ADS variable The width of the Data input signal. Use values greater than 1 to transmit arrays. Simulink will wait on a response of the last ADS request until this time span is exceeded (in each time step) Evaluate the input values in the output method of the block. This ensures, that the values at the output ports in the current time step belong to the ADS parameters at the input ports of the same time step. Otherwise the output values belong to the input ADS parameters of the previous time step. Activating this option can significantly slow down the simulation. Signal labels are created for the signal lines, connected to the output ports 22 Version: 1.0 TC3 Interface for Matlab /Simulink

Code generation Code generation is not supported. The reason is, that synchronous ADS communication requires to wait for the ADS responses. Due to nondeterministic ADS response times, this could lead to big jitter and cycle time exceedings in real time applications. Use asynchronous ADS blocks for use in real time applications instead. 5.3 Utilities 5.3.1 Sync Clock The block "Sync Clock" can be used to slow down the simulation time to the system time. You can find this block beneath the subfolder "Utilities" of the Beckhoff ADS Library inside the "Simulink Library Browser". Block parameters Output port Activates an optional block output port, which can be used to monitor the deviation between the simulation and the system time. Code generation Code generation is supported for the TwinCAT Target but no code is generated for this block, because real time modules do not require any system time synchronization. TC3 Interface for Matlab /Simulink Version: 1.0 23