Beckhoff Automation GmbH & Co. KG TX1200 — 2.2.6 The Continuous Function Chart Editor (CFC)

A Brief Introduction to TwinCAT PLC Control For IEC steps the implicit variables .t can be used to enquire about the active time of the steps. Implicit variables can also be accessed by other programs. Example: boolvar1:=sfc.step1.x; Here, step1.x is the implicit boolean variable representing the state of IEC step step1 in POU sfc1. Parallel branch Two or more branches in SFC can be defined as parallel branches. Each parallel branch must begin and end with a step. Parallel branches can contain alternative branches or other parallel branches. A parallel branch begins with a double line (parallel beginning) and ends with a double line (parallel end) or with a jump.

If the parallel beginning line of the previous step is active and the transition condition after this step has the value TRUE, then the first steps of all parallel branches become active (see active step). These branches are now processed parallel to one another. The step after the parallel end line becomes active when all previous steps are active and the transition condition before this step produces the value TRUE. Jump A jump is a connection to the step whose name is indicated under the jump symbol. Jumps are required because it is not allowed to create connections which lead upward or cross each other.

2.2.5 Function Block Diagram (FBD) The function block diagram is a graphically oriented programming language. It works with a list of networks whereby each network contains a structure which represents either a logical or arithmetic expression, the call of a function block, a jump, or a return instruction. An example of a typical network in the function block diagram as it could appear in TwinCAT PLC Control : 2.2.6 The Continuous Function Chart Editor (CFC) The continuous function chart editor does not operate like the function block diagram FBD with networks, but rather with freely placeable elements. This allows feedback, for example.

Two examples of a network in the continuous function chart editor, as they would typically appear: TX1200 27 Version: 1.3