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

Sample Program Now it is time to determine from the input STATUS of the POU the values of the output variables. For this go into the body of the POU. Click on the field to the left beside the first network (the gray field with the number 1). You have now selected the first network. Now choose the menu item "Insert" "Operator". In the first network a box is inserted with the operator AND and two inputs: Click on the text AND with the mouse pointer and change the text into EQ. Select the three question marks from the upper of the two inputs and enter the variable STATUS. Then select the lower of the three question marks and put a 1 underneath it. You get the following network:

Click now on a place behind the EQ Box. Now the output of the EQ operation is selected. Choose "Insert" "Assignment". Change the three question marks ??? to GREEN. You now have created a network with the following structure: STATUS is compared with 1, the result is assigned to GREEN. This network thus switches to GREEN if the preset state value is 1.For the other TRAFFICSIGNAL colors or for OFF we need three more net-works. You create them with the command "Insert" "Network (after)". These networks should be set up as in the example. The finished POU now is as follows: TX1200 33 Version: 1.3