s7-1200 Pid 3step CN

You might also like

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

Cover

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”,

STEP 7 Basic V11 (Error! Reference source not found.)


11.1.3.2
STEP 7 V11
Siemens AG 2012

PID 3Step 3
1.0 62154322 9
2
2.2

2.2
HMI “PID_3Step”3

2-2

6
Siemens AG 2012

KTP 1000 Basic WinCC V11 Basic


HMI

“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”

S7-1200 (Error! Reference source not found.) 9.2.2


Siemens AG 2012

STEP 7 Basic V11 (Error! Reference source not found.)


11.1.3.1

PID

PID 3Step 3
1.0 62154322 11
2
2.3

2.3

2-1

SIMATIC HMI KTP1000 1 6AV6647-0AF11-3AX0 WinCC


BASIC COLOR PN V11 Basic Runtime
)
CSM 1 6GK7277-1AA10-0AA0
1277
SIMATIC S7-1200 1 6EP1332-1SH71
PM1207
CPU 1211C DC/DC/ 1 6ES7211-1HD30-0XB0 V2.2 (Error!
6DI/4DO/2AI Reference source not
found.)

2A

3 1

0 10 V
1
Siemens AG 2012

IPX8

0 100
SB1231 1 AI 1 6ES7231-4HA30-0XB0 0 20 mA
12

SB 1231 RTD 1 6ES7231-5PA30-0XB0

SB 1231 TC, 1 AI 1 6ES7231-5QA30-0XB0


1
3 6XV1870-3QH20
RJ45/RJ45
2M
1 5SX2116-6 1 B 16A
1 6ES5 710-8MA11 35mm

PID 3Step 3
12 1.0 62154322
2
2.3

2-2

SIMATIC STEP 7 1 6ES7822-0AA01-0YA0 - WinCC


Basic V11 - SP 2 (Error!
Reference source not
found.) Update 4
(Error! Reference
source not found.)
SIMATIC STEP 7 1 6ES7822-0AA01-0YE0
Basic Upgrade V11 STEP 7 Basic V10.5

2-3

62154322_S7-1200_PID_3Step_v1d0.zip < zip STEP 7


>
62154322_S7-1200_PID_3Step_de.pdf
Siemens AG 2012

PID 3Step 3
1.0 62154322 13
3
2.3

Error! Not a valid bookmark self-reference.

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.1.1 HMI [FC7]

3-2

“HMI” KTP 1000

3.1.2 Simulation_Main [FC1]

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

Cyclic interrupt [OB200]

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

Tcold Thot “Scale_Real2Real”

“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]

“simulate”=FALSE “Scale_Int2Real” “Input_PER”


“Feedback_PER” “ ” Input “ ” Feedback

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.2.2 PID_3Step_2 [FB1131]

STEP 7 V11 “PID_3Step”

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.2.3 Simulation_OB200 [FC2]

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

InputUP “ ” Open valve


InputDN “ ” Close valve
Input_PER PID_3Step
InputUP/InputDN
PER_on
Input_PER Input_PER TRUE
PER_max
PER_min
Real_max
Real_min
TransitTime
Cycle
Reset
“Real_min” “Real_max”
Output

“PER_min”
Output_PER
“PER_max”
HighLimit
LowLimit
Siemens AG 2012

“PER_on” “InputUP” “InputDN”


“PID_3Step”3 “Input_PER”
“PID_3Step”

“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

Gain ( Input Disturbance)


Output Offset
(TimeLag1 s 1) (TimeLag 2 s 1) (TimeLag 3 s 1)
s=

“PROC_C” 10 PT1
(“TimeLag2” “TimeLag3” )

PID 3Step 3
24 1.0 62154322
3
3.2 [OB200]

Scale_ Real2Int [FC5]


“Scale_Real2Int”

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

±10V ±5V ±2.5V 0 20 mA

SM 1231 AI 8 x 13 6ES7231-4HF30-0XB0 ±10V ±5V ±2.5V 0 20 mA 12

SM 1234 AI 4 x 13 6ES7234-4HE30-0XB0 ±10V ±5V ±2.5V 0 20 mA 12


/ AO 2 x 14
SM 1231 AI 4 x 16 6ES7231-5ND30-0XB0 ±10V ±5V ±2.5V 0 20 mA 15
±1.25V 4 mA 20
mA

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

20.4 28.8 V 0.5 A


5 250 V 2A
Siemens AG 2012

4-5

CPU 1215C 1215C 0 20 mA 10

