beckhoff TwinCAT 2 — 10 General questions regarding PC control

General questions regarding PC control Can position control and PLC and an operator control program be operated on one CPU? Yes, TwinCAT organizes both task processing for position control and for PLC and Windows NT processing simultaneously. The power of PC processors permits processing of all tasks in one CPU and the system load display provides an indication of CPU loading by the PLC and axis control. Do users have to bother about task synchronization and communication? TwinCAT organizes the exchange of data between tasks consistently and both synchronously and asynchronously. The System Manager is the tool for setting the exchange of data between tasks.

How are real time programs debugged? The TwinCAT IEC1131-3 compiler permits a powerful analysis of programs in 5 different programming languages with sequence control and variable analysis and a data trace is also available. It is possible to integrate C functions whose I/O data can be analyzed by variable analysis and a data trace. Are there are hardware or software incompatibilities? No hardware incompatibility between TwinCAT and compatible single-processor boards is currently known. Nevertheless, defective kernel mode drivers that have a detrimental influence on Windows NT may also have a detrimental influence on TwinCAT, one typical example being graphics card drivers.

Kernel mode drivers can only be installed by the administrator. TwinCAT also offers a jitter display to identify such drivers. When does the PLC execute a cold start and when does it execute a warm start? As in the case of a conventional PLC, TwinCAT can execute a cold start with variable initialization or a warm start (stop -> start) without initializing variables. When the computer is switched on, the start program is loaded and is started automatically when the "Boot" option is selected. If variables are to be backed up, they can be created as remanent data. Are dynamic variables available? First, local variables can be created which are only available in one instance.

PLCopen is considering the introduction of dynamic variables. Variable configuration for I/O addresses that have been specified completely is available. There are (still) no pointers. What are VAR_IN_OUT variables? VAR_IN_OUT variables are communicated as pointers and so there is no need to recopy data into and out of an instance. Located boolean variables cannot be passed on as VAR_IN_OUT. A 5000 x 10 array has been created. Only around 16,000 values have been indicated in the status display? The debugger system has data analysis limits, and the monitoring buffer size has been exceeded. Are there limits to the size of variables, e.g. arrays?

There is a restriction to 64,000 bytes per variable, but this will be dispensed with in the future. IEC1131 does not mention pointers. Are there nevertheless pointers? If no, what are the alternatives? There are currently still no pointers. With Release 3.0 of TwinCAT, pointers will be available in ST. With the use of pointers, no guarantee can be pro-vided for correct operation of program compilers and users bear responsibility themselves. Is there a possibility of structuring the validity of variables ? Local and global variables can be created. System Concept 28 Version: 1.0