Sie sind auf Seite 1von 5

SIMATIC

ZEn01_09_STEP7__Zebra\ SIMATIC 300(1)\CPU314(1)\...\OB1- <offline>

2006 08 05 20:03:59

OB1 - <offline>
"" Name: Author: Family: Version: 0.1 Block version: 2 Time stamp Code: 1997 08 13 16:10:03 Interface: 1997 06 09 13:12:37 Lengths (block/logic/data): 00130 00018 00022

Name TEMP OB1_EV_CLASS OB1_SCAN_1 OB1_PRIORITY OB1_OB_NUMBR OB1_RESERVED_1 OB1_RESERVED_2 OB1_PREV_CYCLE OB1_MIN_CYCLE OB1_MAX_CYCLE OB1_DATE_TIME

Data Type

Address 0.0

Comment

Byte Byte Byte Byte Byte Byte Int Int Int Date_And_Time

0.0 1.0 2.0 3.0 4.0 5.0 6.0 8.0 10.0 12.0

Bits 0-3 = 1 (Coming 1 (Cold restart

event),

Bits 4-7 = 1 (Event

class

1)

scan 1 of OB 1), 3 (Scan

2-n of OB 1)

1 (Priority

of 1 is lowest) block 1, OB1)

1 (Organization Reserved Reserved Cycle Minimum Maximum

for system for system OB1 scan (milliseconds)

time of previous cycle cycle

time of OB1 (milliseconds) time of OB1 (milliseconds)

Date and time OB1 started

Block: OB1

Network: 1

Call FC1 for traffic light control

EN

FC1 ENO

Page 1 of 1

SIMATIC

ZEn01_09_STEP7__Zebra\ SIMATIC 300(1)\CPU314(1)\...\FC1- <offline>

2006 08 05 20:04:01

FC1 - <offline>
"" Name: Author: Family: Version: 0.0 Block version: 1 Time stamp Code: 1997 08 13 16:10:03 Interface: 1997 06 09 13:12:37 Lengths (block/logic/data): 00220 00108 00000

Name IN OUT IN_OUT TEMP RETURN RET_VAL

Data Type

Address 0.0 0.0 0.0 0.0 0.0 0.0

Comment

Block: FC1

Sample program TRAFFIC LIGHT

Network: 1

Determining green request for pedestrians "Ped_ delay_ green" "Car_red_ orange_ phase"

"Switch_ right"

"Pedestria n_light"

"Switch_ left"

"Pedestria n_light"

Symbol information I0.0 Switch_right I0.1 Switch_left T6 Ped_delay_green M0.0 Pedestrian_light T5 Car_red_orange_phase

Switch on the right side of the street Switch on the left side of the street Delay next green request for pedestrians Memory bit for switching traffic light on request for green by a pedestrian Duration of red/orange phase for cars

Network: 2 "Pedestria n_light"

Green phase for cars "Car_ green"

Symbol information M0.0 Pedestrian_light Q0.7 Car_green

Memory bit for switching traffic light on request for green by a pedestrian Green for cars

Page 1 of 4

SIMATIC

ZEn01_09_STEP7__Zebra\ SIMATIC 300(1)\CPU314(1)\...\FC1- <offline>

2006 08 05 20:04:01

Network: 3

Start timer for orange phase for cars "Car_ orange_ phase" SD S5T#3S

"Pedestria n_light"

Symbol information M0.0 Pedestrian_light T2 Car_orange_phase

Memory bit for switching traffic light on request for green by a pedestrian Duration of orange phase for cars

Network: 4

Orange phase for cars "Car_ orange_ phase"

"Pedestria n_light"

"Car_ orange"

"Car_ delay_red"

Symbol information M0.0 Pedestrian_light T2 Car_orange_phase T4 Car_delay_red Q0.6 Car_orange

Memory bit for switching traffic light on request for green by a pedestrian Duration of orange phase for cars Delay red phase for cars Orange for cars

Network: 5

Red phase for cars "Car_ orange_ phase"

"Pedestria n_light"

"Car_red"

Symbol information M0.0 Pedestrian_light T2 Car_orange_phase Q0.5 Car_red

Memory bit for switching traffic light on request for green by a pedestrian Duration of orange phase for cars Red for cars

Network: 6

Start timer for pedestrian green phase "Ped_ green_ phase" SD S5T#10S

"Car_red"

Symbol information Q0.5 Car_red T3 Ped_green_phase

Red for cars Duration of green phase for pedestrians

Page 2 of 4

SIMATIC

ZEn01_09_STEP7__Zebra\ SIMATIC 300(1)\CPU314(1)\...\FC1- <offline>

2006 08 05 20:04:01

Network: 7

Green phase for pedestrians "Ped_ green_ phase"

"Car_red"

"Ped_ green"

Symbol information Q0.5 Car_red T3 Ped_green_phase Q0.1 Ped_green

Red for cars Duration of green phase for pedestrians Green for pedestrians

Network: 8

Start timer for orange phase delay for cars "Ped_ green_ phase"

"Pedestria n_light"

"Car_ delay_red" SD S5T#6S

Symbol information M0.0 Pedestrian_light T3 Ped_green_phase T4 Car_delay_red

Memory bit for switching traffic light on request for green by a pedestrian Duration of green phase for pedestrians Delay red phase for cars

Network: 9

Red phase for pedestrians "Car_ orange_ phase"

"Pedestria n_light"

"Ped_red"

"Ped_ green_ phase"

"Pedestria n_light"

Symbol information M0.0 Pedestrian_light T2 Car_orange_phase T3 Ped_green_phase Q0.0 Ped_red

Memory bit for switching traffic light on request for green by a pedestrian Duration of orange phase for cars Duration of green phase for pedestrians Red for pedestrians

Network: 10

Start timer for red/orange phase for cars "Car_red_ orange_ phase" SD S5T#3S

"Pedestria n_light"

"Car_ delay_red"

Page 3 of 4

SIMATIC

ZEn01_09_STEP7__Zebra\ SIMATIC 300(1)\CPU314(1)\...\FC1- <offline>

2006 08 05 20:04:01

Symbol information M0.0 Pedestrian_light Memory bit for switching traffic light 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 "Ped_ delay_ green" SD S5T#1S

"Car_ green"

Symbol information Q0.7 Car_green T6 Ped_delay_green

Green for cars Delay next green request for pedestrians

Page 4 of 4

Das könnte Ihnen auch gefallen