Software PLC and NC on PC systems Software PLC and NC on the PC: the PC executes the controller For the PC to execute the control task, besides the programs for operator control the automation software must be executed in the usual fashion. A "classical" PLC runs programs cyclically. Input and output alternate with program execution: Fig. 2: Sketch 1: Real time operation of PLC software in the classical PLC In a software PLC on the PC, programs are run in exactly the same way as in a conventional PLC / NC, i.e. in exactly timed (deterministic) cycles, which are executed with the same length and regardless of the program length.
The user interface is executed in the cycle pauses, for which computing capacity can be reserved: Fig. 3: Sketch 2: Real time operation of PLC software on a PC with Windows NT The PLC, NC and user interface are executed simultaneously by "overlaying" tasks for PLC, NC and operating system tasks with a multitasking system. Each task ("server") for a specific purpose operates with its own cycle time and priority. Sketch 3 shows overlaying of the PLC, the NC and the operating system. TwinCAT ensures the operation of Windows NT together with TwinCAT programs by a special implementation integrated into the operating system: Fig. 4: Sketch 3:
Real time operation of a PLC program and NC control with a PC System Concept 12 Version: 1.0