You are on page 1of 2

Totally Integrated

Automation Portal

DenGiaoThong2Chieu_C_PLC_LibCode_V16 / PLC_Libcode.net [CPU 1214C DC/DC/DC] / Program blocks


Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Automatic
Information
Title "Main Program Sweep (Cy‐ Author Comment Family
cle)"
Version 0.1 User-defined ID

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

Network 1: ON

%I0.0 %M2.0
"ON_OFF" "RUN"
S

Network 2: OFF

%I0.0 %M2.0
"ON_OFF" "RUN"
R

Network 3: Timer Light

%DB1
"Timer_Light"
%M2.0 TON
"RUN" "Timer_Light".Q Time
IN Q
T#60S PT ET T#0ms

Network 4: 1

%M2.0 %Q0.0
"RUN" "Timer_Light".ET "Light_Green_1"
<
Time
T#25S

%Q0.2
"Timer_Light".ET "Timer_Light".ET "Light_Yellow_1"
> <
Time Time
T#25S T#30S

%Q0.1
"Timer_Light".ET
"Light_Red_1"
>
Time
T#30S

Network 5: 2
Totally Integrated
Automation Portal

%M2.0 %Q0.4
"Timer_Light".ET
"RUN" "Light_Red_2"
<
Time
T#30S

%Q0.3
"Timer_Light".ET "Timer_Light".ET "Light_Green_2"
> <
Time Time
T#30S T#55S

%Q0.5
"Timer_Light".ET "Light_Yellow_2"
>
Time
T#55S

You might also like