0% found this document useful (0 votes)
52 views3 pages

CHUONG TRINH TR M MPS / PLC (CPU 1512C-1 PN) / Program Blocks

This document contains a program for a PLC (CPU 1512C-1 PN) with 11 networks that control processes based on sensor readings. The program contains function blocks to scale sensor readings from analog inputs for level, flow, pressure, and temperature. It selects the appropriate scaled value to write to a parameter based on which process is selected. The last network initializes communications and sets the mode to automatic process control when a start button is pressed.

Uploaded by

Nguyễn Hảo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views3 pages

CHUONG TRINH TR M MPS / PLC (CPU 1512C-1 PN) / Program Blocks

This document contains a program for a PLC (CPU 1512C-1 PN) with 11 networks that control processes based on sensor readings. The program contains function blocks to scale sensor readings from analog inputs for level, flow, pressure, and temperature. It selects the appropriate scaled value to write to a parameter based on which process is selected. The last network initializes communications and sets the mode to automatic process control when a start button is pressed.

Uploaded by

Nguyễn Hảo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Totally Integrated

Automation Portal

CHUONG TRINH TRẠM MPS / PLC [CPU 1512C-1 PN] / Program blocks
CYC_INT5 [OB35]
CYC_INT5 Properties
General
Name CYC_INT5 Number 35 Type OB Language FBD
Numbering Manual
Information
Title Author Comment Family
Version 0.1 User-defined ID

CYC_INT5
Name Data type Offset Default value Comment
Temp
OB35_EV_CLASS Byte 0.0
OB35_STRT_INF Byte 1.0
OB35_PRIORITY Byte 2.0
OB35_OB_NUMBR Byte 3.0
OB35_RESERVED_1 Byte 4.0
OB35_RESERVED_2 Byte 5.0
OB35_PHASE_OFFSET Word 6.0
OB35_RESERVED_3 Int 8.0
OB35_EXC_FREQ Int 10.0
OB35_DATE_TIME Date_And_Time 12.0
reset Bool 20.0
Constant

Network 1:

#reset
R
#reset

Network 2:

%FC100
"Tank"
... EN
%IW4:P
"AI_Level":P PER_IN
0.27 H1
0.035344 A1
%DB10.DBD46
%DB10.DBD72 "Parameter".
"Parameter".U1 U1 Ret_Val Scale_Level
0.026 H2
%DB10.DBW66
0.02873 A2 "Parameter".
%DB10.DBD76 Scale_
"Parameter".U2 U2 OUT LevelPVPER
0.006789 A3 %DB10.DBD50
%DB10.DBD80 "Parameter".
"Parameter".U3 U3 VOLT_IN Scale_LevelVolt
9.0 Vmax ENO

Network 3:

%FC120
"Scale_Normieren"
... EN
%IW6:P %DB10.DBD54
"AI_Flow":P ActualValue "Parameter".
10.0 maxValue ScaleValue Scale_Flow
0.0 minValue ENO

Network 4:

&
%M132.5
"Select_Cooler" %FC120
"Scale_Normieren"
%M133.5
"RC_Cooler" EN

%IW8:P %DB10.DBD58
"AI_Pres":P ActualValue "Parameter".
0.4 maxValue ScaleValue Scale_Pressure
0.0 minValue ENO

Network 5:
Totally Integrated
Automation Portal

>=1
%M132.5
"Select_Cooler" %FC120
"Scale_Normieren"
%M133.5
"RC_Cooler" EN

%IW8:P %DB10.DBD68
"AI_Pres":P ActualValue "Parameter".
6000.0 maxValue ScaleValue Scale_Rotation
0.0 minValue ENO

Network 6:

%FC120
"Scale_Normieren"
... EN
%IW10:P %DB10.DBD62
"AI_Temp":P ActualValue "Parameter".
100.0 maxValue ScaleValue Scale_Temp
0.0 minValue ENO

Network 7:

MOVE
%M134.0
"Select_Level" EN
%DB10.DBW44
%DB10.DBW66 "Parameter".
"Parameter". PVPER_
Scale_ OUT1 ActualValue
LevelPVPER IN ENO

Network 8:

MOVE

%DB10.DBW44
%M134.1 "Parameter".
"Select_Flow" EN PVPER_
OUT1 ActualValue
%IW6:P
"AI_Flow":P IN ENO

Network 9:

MOVE

%DB10.DBW44
%M134.2 "Parameter".
"Select_Pres" EN PVPER_
OUT1 ActualValue
%IW8:P
"AI_Pres":P IN ENO

Network 10:

MOVE

%DB10.DBW44
%M134.3 "Parameter".
"Select_Temp" EN PVPER_
OUT1 ActualValue
%IW10:P
"AI_Temp":P IN ENO

Network 11:
Totally Integrated
Automation Portal

>=1 %DB1
& %M14.5 "CONT_C_DB"
%I1.1 "Init_Bit" CONT_C
"S2" %M132.2
%M0.0 "RC_Stop" ... EN
"ControlPanel" COM_RST

>=1
%M134.0
"Select_Level"
%M134.1
"Select_Flow"
%M134.2
"Select_Pres" %M132.3
%M134.3 "RC_ManAuto" MAN_ON
"Select_Temp" PVPER_ON

>=1
%M134.0
"Select_Level"
%M134.1
"Select_Flow"
%M134.2
"Select_Pres"
%M134.3
"Select_Temp" P_SEL

>=1
%M134.0
"Select_Level"
%M134.1
"Select_Flow"
%M134.2
"Select_Pres"
%M134.3
"Select_Temp" I_SEL

false INT_HOLD
false I_ITL_ON
%M134.2
"Select_Pres" D_SEL
t#50ms CYCLE

%DB10.DBD8
"Parameter".W_
Setpoint SP_INT
0.0 PV_IN

%DB10.DBW44
"Parameter". %DB10.DBD4
PVPER_ "Parameter".Y_
ActualValue PV_PER LMN ManipulatedValue

%DB10.DBD24 %MW62
"Parameter".Y_ "RC_
Manual MAN LMN_PER ControlledValue"

%DB10.DBD12 QLMN_HLM false


"Parameter".Kp GAIN QLMN_LLM false
%DB10.DBD16 %DB10.DBD28
"Parameter".Ti TI "Parameter".P_
%DB10.DBD20 LMN_P comp
"Parameter".Td TD
%DB10.DBD32
t#0ms TM_LAG "Parameter".I_
0.0 DEADB_W LMN_I comp
100.0 LMN_HLM %DB10.DBD36
0.0 LMN_LLM "Parameter".D_
1.0 PV_FAC LMN_D comp
0.0 PV_OFF %DB10.DBD0
1.0 LMN_FAC "Parameter".X_
0.0 LMN_OFF PV ProcessValue
0.0 I_ITLVAL ER 0.0
0.0 DISV ENO

Network 12:

%DB43
"DB43"
PULSEGEN
%M134.3
"Select_Temp" EN

%DB10.DBD4
"Parameter".Y_
ManipulatedValue INV
T#10S PER_TM
T#1S P_B_TM
1.0 RATIOFAC
#reset STEP3_ON
#reset ST2BI_ON
& #reset MAN_ON
%I1.1 >=1 #reset POS_P_ON
"S2" %M132.2 #reset NEG_P_ON
%M0.0 "RC_Stop" #reset SYN_ON %Q0.1
"ControlPanel" COM_RST QPOS_P "EB4"
QNEG_P false
T#50MS CYCLE ENO

You might also like