SIMATIC ZEn01_09_STEP7__Zebra\ 2006 08 05 20:03:59 SIMATIC 300(1)\CPU314(1)\ .\OB1 - <offline> Page 1 of 1 OB1 - <offline> "" Name: Family: Author: Version: 0.1 Block version: 2 Time stamp Code: Interface: 1997 08 13 16:10:03 1997 06 09 13:12:37 Lengths (block/logic/data): 00130 00018 00022 Name Data Type Address Comment TEMP 0.0 OB1_EV_CLASS Byte 0.0 Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1) OB1_SCAN_1 Byte 1.0 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1) OB1_PRIORITY Byte 2.0 1 (Priority of 1 is lowest) OB1_OB_NUMBR Byte 3.0 1 (Organization block 1, OB1) OB1_RESERVED_1 Byte 4.0 Reserved for system OB1_RESERVED_2 Byte 5.0 Reserved for system OB1_PREV_CYCLE Int 6.0 Cycle time of previous OB1 scan (milliseconds) OB1_MIN_CYCLE Int 8.0 Minimum cycle time of OB1 (milliseconds) OB1_MAX_CYCLE Int 10.0 Maximum cycle time of OB1 (milliseconds) OB1_DATE_TIME Date_And_Time 12.0 Date and time OB1 started Block: OB1 Network: 1 Call FC1 for trafficlight control FC1 EN ENO SIMATIC ZEn01_09_STEP7__Zebra\ 2006 08 05 20:04:01 SIMATIC 300(1)\CPU314(1)\ .\FC1 - <offline> Page 1 of 4 FC1 - <offline> "" Name: Family: Author: Version: 0.0 Block version: 1 Time stamp Code: Interface: 1997 08 13 16:10:03 1997 06 09 13:12:37 Lengths (block/logic/data): 00220 00108 00000 Name Data Type Address Comment IN 0.0 OUT 0.0 IN_OUT 0.0 TEMP 0.0 RETURN 0.0 RET_VAL 0.0 Block: FC1 Sample program TRAFFICLIGHT Network: 1 Determining green request for pedestrians "Switch_ right" "Switch_ left" "Ped_ delay_ green" "Pedestria n_light" "Car_red_ orange_ phase" "Pedestria n_light" Symbol information I0.0 Switch_right Switch on the right side of the street I0.1 Switch_left Switch on the left side of the street T6 Ped_delay_green Delay next green request for pedestrians M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian T5 Car_red_orange_phase Duration of red/orange phase for cars Network: 2 Green phase for cars "Pedestria n_light" "Car_ green" Symbol information M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian Q0.7 Car_green Green for cars SIMATIC ZEn01_09_STEP7__Zebra\ 2006 08 05 20:04:01 SIMATIC 300(1)\CPU314(1)\ .\FC1 - <offline> Page 2 of 4 Network: 3 Start timer for orange phase for cars "Pedestria n_light" SD "Car_ orange_ phase" S5T#3S Symbol information M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian T2 Car_orange_phase Duration of orange phase for cars Network: 4 Orange phase for cars "Pedestria n_light" "Car_ orange_ phase" "Car_ delay_red" "Car_ orange" Symbol information M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian T2 Car_orange_phase Duration of orange phase for cars T4 Car_delay_red Delay red phase for cars Q0.6 Car_orange Orange for cars Network: 5 Red phase for cars "Pedestria n_light" "Car_ orange_ phase" "Car_red" Symbol information M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian T2 Car_orange_phase Duration of orange phase for cars Q0.5 Car_red Red for cars Network: 6 Start timer for pedestrian green phase "Car_red" SD "Ped_ green_ phase" S5T#10S Symbol information Q0.5 Car_red Red for cars T3 Ped_green_phase Duration of green phase for pedestrians SIMATIC ZEn01_09_STEP7__Zebra\ 2006 08 05 20:04:01 SIMATIC 300(1)\CPU314(1)\ .\FC1 - <offline> Page 3 of 4 Network: 7 Green phase for pedestrians "Car_red" "Ped_ green_ phase" "Ped_ green" Symbol information Q0.5 Car_red Red for cars T3 Ped_green_phase Duration of green phase for pedestrians Q0.1 Ped_green Green for pedestrians Network: 8 Start timer for orange phase delay for cars "Pedestria n_light" "Ped_ green_ phase" SD "Car_ delay_red" S5T#6S Symbol information M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian T3 Ped_green_phase Duration of green phase for pedestrians T4 Car_delay_red Delay red phase for cars Network: 9 Red phase for pedestrians "Pedestria n_light" "Car_ orange_ phase" "Ped_ green_ phase" "Pedestria n_light" "Ped_red" Symbol information M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian T2 Car_orange_phase Duration of orange phase for cars T3 Ped_green_phase Duration of green phase for pedestrians Q0.0 Ped_red Red for pedestrians Network: 10 Start timer for red/orange phase for cars "Pedestria n_light" "Car_ delay_red" SD "Car_red_ orange_ phase" S5T#3S SIMATIC ZEn01_09_STEP7__Zebra\ 2006 08 05 20:04:01 SIMATIC 300(1)\CPU314(1)\ .\FC1 - <offline> Page 4 of 4 Symbol information M0.0 Pedestrian_light Memory bit for switching trafficlight on request for green by a pedestrian T4 Car_delay_red Delay red phase for cars T5 Car_red_orange_phase Duration of red/orange phase for cars Network: 11 Start timer for green request delay "Car_ green" SD "Ped_ delay_ green" S5T#1S Symbol information Q0.7 Car_green Green for cars T6 Ped_delay_green Delay next green request for pedestrians . cars "Pedestria n _light& quot; "Car_ green" Symbol information M0.0 Pedestrian _light Memory bit for switching traffic light on request for. "Pedestria n _light& quot; SD "Car_ orange_ phase" S5T#3S Symbol information M0.0 Pedestrian _light Memory bit for switching traffic light on request