Professional Documents
Culture Documents
s7-1200 Pid 3step CN
s7-1200 Pid 3step CN
s7-1200 Pid 3step CN
PID 3Step 3
SIMATIC S7-1200
2012 8
http://support.automation.siemens.com/WW/view/en/62154322
!50203404!
http://support.automation.siemens.com/WW/view/en/50203404
http://www.siemens.com/forum-applications
Siemens AG 2012
PID 3Step 3
2 1.0 62154322
SIEMENS 1
SIMATIC
4
PID 3Step 3 5
PID_3Step
Internet 6
7
Siemens AG 2012
PID 3Step 3
1.0 62154322 3
/
“Podukthaftungsgesetz
“Wesentliche Vertragspflichten
Siemens AG 2012
PID 3Step 3
4 1.0 62154322
.................................................................................................................4
5
1 .................................................................................................................7
1.1 ...................................................................................................7
2 ...........................................................................................................8
2.1 .....................................................................................8
2.2 ...................................................................................10
2.3 ................................................................. 12
3 ...........................................................................................14
3.1 [OB1].......................................................................................15
3.1.1 HMI [FC7] .......................................................................................15
3.1.2 Simulation_Main [FC1] .................................................................. 15
3.2 [OB200] ............................................................................16
3.2.1 [FC4] ........................................................................................16
3.2.2 PID_3Step_2 [FB1131] .................................................................... 19
3.2.3 Simulation_OB200 [FC2] ................................................................. 20
4 .........................................................................................................26
4.1 ..........................................................................................26
4.1.1 ..........................................................................................26
Siemens AG 2012
4.1.2 ..........................................................................................27
4.2 ..........................................................................................29
4.3 ................................................................. 34
4.4 HMI ..................................................................................37
4.4.1 HMI .........................................................................................37
5 .........................................................................................................40
5.1 .................................................................................................40
5.2 ........................................................................ 41
5.2.1 ..........................................................................................41
5.2.2 ...................................................................................41
5.2.3 ..........................................................................................42
5.2.4 ..........................................................................................43
5.2.5 ...................................................................................44
5.2.6 ...................................................................................44
5.3 ............................................................................45
5.3.1 ...................................................................................45
5.3.2 ......................................................................................48
5.3.3 ..........................................................................................50
5.3.4 ..........................................................................................51
5.3.5 ..........................................................................................53
5.3.6 ..........................................................................................54
6 Internet ...........................................................................................55
PID 3Step 3
1.0 62154322 5
7 .........................................................................................................55
Siemens AG 2012
PID 3Step 3
6 1.0 62154322
1
1.1
1
1.1
1-1
80°C 20°C
Siemens AG 2012
2
80°C 20°C 20°C
80°C
3
1. UP
2. DOWN
3.
PID 3Step 3
1.0 62154322 7
2
2.1
2.1
STEP V11 V2.0 SIMATIC S7-1200 “PID_3Step”3
3
PID_Step V1.1
2-1
CPU 1211C
Siemens AG 2012
KTP1000 Basic PN
“PID_3Step”
KTP1000 Basic PN
PID_3Step
“ ”
Up /“ ” Down
PID 3
P
PID 3Step 3
8 1.0 62154322
2
2.1
PID_3Step
SIMATIC S7-1200 2
0 10 V
“PID_3Step”,
PID 3Step 3
1.0 62154322 9
2
2.2
2.2
HMI “PID_3Step”3
2-2
6
Siemens AG 2012
“PID_3Step”
PID 3Step 3
10 1.0 62154322
2
2.2
SIMATIC S7-1200 3
“PID_3Step”
KTP 1000 Basic 3
PID_3Step
PID_3Step
“PID_3Step” STEP V11 SIMATIC S7-1200
“PID_Compact” “PID_Compact” PID
“PID_Compact” HMI
“PID_Compact”
PID
PID 3Step 3
1.0 62154322 11
2
2.3
2.3
2-1
2A
3 1
0 10 V
1
Siemens AG 2012
IPX8
0 100
SB1231 1 AI 1 6ES7231-4HA30-0XB0 0 20 mA
12
PID 3Step 3
12 1.0 62154322
2
2.3
2-2
2-3
PID 3Step 3
1.0 62154322 13
3
2.3
3-1
Startup [OB100]
VALVE [FB101]
VALVE_DB [DB2]
HMI Scale_Real2Real
[FC7] [FC6]
Simulation_OB200
[FC2]
PROG_C [FB100]
PROG_C_DB [DB3]
Cyclic
interrupt
Main
[OB200] Scale_Real2Int
[OB1]
[FC5]
T =100 ms
Scale_Int2Real
[FC3]
Switch
[FC4]
Simulation_Main Scale_Int2Real
[FC1] [FC3]
Siemens AG 2012
PID_3Step_2 [FB1131]
PID_3Step [DB1]
[OB100]
[OB1] HMI
[OB200] 100 3
PID_3Step [DB1]
VALVE_DB [DB2]
PROG_C_DB [DB3]
[DB4]
[DB4]
PID 3Step 3
14 1.0 62154322
3
3.1 [OB1]
3.1 [OB1]
HMI Main
3-2
3-3
Siemens AG 2012
“Simulation_Main”
PID 3Step 3
1.0 62154322 15
3
3.2 [OB200]
3.2 [OB200]
“PID_3Step”3 OB
OB200 100 ms
OB
3-4
Simulation_OB200
Q0.1
IW64 Q0.0
I0.1 QW80
I0.0
IW66
Thot
Tcold
Siemens AG 2012
Error simulation
-32768
“ ”
“PID_3Step”3
= - PID
PLC “VALV”
“VALVE” “ ” Switch
“PROG_C” PT1
“Scale_Real2Int”
“ ” Switch -32768
3.2.1 [FC4]
“PID_3Step”3 PLC
“ ” Switch
PID 3Step 3
16 1.0 62154322
3
3.2 [OB200]
3-5
3-1
simulate FALSE =
TRUE =
Siemens AG 2012
Input_PER_physical
Actuator_H_physical
Actuator_L_physical
Feedback_PER_physical
Input PID_3Step
Input_PER PID_3Step
Actuator_H PID_3Step
Actuator_L PID_3Step
Feedback PID_3Step
Feedback_PER PID_3Step
PID 3Step 3
1.0 62154322 17
3
3.2 [OB200]
Scale_Int2Real [FC3]
“Scale_Int2Real”
3-6
Siemens AG 2012
3-2
Int
Int_max
Int_min
Real_max
Real_min
Real
“Int_max” “Int_min” “ ”
“PID_3Step”
PID 3Step 3
18 1.0 62154322
3
3.2 [OB200]
3-7
Siemens AG 2012
3-3
Setpoint PID
Input
Input_PER
Actuator_H
Actuator_L
Feedback
Feedback_PER
ManualEnable
ManualValue –
Manual_UP –
Manual_DN –
Reset
ScaledInput
ScaledFeedback
PID 3Step 3
1.0 62154322 19
3
3.2 [OB200]
Output_UP
Output_DN
Output_PER
State
Error
ErrorBits
“PID_3Step” “Cyclic interrupt” OB200
“PID_3Step” DB1 “ ” Technology objects
->“ DB ” Open DB editor
“PID_3Step”
3-8
Siemens AG 2012
3 STEP 7 V11
“PID_3Step” STEP 7
3-9
“Simulation_OB200”
PID 3Step 3
20 1.0 62154322
3
3.2 [OB200]
VALVE [FB101]
Scale_Real2Real [FC6]
PROC_C [FB100]
Scale_ Real2Int [FC5]
“Simulation_OB200” 3 “PID_3Step”
VALVE [FB101]
“VALVE”
3-10
Siemens AG 2012
PID 3Step 3
1.0 62154322 21
3
3.2 [OB200]
3-4
“PER_min”
Output_PER
“PER_max”
HighLimit
LowLimit
Siemens AG 2012
“PER_max” “PER_min”
“PID_3Step”
“Reset”
PID 3Step 3
22 1.0 62154322
3
3.2 [OB200]
Scale_Real2Real [FC6]
“Scale_Real2Real”
3-1
Siemens AG 2012
3-5
Input
IN_max
IN_min
OUT_max
OUT_min
Real
PT1
PID 3Step 3
1.0 62154322 23
3
3.2 [OB200]
PROC_C [FB100]
“PROC_C” PT3
3-2
3-6
Siemens AG 2012
Input
Disturbance
Offset
Gain
TimeLag1 1 TimeLag1=0.0
TimeLag2 2 TimeLag2=0.0
TimeLag3 3 TimeLag3=0.0
Cycle
Reset
Output
“PROC_C” 10 PT1
(“TimeLag2” “TimeLag3” )
PID 3Step 3
24 1.0 62154322
3
3.2 [OB200]
3-3
Siemens AG 2012
3-7
Real
Real_max
Real_min
Int_max
Int_min
Int
“Int_max” “Int_min”
“PID_3Step”
-32768
3-4
PID 3Step 3
1.0 62154322 25
4
4.1
4
4.1
CPU 1211C CPU 1211C 0 10V
S7-1200
“PID_3Step” S7-1200
4.1.1
“PID_3Step”
4-1
2x CPU 0 10V 10
SB 1231 AI 1 x 12 6ES7231-4HA30-0XB0 ±10V ±5V ±2.5V 0 20 mA 11
SM 1231 AI 4 x 13 6ES7231-4HD30-0XB0 12
Siemens AG 2012
4-2
/
SB 1231 AI 1 x 16 6ES7231-5QA30-0XB0 TC mV 0.1 °C/0.1 °F 15
TC
SM 1231 AI 4 x 6ES7231-5QD30-0XB0 TC mV 0.1 °C/0.1 °F 15
16 TC
SM 1231 AI 8 x 6ES7231-5QF30-0XB0 TC mV 0.1 °C/0.1 °F 15
16 TC
PID 3Step 3
26 1.0 62154322
4
4.1
4-3
/
SB 1231 AI 1 x 16 6ES7231-5PA30-0XB0 RTD 0.1 °C/0.1 °F 15
RTD
SM 1231 AI 4 x 6ES7231-5PD30-0XB0 RTD 0.1 °C/0.1 °F 15
RTD x 16
SM 1231 AI 8 x 6ES7231-5PF30-0XB0 RTD 0.1 °C/0.1 °F 15
RTD x 16
4.1.2
“PID_3Step”
S7-1200
4-4
4-5
SB = CPU
SM =
CPU 1212C
CPU 1214C/1215C 8
S7-1200 (Error!
Reference source not found.) A ”
1215C CPU 1231 AI 4 x 16 STEP 7 V11 SP2 Upd 4
0026 (Error! Reference source not
found.)
PID 3Step 3
1.0 62154322 27
4
4.1
4-1
L1
N
PE
DC24V+
DC24V-
KTP1000 Basic PN
AI2 = Feedback
s
Low Limit = I0.0
IP address 192.168.0.241
Subnet mask 255.255.255.0
4-6
PID 3Step 3
28 1.0 62154322
4
4.2
4 SIMATIC PM 1207
4.2
4-7
4.
PID 3Step 3
1.0 62154322 29
4
4.2
I/O
1231 AI 1 x 16 RTD
4-8
5. “PID_CPU
6. CPU 1231 AI 1 x
16 RTD
“I/O addresses I/O
80
81
Siemens AG 2012
1231 AI 1 x 16 RTD
IW80
7. OB200“Cyclic
interrupt
PID 3Step 3
30 1.0 62154322
4
4.2
8.
IW80 3 “switch
“Input_PER_physical
(Feedback_PER_ physical)
9.
4
Output_UP
Output_DN
Siemens AG 2012
PID 3Step 3
1.0 62154322 31
4
4.2
PID
“PID_3Step”
PID
4-9
11.
°C
12.
(Input_PER)
-120 120°C
PID 3Step 3
32 1.0 62154322
4
4.2
13.
ON/OFF
(Feedback_PER)
14.
PID
PID
“PID_3Step
Siemens AG 2012
15.
S7-1200
“Online/Download to device /
S7-1200 LED
“RUN
PID 3Step 3
1.0 62154322 33
4
4.3
4.3
PID
4-10
2. CPU
3.
4.
“up-down-up “down-up-
down
50%
PID 3Step 3
34 1.0 62154322
4
4.3
5.
“PID_3Step
PID
6.
7.
8. PID
Error! Reference source not found.
CPU
Siemens AG 2012
9.
“Fine tuning
10.
“Go to PID parameters
PID PID
“Upload PID parameters
PID
“PID_3Step
11.
PID 3Step 3
1.0 62154322 35
4
4.3
12. PID
“PID_3Step
“PID_3Step” PID
STOP
Siemens AG 2012
PID 3Step 3
36 1.0 62154322
4
4.4 HMI
4.4 HMI
4.4.1 HMI
KTP1000 IP
Error! Reference source not found.
4-11
13. “Control
Panel
Siemens AG 2012
IP
– IP = 192.168.0.2
– = 255.255.255.0
“OK
PID 3Step 3
1.0 62154322 37
4
4.4 HMI
HMI KTP1000
CSM1277 PG/PC HMI
4-12
“Download to device
HMI
KTP1000
“Load
17. KTP1000
“Transfer
Siemens AG 2012
18.
“Finish
PID 3Step 3
38 1.0 62154322
4
4.4 HMI
PC
PG/PC PC
4-13
“Start simulation
Siemens AG 2012
PID 3Step 3
1.0 62154322 39
5
5.1
5
5.1
5-1
12
Siemens AG 2012
–
–
–
–
–
–
HMI
CPU HMI
PID 3Step 3
40 1.0 62154322
5
5.2
5.2
5-2
Home
5.2.1
5-3
Siemens AG 2012
“PID_3Step (S7-1200)” F1 F4
“Support” F5 F8
5.2.2
PID 3Step 3
1.0 62154322 41
5
5.2
5-4
F8
F1
5.2.3
Siemens AG 2012
5-5
F3
PID 3Step 3
42 1.0 62154322
5
5.2
5.2.4
5-6
F3
F4
–
–
F5
F6
–
–
F8
PID 3Step 3
1.0 62154322 43
5
5.2
5.2.5
5-7
HMI
+/-
Siemens AG 2012
5.2.6
5-8
PID 3Step 3
44 1.0 62154322
5
5.3
CPU HMI
CPU
CPU
HMI
5.3
5-9
F4 “ ”
F6 “ ”
Error! Reference source not found.
PID 3Step 3
1.0 62154322 45
5
5.3
5.3.1
5-10
“ ”
“PID_3Step”
Siemens AG 2012
1 99°C
0 100 %
+/-5%
– >= 50%
– <50%
PID 3Step 3
46 1.0 62154322
5
5.3
“PID_3Step”
Error! Reference source not found.
“PID_3Step”
Error! Reference
source not found.
Siemens AG 2012
0 100%
“PID_3Step”
Error! Reference
source not found.
PID 3Step 3
1.0 62154322 47
5
5.3
70 90°C
10 30°C
5.3.2
5-11
Siemens AG 2012
“ ” 90
PID 3Step 3
48 1.0 62154322
5
5.3
1 99°C
0 100 %
+/-5%
0.0
Siemens AG 2012
70 90°C
10 30°C
10°C
10°C
PID 3Step 3
1.0 62154322 49
5
5.3
5.3.3
5-12
PID
PID
PID
Ziegler-Nichols PID
Ziegler-Nichols PI
Ziegler-Nichols P
PID 3Step 3
50 1.0 62154322
5
5.3
“BackUp”
(“CtrlParams”)
(“CtrlParams”)
“PID_3Step”
Error! Reference source not found.
5.3.4
5-13
Siemens AG 2012
“PID_3Step”
– (“Setpoint”)
– (“ManualEnable”)
–
(“ManualValue”)
–
(“Manual_UP” “Manual_DN”)
– (“Reset”)
PID 3Step 3
1.0 62154322 51
5
5.3
PID
“ManualEnable” = “True”
“Retain.Mode” “Retain.Mode” ,
“ManualEnable” = “True”
“Retain.Mode” “State”
PID 3Step 3
52 1.0 62154322
5
5.3
5.3.5
5-14
(“Input”) (“Input_PER”)
Siemens AG 2012
–
– (“Feedback”)
– (“Feedback_PER”)
[“Output (digital)”]
(“Output_PER”)
“PID_3Step”
Error! Reference
source not found.
PID 3Step 3
1.0 62154322 53
5
5.3
5.3.6
5-15
“PID_3Step”
Siemens AG 2012
–
–
–
–
–
PLC Error! Reference
source not found.
PT1
PID 3Step 3
54 1.0 62154322
6 Internet
6 Internet
6-1
7
7-1
Siemens AG 2012
V1.0 08/2012
PID 3Step 3
1.0 62154322 55