Beckhoff Automation GmbH & Co. KG TX1200 — 3 Sample Program

Sample Program Program PLC_PRG, First Expansion Level, Declaration Part The beginning diagram of a POU in SFC always consists of an action "Init" of a following transition "Trans0" and a jump back to Init. We should expand that somewhat. First let us determine the structure of the diagrams before we program the individual action and transitions. First we need for each TRAFFICSIGNAL phase a step.. Insert it by marking Trans0 and choosing "Insert" "Step transition (behind)". Repeat this procedure three more times. If you click directly on the name of a transition or a step, then this is marked and you can change it.

Name the first transition after Init "TRUE", and all other transitions "DELAY.OK". The first transition always switches through, and all others switch through when DELAY in OK produces TRUE, i.e. when the set time period is finished. The steps (from top to bottom) receive the names Switch1, Green2, Switch2, Green1, whereby Init of course keeps its Name. "Switch" should mean each time a yellow phase, at Green1 TRAFFICSIGNAL1 at Green2 TRAFFICSIGNAL2 will be green. Finally change the return address of Init after Switch1. If you have done everything right, then the diagram should be as follows: TX1200 36 Version: 1.3