0% found this document useful (0 votes)
61 views5 pages

Traffic Light Method 2

The document describes a traffic light control system using a state machine with 9 networks. It includes details of the logic for each state including timers and outputs. Variable and block information is also included for the main routine along with empty routines for subroutines and interrupts.

Uploaded by

Saleem Ashraf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views5 pages

Traffic Light Method 2

The document describes a traffic light control system using a state machine with 9 networks. It includes details of the logic for each state including timers and outputs. Variable and block information is also included for the main routine along with empty routines for subroutines and interrupts.

Uploaded by

Saleem Ashraf
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

trafficlight method 2 / MAIN (OB1)

Block: MAIN
Author:
Created: 02/26/2018 [Link] pm
Last Modified: 02/26/2018 [Link] pm

Symbol Var Type Data Type Comment


TEMP
TEMP
TEMP
TEMP

Traffi c light
Network 1 Network Ti tle
Network Comment

T37 T37
/ IN TON

241 PT 100 ms

Network 2 North

T37 Q0.0
<=I S
50 1
Q0.7
R
1
Q0.1
R
1

Network 3 Tr. N-E

T37 T37 Q0.1


>=I <=I S
51 60 1
Q0.5
S
1
Q0.0
R
1

1/5
trafficlight method 2 / MAIN (OB1)

Network 4 E... N-red, E-green 5sec

T37 T37 Q0.4


>=I <=I S
61 11 0 1
Q0.1
R
1
Q0.5
R
1

Network 5 E-S... Yello w

T37 T37 Q0.5


<=I >=I S
120 111 1
Q0.3
S
1
Q0.4
R
1

Network 6 S... E red... S... G5sc

T37 T37 Q0.2


>=I <=I S
121 170 1
Q0.5
R
1
Q0.3
R
1

2/5
trafficlight method 2 / MAIN (OB1)

Network 7 Tr. S-W

T37 T37 Q0.3


<=I >=I S
180 171 1
Q0.7
S
1
Q0.2
R
1

Network 8 W

T37 T37 Q0.6


>=I <=I S
181 230 1
Q0.3
R
1
Q0.7
R
1

Network 9

T37 T37 Q0.7


>=I <=I S
231 240 1
Q0.1
S
1
Q0.6
R
1

3/5
trafficlight method 2 / SBR_0 (SBR0)

Block: SBR_0
Author:
Created: 02/26/2018 [Link] pm
Last Modified: 02/26/2018 [Link] pm

Symbol Var Type Data Type Comment


EN IN BOOL
IN
IN_OUT
OUT
TEMP

SUBROUTINE COMMENTS
Network 1 Network Ti tle
Network Comment

4/5
trafficlight method 2 / INT_0 (INT0)

Block: INT_0
Author:
Created: 02/26/2018 [Link] pm
Last Modified: 02/26/2018 [Link] pm

Symbol Var Type Data Type Comment


TEMP
TEMP
TEMP
TEMP

INTERRUPT ROUTINE COMMENTS


Network 1 Network Ti tle
Network Comment

5/5

You might also like