Está en la página 1de 3

Totally Integrated

Automation Portal

P6 Consumo de una planta 3M3 (Timer-aritméticas) / PLC_1 [CPU 1212C AC/DC/Rly] / Bloques de programa
Main [OB1]
Main Propiedades
General
Nombre Main Número 1 Tipo OB Idioma KOP
Numeración Automático
Información
Título "Main Program Sweep (Cy‐ Autor Comentario Familia
cle)"
Versión 0.1 ID personaliza‐
do

Main
Nombre Tipo de datos Valor predet. Comentario
Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant
M1_P Real 7.5
M2_P Real 8.0
M3_P Real 4.5
1W Real 735.5
M1_V Real 400.0
M2_V Real 400.0
M3_V Real 230.0
M1_COS Real 0.85
M2_COS Real 0.82
M3_COS Real 0.85
RAIZ Real 1.732

Segmento 1: Motores
Totally Integrated
Automation Portal

%M0.0 %Q0.1
"PM" "MOTOR1"
S

%DB1
"T1"
%Q0.1 TON
"MOTOR1" Time
IN Q
T#10s PT ET T#0ms

%Q0.2
"T1".ET "MOTOR2"
>=
S
Time
T#5s

%Q0.3
"T1".ET "MOTOR3"
>=
S
Time
T#10s

%M0.2 %Q0.1
"SETA" "MOTOR1"
RESET_BF
3

%M0.1 %M50.0
"PP" "Tag_1"
S

%DB2
"T2"
%M50.0 TON
"Tag_1" Time
IN Q
T#10s PT ET T#0ms

%Q0.1
"T2".ET "MOTOR1"
>
R
Time
T#0MS

%Q0.2
"T2".ET "MOTOR2"
>=
R
Time
T#5s

%Q0.3
"T2".ET "MOTOR3"
>=
R
Time
T#10s
%M50.0
"Tag_1"
R

Segmento 2: Potencia absorbida

%Q0.3 MUL MUL MUL


"MOTOR3" Real Real Real
EN ENO EN ENO EN ENO
7.5 %MD404 8.0 %MD408 4.5 %MD412
#M1_P IN1 OUT "M1_P_W" #M2_P IN1 OUT "M2_P_W" #M3_P IN1 OUT "M3_P_W"
735.5 735.5 735.5
#"1W" IN2 #"1W" IN2 #"1W" IN2

Segmento 3: Intensidades
Totally Integrated
Automation Portal

%Q0.3 CALCULATE
"MOTOR3" Real
EN ENO

OUT := IN1/(IN4*IN2*IN3)

%MD404 %MD100
"M1_P_W" IN1 OUT "M1_I"
400.0
#M1_V IN2
0.85
#M1_COS IN3
1.732
#RAIZ IN4

CALCULATE
Real
EN ENO

OUT := IN1/(IN4*IN2*IN3)

%MD408 %MD200
"M2_P_W" IN1 OUT "M2_I"
400.0
#M2_V IN2
0.82
#M2_COS IN3
1.732
#RAIZ IN4

CALCULATE
Real
EN ENO

OUT := IN1/(IN4*IN2*IN3)

%MD412 %MD300
"M3_P_W" IN1 OUT "M3_I"
230.0
#M3_V IN2
0.85
#M3_COS IN3
1.732
#RAIZ IN4

%Q0.3 ADD
"MOTOR3" Auto (Real)
EN ENO
%MD100 %MD400
"M1_I" IN1 OUT "I_TOTAL"
%MD200
"M2_I" IN2
%MD300
"M3_I" IN3

Segmento 4: Potencia total

%Q0.3 ADD
"MOTOR3" Real
EN ENO
7.5 %MD416
#M1_P IN1 OUT "P_TOTAL_CV"
8.0
#M2_P IN2
4.5
#M3_P IN3

%Q0.3 ADD
"MOTOR3" Real
EN ENO
%MD404 %MD420
"M1_P_W" IN1 OUT "P_TOTAL_W"
%MD408
"M2_P_W" IN2
%MD412
"M3_P_W" IN3

Segmento 5: Potencia CV

%Q0.3
"MOTOR3" MOVE MOVE MOVE
EN ENO EN ENO EN ENO
7.5 %MD424 8.0 %MD428 4.5 %MD432
#M1_P IN OUT1 "M1_P_CV" #M2_P IN OUT1 "M2_P_CV" #M3_P IN OUT1 "M3_P_CV"

También podría gustarte