Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Totally Integrated

Automation Portal

Control_de_habitacion / PLC_1 [CPU 1214C AC/DC/Rly] / 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: inicio

%I0.0 %I0.0 %M0.0


"Tag_1" "Tag_1" "Tag_2"
P
%M0.2
"Tag_5"

%M0.0 %M0.1 %M0.1


"Tag_2" "Tag_4" "Tag_4"

%M0.0 %M0.1
"Tag_2" "Tag_4"

Network 2: inicio motor

%M0.1 %Q0.0
"Tag_4" "Tag_3"

"timerlamparade
s".Q

%DB1
"Timermotor"
%M0.1 TON
"Tag_4" Time
IN Q
T#3s PT ET T#0ms

Network 3: encendio-apagado

%M0.3
"Tag_6" %Q0.1
"Timermotor".Q SR "Tag_7"
S Q

%M0.6 "timersalidamoto
"Tag_9" r".Q
R1

Network 4:

%I0.0 %M0.6
"Tag_1" "Tag_9"

Network 5: apagado motor


Totally Integrated
Automation Portal

%DB2
"timersalidamoto
r"

%M0.1 TON
"Tag_4" Time
IN Q
T#10s PT ET T#0ms

Network 6:

%DB4
"timerlamparade
s"

%M0.1 TOF
"Tag_4" Time
IN Q
T#5s PT ET T#0ms

You might also like