Sei sulla pagina 1di 2

Totally Integrated

Automation Portal

semaforo duplo / PLC_1 [CPU 1214C DC/DC/DC] / Program blocks


Main_1 [OB1]
Main_1 Properties
General
Name Main_1 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_1
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:

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


"start" "stop" "selo"

%M0.0
"selo"

Network 2:

%DB1
"T1"
%M0.0 %M0.1 TON %M0.1
"selo" "RESETA_T1" Time "RESETA_T1"
IN Q
T#18S PT %MD10
ET "tempo"

Network 3: semaforo 1 SAIDAS

%Q0.0
%MD10 %MD10 "lampada
"tempo" "tempo" vermelha_s1"
> <=
Time Time
T#0s T#9s

%Q0.1
%MD10 %MD10 "lampada
"tempo" "tempo" verde_s1"
> <=
Time Time
T#9s T#12500ms

%MD10 %MD10
"tempo" "tempo"
>= <=
Time Time
T#13s T#13500ms

%MD10 %MD10
"tempo" "tempo"
>= <=
Time Time
T#14s T#14500ms

%Q0.2
%MD10 "lampada
"tempo" amarela_s1"
>
Time
T#15s

Network 4: semaforo 2 SAIDAS


Totally Integrated
Automation Portal

%Q0.3
%MD10 %MD10 "lampada
"tempo" "tempo" verde_s2"
> <=
Time Time
T#0s T#3500ms

%MD10 %MD10
"tempo" "tempo"
>= <=
Time Time
T#4s T#4500ms

%MD10 %MD10
"tempo" "tempo"
>= <=
Time Time
T#5s T#5500ms

%Q0.4
%MD10 %MD10 "lampada
"tempo" "tempo" amarela_s2"
> <=
Time Time
T#6s T#9s

%Q0.5
%MD10 "lampada
"tempo" vermelha-s2"
>
Time
T#9s

Potrebbero piacerti anche