beckhoff TwinCAT 2 — 10 General questions regarding PC control

General questions regarding PC control is run). In the event of a cold start without a restart of the TwinCAT system, the system continues working with initial data. Setpoints can be withdrawn from the PLC by means of a watch list (better: recipe list) and can be loaded back into the PLC at the push of a key. Are there partial compilations or does the whole program always have to be compiled? When "Rebuild all" is selected, the complete project is recompiled. If an online exchange takes place, only the modified code is generated and loaded. After Rebuild all, online exchange is no longer possible. The code must be loaded completely, and the system must be cold started.

What happens if the PLC program does not finish within the set task time? There is a system flag area in which the status of the system is represented. Violations of the load limit lead to a situation in which the PLC programs are not completed in good time before the next call: a cycle call is executed with a "delay". The cycle timeout is indicated by a system flag and a reaction can be programmed. A message can be generated for Windows applications. The 'additional task 's' is located under the I/O configuration. These tasks are used by customers who want to scan fieldbus I/O without using programmable logic control.

What does a time-optimized, calculable data exchange between TwinCAT systems and two PCs look like? Data can be exchanged between two TwinCAT systems on two PCs using TCP/IP. The exchange takes place asynchronously with respect to the cycle and depends on the network load - a local area network is advantageous for this purpose. For TCP/IP links, there are the ADSWrite and ADSRead function blocks for the exchange of data. An exchange via a field bus is also possible, in which case one PC is the master and the other is the slave. Can NT with TwinCAT on a multiprocessor system be split up over 4 processors? This is basically possible but is currently not supported.

What precisely happens in the event of online changes? What program is changed? This method allows changes while the PLC is running. In the event of on-line changes, the delta code - i.e. the last changes - is generated and this code is loaded into the controller (into the run time system) after login and is stored there. If you now wish to activate the changes, the code is "appended" at the end of the currently running cycle. As the code now exists twice, the memory is reorganized during the next cycles (garbage collection). System Concept 30 Version: 1.0