SB 1232 AO 1 x 12 6ES7232-4HA30-0XB0 ±10 V 12 0 20 mA 11


SM 1232 AO 2 x 14 6ES7232-4HB30-0XB0 ±10 V 14 0 20 mA 13
SM 1232 AO 4 x 14 6ES7232-4HD30-0XB0
SM 1234 AI 4 x 13 / 6ES7234-4HE30-0XB0
AO 2 x 14

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

CSM 1277 PM 1207 CPU 1211C

IP address 192.168.0.2 IP address 192.168.0.1


Subnet mask 255.255.255.0 Subnet mask 255.255.255.0

Q0.0 = Down Q0.1 = Up

AI2 = Feedback

High Limit = I0.1


Siemens AG 2012

Process value = AI1

s
Low Limit = I0.0
IP address 192.168.0.241
Subnet mask 255.255.255.0

4-6

1 S7-1200 Error! Reference


source not found.
2 S7-1200 2.3
3 S7-1200 (Error!
Reference source not
found.)
A ”

PID 3Step 3
28 1.0 62154322
4
4.2

4 SIMATIC PM 1207

4.2

4-7

1. S7-1200 S7-1200 IP S7-1200


Error! Reference source not found. (Error! Reference source not found.)
5.6.4

2. STEP 7 V11 (ap11) 2-3


3. “PID_CPU
Siemens AG 2012

4.

Error! Reference source not found.


CPU
CPU “Change device

S7-1200 (Error! Reference


source not found.) 5.3

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

(Actuator_H_ physical / Actuator_L_


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

S7-1200 (Error! Reference source not found.) 9.2.6 STEP 7


Basic V11 (Error! Reference source not found.) 11.1.3.2

4-9

10. CPU -> Technology objects -> PID_3Step


-> Configuration
Siemens AG 2012

11.

°C

Error! Reference source not found.

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

STOP-RUN S7 1200 CPU

PID 3Step 3
1.0 62154322 33
4
4.3

4.3

PID

S7-1200 (Error! Reference source not found.) 9.2.7 STEP 7


Basic V11 (Error! Reference source not found.) 11.1.3.2

4-10

1. CPU -> Technology objects -> PID_3Step -


> Commissioning
Siemens AG 2012

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

14. “Profinet “Profinet


Settings Profinet

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

15. “PID_HMI [KTP1000 Basic PN]

“Download to device
HMI
KTP1000

16. “Overwrite all

“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

19. “PID_HMI [KTP1000 Basic PN]

“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

F1 Error! Reference source not found. .


Siemens AG 2012

F2 Error! Reference source not found.

F3

F4


F5

F6

F7 Error! Reference source not found.

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

Error! Reference source not found.


Siemens AG 2012

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

Chien, Hrones, Reswick PID


Siemens AG 2012

Chien, Hrones, Reswick PI

PID
PID
PID
Ziegler-Nichols PID
Ziegler-Nichols PI
Ziegler-Nichols P

(Pretuning -> Inactive, Fine tuning


-> Automatic mode)
“CtrlParams”
“BackUp”

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_3Step” “VALVE” “PROC_C”

PID

“ManualEnable” = “True”
“Retain.Mode” “Retain.Mode” ,
“ManualEnable” = “True”

(“Error” = TRUE) “ErrorBits”

“Retain.Mode” “State”

S7-1200 (Error! Reference source not found.) 9.2.5


Siemens AG 2012

PID 3Step 3
52 1.0 62154322
5
5.3

5.3.5

5-14

Error! Reference source


not found.

(“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

\1\ S7-1200 http://support.automation.siemens.com/WW/view/e


n/36932465
\2\ CPU 2.2 http://support.automation.siemens.com/WW/view/e
n/41886031/133100
\3\ (HSP) 0026 http://support.automation.siemens.com/WW/view/e
n/54164095
\4\ STEP 7 Basic V11.0 SP2 http://support.automation.siemens.com/WW/view/e
n/57199536

\5\ STEP 7 V 11 Service Pack 2 http://support.automation.siemens.com/WW/view/e


n/56750498
\6\ STEP 7 V 11 SP2 Update 4 http://support.automation.siemens.com/WW/view/e
n/58112582
\7\ SIMATIC S7-1200 http://support.automation.siemens.com/WW/view/e
n/39710145

7
7-1
Siemens AG 2012

V1.0 08/2012

PID 3Step 3
1.0 62154322 55

You might also like