You are on page 1of 3

Totally Integrated

Automation Portal

Lab 4 / PLC_1 [CPU 1512C-1 PN] / Program blocks


Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Automatic
Information
Title PLC LAB 4 Author Comment Lab 4 : Implementation of Family
LADDER Logic for Timer Op‐
erations on PLC using TIA
Portal.
Version 0.1 User-defined ID

Main
Name Data type Default value Supervision Comment
Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant

Network 1: Task 1
A ladder logic program to start a motor with 20sec delay after the start push button is pressed.

%DB2
"IEC_Timer_0_
DB_1"

%M1.0 TON %M1.4


"Tag_5" Time "Motor"
IN Q
T#20s PT ET ...

Network 2: Task 2
A program to stop motor used in task 1 after 30sec.

%DB3
"IEC_Timer_0_ %DB1
DB_2" "IEC_Timer_0_DB"
%M1.2 TON TP %M1.3
"Tag_7" Time Time "Tag_8"
IN Q IN Q
T#20s PT ET ... T#10s PT ET ...

Network 3: Task3
Using a push button reset both timers used in task 1 & task 2 using TR assignment.

%DB2
%M1.6 "IEC_Timer_0_
"Tag_13" DB_1"
RT

%DB3
"IEC_Timer_0_
DB_2"
RT

Network 4: Task 4
Write running light circuit program in which 10 LEDs turn on and off
sequentially with 5 sec delays.
Totally Integrated
Automation Portal

%DB4
"IEC_Timer_0_
DB_3"

%M2.0 %M5.1 TP %M4.0


"Tag_4" "LED 10" Time "LED 1"
IN Q N
T#5s PT ET ... %M2.1
"Tag_11"

%DB5
"IEC_Timer_0_
DB_4"

%M4.0 TP %M4.1
"LED 1" Time "LED 2"
IN Q N
T#5s PT ET ... %M2.3
"Tag_16"

%DB6
"IEC_Timer_0_
DB_5"

%M4.1 TP %M4.2
"LED 2" Time "LED 3"
IN Q N
T#5s PT ET ... %M2.4
"Tag_17"

%DB7
"IEC_Timer_0_
DB_6"

%M4.2 TP %M4.3
"LED 3" Time "LED 4"
IN Q N
T#5s PT ET ... %M2.5
"Tag_18"

%DB8
"IEC_Timer_0_
DB_7"

%M4.3 TP %M4.4
"LED 4" Time "LED 5"
IN Q N
T#5s PT ET ... %M2.6
"Tag_19"

%DB9
"IEC_Timer_0_
DB_8"

%M4.4 TP %M4.5
"LED 5" Time "LED 6"
IN Q N
T#5s PT ET ... %M2.7
"Tag_20"

%DB10
"IEC_Timer_0_
DB_9"

%M4.5 TP %M4.6
"LED 6" Time "LED 7"
IN Q N
T#5s PT ET ... %M3.0
"Tag_21"

%DB11
"IEC_Timer_0_
DB_10"

%M4.6 TP %M4.7
"LED 7" Time "LED 8"
IN Q N
T#5s PT ET ... %M3.1
"Tag_22"

%DB12
"IEC_Timer_0_
DB_11"

%M4.7 TP %M5.0
"LED 8" Time "LED 9"
IN Q N
T#5s PT ET ... %M3.2
"Tag_23"

%DB13
"IEC_Timer_0_
DB_12"

%M5.0 TP %M5.1
"LED 9" Time "LED 10"
IN Q N
T#5s PT ET ... %M3.3
"Tag_25"

Network 5: Task 5
A ladder logic program to control the traffic flow during the road underwork. If the traffic light system is switched on both traffic light must
initially indicate red for 10 sec. Then both of the traffic lights will indicate Green for 5sec reciprocally, after every mutual phase of Red. When the traffic light signal is
switched off with pish button both traffic lights must indicate Red for 10sec.
Totally Integrated
Automation Portal

%DB20 %DB14
"IEC_Timer_0_ "IEC_Timer_0_
DB_19" DB_13"

%M6.0 TON %M6.4 TP %M6.0 %M6.3


"Tag_26" Time "Red 2" Time "Tag_26" "Red 1"
IN Q IN Q N
T#10s PT ET ... T#5s PT ET ... %M6.6
"Tag_32"

%M7.7
"Green 2"

%DB15
"IEC_Timer_0_
DB_14"

%M6.3 TP %M6.0 %M6.4


"Red 1" Time "Tag_26" "Red 2"
IN Q N
T#5s PT ET ... %M6.7
"Tag_33"

%DB18
"IEC_Timer_0_ %M7.1
DB_17" "Green 1"
%M6.0 TP %M6.3
"Tag_26" Time "Red 1"
P IN Q S
%M100.0 T#10s PT ET ...
"Tag_39"
%M6.4
"Red 2"
%M6.0 S
"Tag_26"
N
%M100.1
"Tag_40"

You might also like