TRAFFICSIGNAL simulation

Now test your program in simulation mode. Compile (“Project” “Build”) and load (“Online” “Login”) it. Start the program by “Online” “Start”, then set variable ON to TRUE, e.g. by a double-click on the entry “ON” in the input box of the CFC editor. This will mark the variable as prepared to be set to <TRUE>. Then press <Ctrl><F7> or command “Online” “Write values”, to set the value. Now variable START in ABLAUF (which we had set to TRUE manually in the first extension level of the program) gets this value by variable ON, which is used in PLC_PRG. This will make run the traffic light cycles. PLC_PRG has changed to a monitoring window. Click twice on the plus sign in the declaration editor, the variable display drops down, and you can see the values of the individual variables.