SlideShare ist ein Scribd-Unternehmen logo
1 von 46
Downloaden Sie, um offline zu lesen
SIEMENS
Content
Pulse Width Modulation (PMW)
PID Controfler
Ctosed Loop Controlled System
Controller Bufid
Add Cyclic Interrupt OB
Add PID Controller
Compact and Expanded View
Formal Parameter - Input
Formal parameter- Output
Formal Parameter - Slate
Define Variable
Configuration
Input Scaling
Input Monitoring
Set PWM Hysteresis
Output Limits
Manual PID parameter
Variable for Warning Limits
Commissioning - Workflow
Commissioning
Commissioning - Kind of Commissioning
Commissioning - Online
PID Exercise ....................................................................................................................................
Exercise - PID Controller
Exercise 8-1: Add Ne~v Project with Hardware
Exercise 8-1: Setup PLC tags
Exercise 8-1: Add program and OB
Exercise 8-1: Add P]D Controller
Exercise 8-1: Parametefize PID Controller
Exercise 8-1: Scale the Inputs
Exercise 8-1: Download whole project
Exercise 8-1: Commissioning PID Controfler
Page
3
6
7
9
12
13
14
15
16
18
21
22
23
24
25
26
27
34
35
38
39
4O
42
43
44
45
46
47
SITRAIN Training for $7-1200 TIA System
Automation and Industrial Solutions Page 1 Pulse Width Modulation & PID Controller
PID Controller
Exercise PID
SITRAIN Training for $7-1200 TIA System
Automation and Industrial Solutions Page 2 Pulse Width Modulation & PID Controller
Pulse Width Modulation (PWM)
SIEMENS
CTRL_PWM Instruction
The CTRL_PWM Pulse Width Modulation (PWM) instruction provides a fixed cycle time output with a
variable duty cycle. The PWM output runs continuously after being started at the specified frequency
(cycle time). The pulse width is varied as required to effect the desired control. Duty cycle can be
expressed as a percentage of the cycle time (0 - 100%), as thousandths (0 - 1000), as ten thousandths
(0 - 10000), or as $7 analog format. The pulse width can vary from 0 (no pulse, always off) to full scale
(no pulse, always on).
Since the PWM output can be varied from 0 to full scale, it provides a digital output that in many ways is
the same as an analog output. For example, the PWM output can be used to control the speed of a motor
from stop to full speed, or it can be used to control position of a valve from closed to fully opened.
$7-1200 TIA System
SITRAIN Training for Page 3 Pulse Width Modulation & PID Controller
Automation and industrial Solutions
Pulse Width Modulation (PWM)
SIEMENS
Two pulse generators are available for controlling high-speed pulse output functions: PWM and Pulse
train output (PTO). PTO is used by the motion contro~ instructions. You can assign each pulse generator
to either PWM or PTO, but not both at the same time.
The two pulse generators are mapped to specific digital outputs as shown in the above table. You can
use onboard CPU outputs, oryou can use the optional signal board outputs. The output point numbers
are shown in the above table (assuming the default output configuration). If you have changed the output
point numbering, then the output point numbers will be those you assigned. Regardless, PTOI/PWM1
uses the first two digital outputs, and PTO2/PWM2 uses the next two digital outputs, either on the CPU or
on the attached signal board. Note that PWM requires only one output, while PTO can optionally use two
outputs per channel. If an output is not required for a pulse function, it is available for other uses.
$7-1200 TIA Syste[’n
SITRAIN Training for
Automation and Indus~al Solutions
Page 4 Pulse W~dth Modulation & PID Controller
PID Controller
SIEMENS
, Pulse Width Modulation (PWM)
¯ PID Controller
, Exercise PID
$7-1200 TIA System
SlTRAIN Training for Page 5 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
Closed Loop Controlled System
Controller
w e
actuator
Controller PWM
SIEMENS
Controlled
(disturbanCe)
z
Fan
High Speed Counter
A block diagram showing a PID closed loop control implementation where the measured feedback is
compared with the setpoint to determine the error. The error is then used by the PID loop algorithm to
adjust the PID output to eliminate the error.
$7-1200 TIA System
SITRAIN Training for Page 6 Pulse W~dth Modulation & PID Controller
Automation and Industrial Solutions
Closed Loop Controlled System
SIEMENS
actuator
(disturbance)
Z
Controlled
Controller PWM Fan
High Speed Counter
The PID controller is implemented in the 1200 CPU by the PID Compact instruction box located in the
Extended Instruction Task Card. This PID control loop will use-a PWM instruction and a High Speed
Counter instruction to control the speed of the fan motor on the training simulator.
$7-1200 TIA System
S TRAIN Tra n ng for Page 7 Pulse Width Modulation & PID Controller
Automation and ndustda~ Solutons
SIEMENS
Controller Build
PID Loop Controller
The PID Compact instruction provides the CPU 1200 user with a PID loop control algorithm that has
automati’~ and manual mode available along with self tuning optimization ¯ The pID_Compact instruction
box has inputs where the setpoint and process variable (actual value) are connected. The input
connections provide process data for the PID algorithm which then drives the output to the final element.
$7-1200 TIA System
Pulse Width Modulation & PID ControllerSITRAIN Train ng for Page 8
Automation and Industrial So utions
Controller Build
SIEMENS
The PiD Compact instruction is programmed in a Cyclic Interrupt OB for execution which executes at a
specifie~-cycle time. The cycle time can be viewed or changed in the prope[ties of the Cyclic Interrupt
OB. During the programming of the PID_Compact instruction a data block is created and automatically
placed in the Technological Object folder.
$7-1200 TIA System
SITRAIN Training for Page 9 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
Add Cyclic Interrupt OB
SIEMENS
Adding and configuring the Cyclic Interrupt OB through the Add new block prompt in the Program blocks
folder. When the Add new block dialog box opens, the OB button is selected followed by selecting the
Cyclic interrupt, the program language, the OB number, and cyclic execution time; click OK to complete
the configuration.
S7-1200 TIA System
S TRAIN Tra n ng for Page 10 Pulse W]dth Modulation & PID Controller
Automation and ndustdal So utons
Add PID Controller
SIEMENS
Open the Cyclic Interrupt OB to view the LAD networks, then open the Extended Instructions and drag
and drop the PID Compact instruction on to the open LAD network. A dialog box will open where an
instance data bloc-k will be configured and be attached to the pID_Compact instruction box.
$7-1200 TIA System
SlTRAIN Training for Page t 1 Pulse Width Modulation & PID Controller
Automat[on and Industrial Sotutlons
Compact and Expanded View
SIEMENS
PID Compact instruction box can be expanded or collapsed by clicking on the little arrow head at the
bottom of the PID_Compact instruction box. tn the expanded state, additional inputs/outputs are exposed
and connections can be made then the instruction box can be collapsed to conserve space.
$7-1200 TIA System
SlTRA~N Training for page 12 Pulse W~dth Modulation & PID Controller
Automation and Industrial Solutions
SIEMENS
input:
"Automatic Mode"
.= from the user program
Analog Input
:= "Manual mode"
~dable for °Manuat Mode"
restart counter
:= "inactive Mode"
The PID Compact instruction inputs not only provide connection points for the controlled process
setpoint-~nd measured feedback, it also provides an input connection to change the state of the
controller mode. 1he PID controller can be in manual mode, which is the default mode, or auto mode.
When the PID controller is in auto mode, the P[D controller automatically adjusts the loop output to
maintains the loop’s setpoint value, such as a desired temperature.
$7-1200 TIA System
SlTRAIN Training for Page 13 Pulse Width Modulation & PID Controller
Automation and Industrial So~utlons
The PID Compact instruction outputs not only provides a connection point for the controlled process final
element-~ut it also provides different types of output connections to match what it is driving, such as an
output for pWM or an output as a Real number data type. Limit and warning alarm bits can be
configured along with locations that record the mode of the controller and displays error codes in the
event of an error condition which makes troubleshooting easier.
$7-1200 TIA System
SITRAIN Training for Page 14 Pulse ~Mdth Modulation & PID Controller
Automation and Industrial Solutions
Formal Parameter - State
SIEMENS
The chart above shows the numerical codes that are displayed in the State output which describes the
Status of the PID controller. A memory location must be configured to State output in order for the
numerical codes to be displayed.
$7-1200 TIA System
SITRAIN Training for Page 15 Pulse W~dth Modulation & PID Controller
Automation and Industrial Solutions
SIEMENS
Define Variable
Symbolic programming provides an advantage, you will find the program much clearer and easier to read
if you use symbols (for example fan) instead of the absolute addresses. To allow the use of symbols, you
can enter a name, the absolute address, the data type and a comment for every address used. Once
you have defined a symbol, it can be used throughout the entire user program of a programmable
module; symbolic names are entered in the PLC tags folder.
$7-1200 TIA System
SlTRAIN Tra n ng for Page 16 Pulse Width Modulation & PID Controller
Automation and Industrial So u ons
Clicking on the Configuration button in the upper right hand corner of the pID_Compact instruction box
opens to the configuration topics such as Basic parameters, Input scaling, and Advanced settings which
stores the loop tuning parameters for the pID_Compact box instruction.
$7-1200 TIA System
SITRAIN Training for Page 17 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
SIEMENS
Input Scaling
Configuring the Input/Output fields in the dialog box is made easier by the following special features,
The Intellisence feature aids in configuration by providing a list of
Intellisense and automatic connection, slide
only valid possible connection variables (symbolic names) like the Input value input shown in the
above. The automatically connection feature then connects that symbolic variable to the correct input or
output of the pID_Compact box instruction.
$7-1200 TIA System
SITRAIN Training for Page 18 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
SIEMENS
Input Scaling
The input scaling takes the raw data value from the analog input signal such as 0 to 27648 or -27648 to
+27648 and assigns the desired engineering units. So that the value entered at the upper limit is now
associated with the max raw data value of 27648 and the value entered at the lower limit is nowassociated with the minimum raw data value of 0 or -27648. This is dependent on the type of analog
signal entering the analog card.
S7-1200 TIA System
SITRAIN Training for Page t9 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
Input Monitoring
SIEMENS
Numerical alarm warning points are entered into the input monitoring menu prompt and will be used to
set alarm bits that can be configured on the pID_Compact instruction box.
$7-1200 TIA System
SITRAIN Training for Page 20 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
Set PWM Hysteresis
SIEMENS
Edit the PWM limits menu prompt to enter the minimum on time and the minimum off time of the output
signal of the piD_Compact instruction. PID_Compact instruction will not change the signal Time-on or
the signal Time-off past these limits.
$7-1200 TIA System
SITRAIN Training for Page 21 Pulse W~dth Modulation & PID Controller
Automation and Industrial Solutions
Edit the Output limit menu prompt to enter an upper limit and a low limit for the PID_Compact instruction
to use in the function calculation.
$7-1200 TIA System
SITRAIN Train ng for Page 22 Pulse W~dth ModuLation & PID Controller
Automation and Industrial So utions
SIEMENS
If the PID tuning parameters are known, the PID tuning parameters values can be set manually through
this configuration dialog box and then the check box should be checked in order to utilize those
parameters, as shown in the slide. The PID tuning parameters can be determined by using the auto-tune
feature.
$7-’1200 TIA System
SITp~&.IN Training for Page 23 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
Optional warning alarm bit variable can be configured in the piD_Compact instruction box to provide
inputs to logic operation and/or drive animation on the HML
$7-1200 TIA System
SlTRA N Train ng for Page 24 Pulse Width Modulation & PID Controller
Automation and Indus dal So utions
SIEMENS
Commissioning - Workflow
¯ Download Projected controller +
technological object
¯ start commissioning
¯ start scope
, Run "Startup Tuning"
(turn-over tangent method)
¯ Run "Tuning in Run"
(Step response)
¯ Upload PiD-parameter
to project
¯ activate automatic mode
Set [oPID_compact-DB°’sRet’i-M°de] to mode 3
After the PID Compact instruction box has been configured and compiled, the program can be download
to the 1200 C-PU then tested through the Commissioning function as listed in the slide.
$7-1200 TIA System
SlTRAIN Training for Page 25 Pulse Width ModuLation & PID Controller
Automation and Indus~a! Solutions
Invoke the Commissioning function by clicking the Commissioning button in the upper right hand corner
of pID_Compact instruction box,
$7-1200 TIA System
SlTRAIN Training for Page 26 Pulse Width Modulation & PID Controller
Automation and In6ustda~ Solutions
The Scope has buttons where you can start/stop the measurement and the ability to select the sample
time in ms through the provided sample time field.
$7-1200 TIA System
SITRAIN Training for Page 27 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
The Commissioning scope has several very useful features such as fix scale.
$7-1200 TIA System
SITRA N Train ng for Page 28 Pulse W~dth Modulation & PID Controller
Automation and Indus dal So u ions
The Commissioning scope has several very useful features such as the tool to Zoom in.
S7-1200 TiA System
SITRAIN Training for Page 29 Pulse W~dth Modulation & PID Controller
AulornalJon and Industrial Solutions
The Commissioning scope has several ve~ useful features such as the too[ to Zoom out.
$7-1200 TIA System
SITRAIN Training for Page 30 Pulse V~dth Modulation & PID Controller
Automat(on and Industrial Solutions
SIEMENS
The Commissioning scope has several very useful features such as a window that displays the current
values.
$7-1200 TIA System
SITRAIN Training for Page 31 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
SIEMENS
Commissioning
The Commissioning Scope has several features such as the auto tuner function which calculates the PiD
loop tuning parameter then uploads them to the PID loop controller, Clicking the button in the
optimization window begins the process.
$7-1200 TIA System
SITRAIN Training for Page 32 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
Commissioning - Kind of Commissioning
SIEMENS
]he auto tuner creates a step change in the process them monitors the response of the process to
determine to determine the PID loop tuning parameters. The step change causes the process to oscillate
as illustrated in the graphic above and illustrated in the slides that follow.
$7-1200 TIA System
SITRAIN Training for Page 33 Pulse Width Modulation & PID Controller
Automation and Industda! Solutions
’ The auto tuner creates a step change in the process them monitors the response of the process to
determine the PID loop tuning parameters. After looking at the setpoint, input, and output, in the graph
you notice that the PID setpoint was changed and the PID input and PID output react to the change. A
progress bar displays the progress time until the function is completed.
$7-1200 TIA System
SITRAIN Training for Page 34 Pulse V~dth Modulation & PID Controller
Automation and In(~ustdal Solutions
"The step change causes the process to oscillate as illustrated in the graphic above.
$7-1200 TIA System
SlTRAIN Training for Page 35 Pulse W~dth Modulation & PID Controller
Automation and Industrial Solutions
SIEMENS
Commissioning - Online
The auto tuner calculates the PID tuning parameters then it stores them in PID_Compact data block that
has been associated with PID instruction.
$7-1200 TIA System
S TRA N Tra n ng for Page 36 Pulse V~dth Modulation & PID Controller
Automation and Indus dal So u ons
PID Exercise
SIEMENS
, Pulse Width Modulation (PWM)
,, PID Controller
¯ Exercise PID
$7-1200 TIA Systen~
SlTRAIN Training for
Automation and Industrial So~ulions
Page 37 Pulse W~dth Modulation & PID Controller
Exercise - PID Controller
SIEMENS
Hands-on
Let’s just do it ..... the lab for you
$7-1200 TIA System
SITRAIN Training for Page 38 Pulse V~dth Modulation & PID Controller
Automation and Industrial Solutions
Task
Process
Add new project
2.
3.
4.
5.
Click in the Task menu Project > New
Name the project ,,Project_exemise_PID_loop"
Start "Add new device"
Add "Unspecific CPU"
Detect (upload) "hardware configuration"
S7-’1200 TIA System
SITRAIN Training for Page 39 Pulse Width Modulation & PID Controller
Automation and Industrial Solutions
Task
ProceSs
Define variable
6.
Start Tag-Editor with a double click
7,
Set up the displayed tags.
$7-1200 TIA System
S TRAIN Tra n ng for Page 40 Pulse Width Modulation & PID Controller
Automation and ndustdal So u ions
Hands-on
Task
Process
Implement program code n Ma’n and add ’cycl’c OB’
9,
10.
11.
12,
13.
14.
15.
Open "Main" (OB1)
Add program code like displayed
Add new block out of the project tree
Select "cyclic interrupt OB"
Type in the name "cyclic interrupt._PID controlleF’
Give the OB the manual block number "300"
Define the scan time with "lOOms"
Hit the Checkbox "Add new and open"
SITRAIN Training for $7-1200 TIA System
Automatlon and Industrial Solutions Page 41 Pulse Width Modulation & PID Controller
Task
Process
Add PID Controller
16.
17.
18.
Add "PID_Compact" block out of the extended instructions
in the "cyclic interrupt_PID controller’ (OB300).
Give the "InstanceDB / Technological object" a name.
Add "Instance DB/Technological object" by hitting OK Button.
$7-1200 TIA System
SlTRAIN Training for
Automation and industrial Solutions
Page 42 Pulse W~dth Modulation & PID Controller
Task
Process
Parameterize the PID Controller
19.
20.
21.
22.
23.
24.
25.
26.
Mark the "PID_Compact" block
Select the point §basic settings"
Select as controller type "Temperature"
Select as unit "C°".
Activate the checkbox "Invert PID-Controller output."
Set the Set-point to "85."
Select "Input_PER" for the Input value and
type in the variable "heat_sensor" (IW66),
Select "OutpuLPER" for the Output value and
type in the variable "fan" (QWS0) an.
SITRAIN Training for $7-1200 TIA System
Automation and Industrial Solullons Page 43 Pulse Width Modulation & PID Controller
Exercise 8-1: Scale the Inputs
SIEMENS
Task Input scaling
Process 27.
28.
29.
30.
Select the point "input scaling".
Select for the Scaled upper value "100°C.’’
Select for the Scaled lower value "0°C."
Select for the analog/d{gital converter the values
"0" for the lower limit and "27648" for the upper limit.
SITRAIN Training for $7-1200 T]A System
Automation and Industrial Solutions Page 44 Pulse Width Modulation & PID Controller
SIEMENS
Exercise 8-1: Download whole project
Hands-o~}
Task Download the whole project
Process 31.
32.
"Save" the project.
Download "All" to the PLC
SITRAIN Training for S7-1200 TIA System
Automation and Industrial Solutions Page 45 Pulse Width Modulation & PID Controller
SIEMENS
Task Commissioning the PID Controller
Process 33.
34.
35.
36.
Start the "Commissioning"
Start the scope.
Select "Tuning in run" and hit the "Start tuning" button
After successful commissioning hit the button
"Upload PID parameters to project" and save the project.
SITRAIN Training for $7-1200 TIA System
Automation and industrial Solutions Page 46 Pulse Width Modulation & PID Controller

Weitere ähnliche Inhalte

Was ist angesagt?

2 s120 commissioning
2 s120 commissioning2 s120 commissioning
2 s120 commissioning
confidencial
 
Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011
Vahid RG-zadeh
 
Simatic getting-started-pcs7
Simatic getting-started-pcs7Simatic getting-started-pcs7
Simatic getting-started-pcs7
ionut grozav
 
CLP S7 300 E S7 400
CLP S7 300 E S7 400 CLP S7 300 E S7 400
CLP S7 300 E S7 400
confidencial
 
24109937 wincc flexible_kommunikation_ethernet_e
24109937 wincc flexible_kommunikation_ethernet_e24109937 wincc flexible_kommunikation_ethernet_e
24109937 wincc flexible_kommunikation_ethernet_e
Fercho Oe
 
BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)
BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)
BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)
Michael Smith
 
S7 300 stl_programming_manual
S7 300 stl_programming_manualS7 300 stl_programming_manual
S7 300 stl_programming_manual
Paulo Sérgio
 

Was ist angesagt? (20)

2 s120 commissioning
2 s120 commissioning2 s120 commissioning
2 s120 commissioning
 
Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011Simaticpcs7 stpcs71 complete_english_2011
Simaticpcs7 stpcs71 complete_english_2011
 
Simatic getting-started-pcs7
Simatic getting-started-pcs7Simatic getting-started-pcs7
Simatic getting-started-pcs7
 
S7 bas-15
S7 bas-15S7 bas-15
S7 bas-15
 
Ch1 2 kb_pcs7_v70_en
Ch1 2 kb_pcs7_v70_enCh1 2 kb_pcs7_v70_en
Ch1 2 kb_pcs7_v70_en
 
SIEMENS S7-300c.ppt
SIEMENS S7-300c.pptSIEMENS S7-300c.ppt
SIEMENS S7-300c.ppt
 
CLP S7 300 E S7 400
CLP S7 300 E S7 400 CLP S7 300 E S7 400
CLP S7 300 E S7 400
 
How to set up opc with simatic net
How to set up opc with simatic netHow to set up opc with simatic net
How to set up opc with simatic net
 
24109937 wincc flexible_kommunikation_ethernet_e
24109937 wincc flexible_kommunikation_ethernet_e24109937 wincc flexible_kommunikation_ethernet_e
24109937 wincc flexible_kommunikation_ethernet_e
 
BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)
BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)
BlackHat 2011 - Exploiting Siemens Simatic S7 PLCs (slides)
 
S7 300 stl_programming_manual
S7 300 stl_programming_manualS7 300 stl_programming_manual
S7 300 stl_programming_manual
 
S7-1200 easy_book
S7-1200 easy_bookS7-1200 easy_book
S7-1200 easy_book
 
Siemens s7 300 programming
Siemens s7 300 programming Siemens s7 300 programming
Siemens s7 300 programming
 
AAME ARM Techcon2013 005v02 System Startup
AAME ARM Techcon2013 005v02 System StartupAAME ARM Techcon2013 005v02 System Startup
AAME ARM Techcon2013 005v02 System Startup
 
Ch7 v70 scl_en
Ch7 v70 scl_enCh7 v70 scl_en
Ch7 v70 scl_en
 
Siemens s7 300 programming instruction
Siemens s7 300 programming instructionSiemens s7 300 programming instruction
Siemens s7 300 programming instruction
 
Siemens s7 300 module data manual
Siemens s7 300 module data manualSiemens s7 300 module data manual
Siemens s7 300 module data manual
 
3 diagnostic
3 diagnostic3 diagnostic
3 diagnostic
 
AAME ARM Techcon2013 003v02 Software Development
AAME ARM Techcon2013 003v02  Software DevelopmentAAME ARM Techcon2013 003v02  Software Development
AAME ARM Techcon2013 003v02 Software Development
 
20 what’s next
20 what’s next20 what’s next
20 what’s next
 

Andere mochten auch

treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
 treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama... treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
confidencial
 
10 blocos de organização
10   blocos de organização10   blocos de organização
10 blocos de organização
confidencial
 

Andere mochten auch (20)

01tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp0101tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp01
 
Fluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeFluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verde
 
Sitrain soluções sugeridasconversion s7 1200
Sitrain  soluções sugeridasconversion s7 1200 Sitrain  soluções sugeridasconversion s7 1200
Sitrain soluções sugeridasconversion s7 1200
 
treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
 treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama... treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
treinamentos em automacao e solucoes industriais s7 tia 2 simatic s7 porgama...
 
Stoe 04 p
Stoe 04 pStoe 04 p
Stoe 04 p
 
Ch2 v70 config_overview_en
Ch2 v70 config_overview_enCh2 v70 config_overview_en
Ch2 v70 config_overview_en
 
Sitrain introdução a ihm
Sitrain introdução a ihmSitrain introdução a ihm
Sitrain introdução a ihm
 
Apostila do treinamento profibus instalação
Apostila do treinamento profibus   instalaçãoApostila do treinamento profibus   instalação
Apostila do treinamento profibus instalação
 
Exs pbdlrt 4.7
Exs pbdlrt 4.7Exs pbdlrt 4.7
Exs pbdlrt 4.7
 
Funões dos botões para navegar telas
Funões dos botões para navegar telasFunões dos botões para navegar telas
Funões dos botões para navegar telas
 
Apostila informativos técnicos ps1-as1
Apostila informativos técnicos   ps1-as1Apostila informativos técnicos   ps1-as1
Apostila informativos técnicos ps1-as1
 
Exercises version 3.7_l_br2
Exercises version 3.7_l_br2Exercises version 3.7_l_br2
Exercises version 3.7_l_br2
 
10 blocos de organização
10   blocos de organização10   blocos de organização
10 blocos de organização
 
Ae02 system projecthandling
Ae02 system projecthandlingAe02 system projecthandling
Ae02 system projecthandling
 
Ae06 system plc_jobs
Ae06 system plc_jobsAe06 system plc_jobs
Ae06 system plc_jobs
 
Ae04 system messages
Ae04 system messagesAe04 system messages
Ae04 system messages
 
Ae11 system reporting
Ae11 system reportingAe11 system reporting
Ae11 system reporting
 
Gea 01 - condicionamento e neutralização alcoólica
Gea  01 - condicionamento e neutralização alcoólicaGea  01 - condicionamento e neutralização alcoólica
Gea 01 - condicionamento e neutralização alcoólica
 
Ae08 system vb_script
Ae08 system vb_scriptAe08 system vb_script
Ae08 system vb_script
 
Ae01 system overview
Ae01 system overviewAe01 system overview
Ae01 system overview
 

Ähnlich wie Sitrains7 1200pwmpid-150301123045-conversion-gate01

pdfslide.net_plc-and-scada-project-ppt.pdf
pdfslide.net_plc-and-scada-project-ppt.pdfpdfslide.net_plc-and-scada-project-ppt.pdf
pdfslide.net_plc-and-scada-project-ppt.pdf
PrafulPatel54
 

Ähnlich wie Sitrains7 1200pwmpid-150301123045-conversion-gate01 (20)

manuales y guías PLC siemens Simatic S7
manuales y guías  PLC siemens Simatic S7manuales y guías  PLC siemens Simatic S7
manuales y guías PLC siemens Simatic S7
 
Manuale Instatore User Manual
Manuale Instatore User ManualManuale Instatore User Manual
Manuale Instatore User Manual
 
Pf70 700 process_pi
Pf70 700 process_piPf70 700 process_pi
Pf70 700 process_pi
 
Plc presentation
Plc presentationPlc presentation
Plc presentation
 
car wash system
car wash systemcar wash system
car wash system
 
Simocode pro presentation for simodode dp customers share by voip.com.vn
Simocode pro presentation for simodode dp customers share by voip.com.vnSimocode pro presentation for simodode dp customers share by voip.com.vn
Simocode pro presentation for simodode dp customers share by voip.com.vn
 
PITOPS Industrial Process Control Software
PITOPS Industrial Process Control SoftwarePITOPS Industrial Process Control Software
PITOPS Industrial Process Control Software
 
PLC Intro
PLC IntroPLC Intro
PLC Intro
 
Amp bluac5 specsheet
Amp bluac5 specsheetAmp bluac5 specsheet
Amp bluac5 specsheet
 
Catálogo de PLC S7-200 SMART
Catálogo de PLC S7-200 SMART Catálogo de PLC S7-200 SMART
Catálogo de PLC S7-200 SMART
 
Programmable Logic Controllers
Programmable Logic ControllersProgrammable Logic Controllers
Programmable Logic Controllers
 
Pcu230 pi fan_controlwithpf400drives_rev_a
Pcu230 pi fan_controlwithpf400drives_rev_aPcu230 pi fan_controlwithpf400drives_rev_a
Pcu230 pi fan_controlwithpf400drives_rev_a
 
How do you use PID in PLC.docx
How do you use PID in PLC.docxHow do you use PID in PLC.docx
How do you use PID in PLC.docx
 
dokumen.tips_siemens-s7-300cppt jhjhbv .ppt
dokumen.tips_siemens-s7-300cppt jhjhbv .pptdokumen.tips_siemens-s7-300cppt jhjhbv .ppt
dokumen.tips_siemens-s7-300cppt jhjhbv .ppt
 
User Guide - PID
User Guide - PIDUser Guide - PID
User Guide - PID
 
pdfslide.net_plc-and-scada-project-ppt.pdf
pdfslide.net_plc-and-scada-project-ppt.pdfpdfslide.net_plc-and-scada-project-ppt.pdf
pdfslide.net_plc-and-scada-project-ppt.pdf
 
PPT+.pdf
PPT+.pdfPPT+.pdf
PPT+.pdf
 
PLC_1.ppt
PLC_1.pptPLC_1.ppt
PLC_1.ppt
 
Industrial Automation
Industrial AutomationIndustrial Automation
Industrial Automation
 
Siemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panelSiemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panel
 

Mehr von confidencial

Mehr von confidencial (20)

18 syntax rules v1.0
18 syntax rules v1.018 syntax rules v1.0
18 syntax rules v1.0
 
17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en17 demonstration server client system-v1.00_en
17 demonstration server client system-v1.00_en
 
15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en15 final steps of configuration v1.00_en
15 final steps of configuration v1.00_en
 
14 mass data engineering v1.00_en
14 mass data engineering v1.00_en14 mass data engineering v1.00_en
14 mass data engineering v1.00_en
 
13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en13 locking functions and operating modes v1.00_en
13 locking functions and operating modes v1.00_en
 
12 archiving system v1.00_en
12 archiving system v1.00_en12 archiving system v1.00_en
12 archiving system v1.00_en
 
11 customizing the os v1.00_en
11 customizing the os v1.00_en11 customizing the os v1.00_en
11 customizing the os v1.00_en
 
10 basics automatic mode control v1.00_en
10 basics automatic mode control v1.00_en10 basics automatic mode control v1.00_en
10 basics automatic mode control v1.00_en
 
09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en09 basics operating and monitoring v1.00_en
09 basics operating and monitoring v1.00_en
 
08 basics control functions v1.00_en
08 basics control functions v1.00_en08 basics control functions v1.00_en
08 basics control functions v1.00_en
 
07 connection to the process v1.00_en
07 connection to the process v1.00_en07 connection to the process v1.00_en
07 connection to the process v1.00_en
 
06 station and network configuration v1.00_en
06 station and network configuration v1.00_en06 station and network configuration v1.00_en
06 station and network configuration v1.00_en
 
05 project setup v1.00_en
05 project setup v1.00_en05 project setup v1.00_en
05 project setup v1.00_en
 
03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en03 requirements and functional process description v1.00_en
03 requirements and functional process description v1.00_en
 
02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en02 pcs 7 documentation and support v1.00 en
02 pcs 7 documentation and support v1.00 en
 
01 introduction v1.00_en
01 introduction v1.00_en01 introduction v1.00_en
01 introduction v1.00_en
 
00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en00 st pcs7-sys_v8.0_register 20 en
00 st pcs7-sys_v8.0_register 20 en
 
Sitrain visão geral do sistema tia portal
Sitrain visão geral do sistema tia portalSitrain visão geral do sistema tia portal
Sitrain visão geral do sistema tia portal
 
Sitrain tags do plc
Sitrain tags do plcSitrain tags do plc
Sitrain tags do plc
 
Sitrain step7basic 150301103500-conversion-
Sitrain step7basic 150301103500-conversion-Sitrain step7basic 150301103500-conversion-
Sitrain step7basic 150301103500-conversion-
 

Kürzlich hochgeladen

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Kürzlich hochgeladen (20)

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 

Sitrains7 1200pwmpid-150301123045-conversion-gate01

  • 1. SIEMENS Content Pulse Width Modulation (PMW) PID Controfler Ctosed Loop Controlled System Controller Bufid Add Cyclic Interrupt OB Add PID Controller Compact and Expanded View Formal Parameter - Input Formal parameter- Output Formal Parameter - Slate Define Variable Configuration Input Scaling Input Monitoring Set PWM Hysteresis Output Limits Manual PID parameter Variable for Warning Limits Commissioning - Workflow Commissioning Commissioning - Kind of Commissioning Commissioning - Online PID Exercise .................................................................................................................................... Exercise - PID Controller Exercise 8-1: Add Ne~v Project with Hardware Exercise 8-1: Setup PLC tags Exercise 8-1: Add program and OB Exercise 8-1: Add P]D Controller Exercise 8-1: Parametefize PID Controller Exercise 8-1: Scale the Inputs Exercise 8-1: Download whole project Exercise 8-1: Commissioning PID Controfler Page 3 6 7 9 12 13 14 15 16 18 21 22 23 24 25 26 27 34 35 38 39 4O 42 43 44 45 46 47 SITRAIN Training for $7-1200 TIA System Automation and Industrial Solutions Page 1 Pulse Width Modulation & PID Controller
  • 2. PID Controller Exercise PID SITRAIN Training for $7-1200 TIA System Automation and Industrial Solutions Page 2 Pulse Width Modulation & PID Controller
  • 3. Pulse Width Modulation (PWM) SIEMENS CTRL_PWM Instruction The CTRL_PWM Pulse Width Modulation (PWM) instruction provides a fixed cycle time output with a variable duty cycle. The PWM output runs continuously after being started at the specified frequency (cycle time). The pulse width is varied as required to effect the desired control. Duty cycle can be expressed as a percentage of the cycle time (0 - 100%), as thousandths (0 - 1000), as ten thousandths (0 - 10000), or as $7 analog format. The pulse width can vary from 0 (no pulse, always off) to full scale (no pulse, always on). Since the PWM output can be varied from 0 to full scale, it provides a digital output that in many ways is the same as an analog output. For example, the PWM output can be used to control the speed of a motor from stop to full speed, or it can be used to control position of a valve from closed to fully opened. $7-1200 TIA System SITRAIN Training for Page 3 Pulse Width Modulation & PID Controller Automation and industrial Solutions
  • 4. Pulse Width Modulation (PWM) SIEMENS Two pulse generators are available for controlling high-speed pulse output functions: PWM and Pulse train output (PTO). PTO is used by the motion contro~ instructions. You can assign each pulse generator to either PWM or PTO, but not both at the same time. The two pulse generators are mapped to specific digital outputs as shown in the above table. You can use onboard CPU outputs, oryou can use the optional signal board outputs. The output point numbers are shown in the above table (assuming the default output configuration). If you have changed the output point numbering, then the output point numbers will be those you assigned. Regardless, PTOI/PWM1 uses the first two digital outputs, and PTO2/PWM2 uses the next two digital outputs, either on the CPU or on the attached signal board. Note that PWM requires only one output, while PTO can optionally use two outputs per channel. If an output is not required for a pulse function, it is available for other uses. $7-1200 TIA Syste[’n SITRAIN Training for Automation and Indus~al Solutions Page 4 Pulse W~dth Modulation & PID Controller
  • 5. PID Controller SIEMENS , Pulse Width Modulation (PWM) ¯ PID Controller , Exercise PID $7-1200 TIA System SlTRAIN Training for Page 5 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 6. Closed Loop Controlled System Controller w e actuator Controller PWM SIEMENS Controlled (disturbanCe) z Fan High Speed Counter A block diagram showing a PID closed loop control implementation where the measured feedback is compared with the setpoint to determine the error. The error is then used by the PID loop algorithm to adjust the PID output to eliminate the error. $7-1200 TIA System SITRAIN Training for Page 6 Pulse W~dth Modulation & PID Controller Automation and Industrial Solutions
  • 7. Closed Loop Controlled System SIEMENS actuator (disturbance) Z Controlled Controller PWM Fan High Speed Counter The PID controller is implemented in the 1200 CPU by the PID Compact instruction box located in the Extended Instruction Task Card. This PID control loop will use-a PWM instruction and a High Speed Counter instruction to control the speed of the fan motor on the training simulator. $7-1200 TIA System S TRAIN Tra n ng for Page 7 Pulse Width Modulation & PID Controller Automation and ndustda~ Solutons
  • 8. SIEMENS Controller Build PID Loop Controller The PID Compact instruction provides the CPU 1200 user with a PID loop control algorithm that has automati’~ and manual mode available along with self tuning optimization ¯ The pID_Compact instruction box has inputs where the setpoint and process variable (actual value) are connected. The input connections provide process data for the PID algorithm which then drives the output to the final element. $7-1200 TIA System Pulse Width Modulation & PID ControllerSITRAIN Train ng for Page 8 Automation and Industrial So utions
  • 9. Controller Build SIEMENS The PiD Compact instruction is programmed in a Cyclic Interrupt OB for execution which executes at a specifie~-cycle time. The cycle time can be viewed or changed in the prope[ties of the Cyclic Interrupt OB. During the programming of the PID_Compact instruction a data block is created and automatically placed in the Technological Object folder. $7-1200 TIA System SITRAIN Training for Page 9 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 10. Add Cyclic Interrupt OB SIEMENS Adding and configuring the Cyclic Interrupt OB through the Add new block prompt in the Program blocks folder. When the Add new block dialog box opens, the OB button is selected followed by selecting the Cyclic interrupt, the program language, the OB number, and cyclic execution time; click OK to complete the configuration. S7-1200 TIA System S TRAIN Tra n ng for Page 10 Pulse W]dth Modulation & PID Controller Automation and ndustdal So utons
  • 11. Add PID Controller SIEMENS Open the Cyclic Interrupt OB to view the LAD networks, then open the Extended Instructions and drag and drop the PID Compact instruction on to the open LAD network. A dialog box will open where an instance data bloc-k will be configured and be attached to the pID_Compact instruction box. $7-1200 TIA System SlTRAIN Training for Page t 1 Pulse Width Modulation & PID Controller Automat[on and Industrial Sotutlons
  • 12. Compact and Expanded View SIEMENS PID Compact instruction box can be expanded or collapsed by clicking on the little arrow head at the bottom of the PID_Compact instruction box. tn the expanded state, additional inputs/outputs are exposed and connections can be made then the instruction box can be collapsed to conserve space. $7-1200 TIA System SlTRA~N Training for page 12 Pulse W~dth Modulation & PID Controller Automation and Industrial Solutions
  • 13. SIEMENS input: "Automatic Mode" .= from the user program Analog Input := "Manual mode" ~dable for °Manuat Mode" restart counter := "inactive Mode" The PID Compact instruction inputs not only provide connection points for the controlled process setpoint-~nd measured feedback, it also provides an input connection to change the state of the controller mode. 1he PID controller can be in manual mode, which is the default mode, or auto mode. When the PID controller is in auto mode, the P[D controller automatically adjusts the loop output to maintains the loop’s setpoint value, such as a desired temperature. $7-1200 TIA System SlTRAIN Training for Page 13 Pulse Width Modulation & PID Controller Automation and Industrial So~utlons
  • 14. The PID Compact instruction outputs not only provides a connection point for the controlled process final element-~ut it also provides different types of output connections to match what it is driving, such as an output for pWM or an output as a Real number data type. Limit and warning alarm bits can be configured along with locations that record the mode of the controller and displays error codes in the event of an error condition which makes troubleshooting easier. $7-1200 TIA System SITRAIN Training for Page 14 Pulse ~Mdth Modulation & PID Controller Automation and Industrial Solutions
  • 15. Formal Parameter - State SIEMENS The chart above shows the numerical codes that are displayed in the State output which describes the Status of the PID controller. A memory location must be configured to State output in order for the numerical codes to be displayed. $7-1200 TIA System SITRAIN Training for Page 15 Pulse W~dth Modulation & PID Controller Automation and Industrial Solutions
  • 16. SIEMENS Define Variable Symbolic programming provides an advantage, you will find the program much clearer and easier to read if you use symbols (for example fan) instead of the absolute addresses. To allow the use of symbols, you can enter a name, the absolute address, the data type and a comment for every address used. Once you have defined a symbol, it can be used throughout the entire user program of a programmable module; symbolic names are entered in the PLC tags folder. $7-1200 TIA System SlTRAIN Tra n ng for Page 16 Pulse Width Modulation & PID Controller Automation and Industrial So u ons
  • 17. Clicking on the Configuration button in the upper right hand corner of the pID_Compact instruction box opens to the configuration topics such as Basic parameters, Input scaling, and Advanced settings which stores the loop tuning parameters for the pID_Compact box instruction. $7-1200 TIA System SITRAIN Training for Page 17 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 18. SIEMENS Input Scaling Configuring the Input/Output fields in the dialog box is made easier by the following special features, The Intellisence feature aids in configuration by providing a list of Intellisense and automatic connection, slide only valid possible connection variables (symbolic names) like the Input value input shown in the above. The automatically connection feature then connects that symbolic variable to the correct input or output of the pID_Compact box instruction. $7-1200 TIA System SITRAIN Training for Page 18 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 19. SIEMENS Input Scaling The input scaling takes the raw data value from the analog input signal such as 0 to 27648 or -27648 to +27648 and assigns the desired engineering units. So that the value entered at the upper limit is now associated with the max raw data value of 27648 and the value entered at the lower limit is nowassociated with the minimum raw data value of 0 or -27648. This is dependent on the type of analog signal entering the analog card. S7-1200 TIA System SITRAIN Training for Page t9 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 20. Input Monitoring SIEMENS Numerical alarm warning points are entered into the input monitoring menu prompt and will be used to set alarm bits that can be configured on the pID_Compact instruction box. $7-1200 TIA System SITRAIN Training for Page 20 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 21. Set PWM Hysteresis SIEMENS Edit the PWM limits menu prompt to enter the minimum on time and the minimum off time of the output signal of the piD_Compact instruction. PID_Compact instruction will not change the signal Time-on or the signal Time-off past these limits. $7-1200 TIA System SITRAIN Training for Page 21 Pulse W~dth Modulation & PID Controller Automation and Industrial Solutions
  • 22. Edit the Output limit menu prompt to enter an upper limit and a low limit for the PID_Compact instruction to use in the function calculation. $7-1200 TIA System SITRAIN Train ng for Page 22 Pulse W~dth ModuLation & PID Controller Automation and Industrial So utions
  • 23. SIEMENS If the PID tuning parameters are known, the PID tuning parameters values can be set manually through this configuration dialog box and then the check box should be checked in order to utilize those parameters, as shown in the slide. The PID tuning parameters can be determined by using the auto-tune feature. $7-’1200 TIA System SITp~&.IN Training for Page 23 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 24. Optional warning alarm bit variable can be configured in the piD_Compact instruction box to provide inputs to logic operation and/or drive animation on the HML $7-1200 TIA System SlTRA N Train ng for Page 24 Pulse Width Modulation & PID Controller Automation and Indus dal So utions
  • 25. SIEMENS Commissioning - Workflow ¯ Download Projected controller + technological object ¯ start commissioning ¯ start scope , Run "Startup Tuning" (turn-over tangent method) ¯ Run "Tuning in Run" (Step response) ¯ Upload PiD-parameter to project ¯ activate automatic mode Set [oPID_compact-DB°’sRet’i-M°de] to mode 3 After the PID Compact instruction box has been configured and compiled, the program can be download to the 1200 C-PU then tested through the Commissioning function as listed in the slide. $7-1200 TIA System SlTRAIN Training for Page 25 Pulse Width ModuLation & PID Controller Automation and Indus~a! Solutions
  • 26. Invoke the Commissioning function by clicking the Commissioning button in the upper right hand corner of pID_Compact instruction box, $7-1200 TIA System SlTRAIN Training for Page 26 Pulse Width Modulation & PID Controller Automation and In6ustda~ Solutions
  • 27. The Scope has buttons where you can start/stop the measurement and the ability to select the sample time in ms through the provided sample time field. $7-1200 TIA System SITRAIN Training for Page 27 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 28. The Commissioning scope has several very useful features such as fix scale. $7-1200 TIA System SITRA N Train ng for Page 28 Pulse W~dth Modulation & PID Controller Automation and Indus dal So u ions
  • 29. The Commissioning scope has several very useful features such as the tool to Zoom in. S7-1200 TiA System SITRAIN Training for Page 29 Pulse W~dth Modulation & PID Controller AulornalJon and Industrial Solutions
  • 30. The Commissioning scope has several ve~ useful features such as the too[ to Zoom out. $7-1200 TIA System SITRAIN Training for Page 30 Pulse V~dth Modulation & PID Controller Automat(on and Industrial Solutions
  • 31. SIEMENS The Commissioning scope has several very useful features such as a window that displays the current values. $7-1200 TIA System SITRAIN Training for Page 31 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 32. SIEMENS Commissioning The Commissioning Scope has several features such as the auto tuner function which calculates the PiD loop tuning parameter then uploads them to the PID loop controller, Clicking the button in the optimization window begins the process. $7-1200 TIA System SITRAIN Training for Page 32 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 33. Commissioning - Kind of Commissioning SIEMENS ]he auto tuner creates a step change in the process them monitors the response of the process to determine to determine the PID loop tuning parameters. The step change causes the process to oscillate as illustrated in the graphic above and illustrated in the slides that follow. $7-1200 TIA System SITRAIN Training for Page 33 Pulse Width Modulation & PID Controller Automation and Industda! Solutions
  • 34. ’ The auto tuner creates a step change in the process them monitors the response of the process to determine the PID loop tuning parameters. After looking at the setpoint, input, and output, in the graph you notice that the PID setpoint was changed and the PID input and PID output react to the change. A progress bar displays the progress time until the function is completed. $7-1200 TIA System SITRAIN Training for Page 34 Pulse V~dth Modulation & PID Controller Automation and In(~ustdal Solutions
  • 35. "The step change causes the process to oscillate as illustrated in the graphic above. $7-1200 TIA System SlTRAIN Training for Page 35 Pulse W~dth Modulation & PID Controller Automation and Industrial Solutions
  • 36. SIEMENS Commissioning - Online The auto tuner calculates the PID tuning parameters then it stores them in PID_Compact data block that has been associated with PID instruction. $7-1200 TIA System S TRA N Tra n ng for Page 36 Pulse V~dth Modulation & PID Controller Automation and Indus dal So u ons
  • 37. PID Exercise SIEMENS , Pulse Width Modulation (PWM) ,, PID Controller ¯ Exercise PID $7-1200 TIA Systen~ SlTRAIN Training for Automation and Industrial So~ulions Page 37 Pulse W~dth Modulation & PID Controller
  • 38. Exercise - PID Controller SIEMENS Hands-on Let’s just do it ..... the lab for you $7-1200 TIA System SITRAIN Training for Page 38 Pulse V~dth Modulation & PID Controller Automation and Industrial Solutions
  • 39. Task Process Add new project 2. 3. 4. 5. Click in the Task menu Project > New Name the project ,,Project_exemise_PID_loop" Start "Add new device" Add "Unspecific CPU" Detect (upload) "hardware configuration" S7-’1200 TIA System SITRAIN Training for Page 39 Pulse Width Modulation & PID Controller Automation and Industrial Solutions
  • 40. Task ProceSs Define variable 6. Start Tag-Editor with a double click 7, Set up the displayed tags. $7-1200 TIA System S TRAIN Tra n ng for Page 40 Pulse Width Modulation & PID Controller Automation and ndustdal So u ions
  • 41. Hands-on Task Process Implement program code n Ma’n and add ’cycl’c OB’ 9, 10. 11. 12, 13. 14. 15. Open "Main" (OB1) Add program code like displayed Add new block out of the project tree Select "cyclic interrupt OB" Type in the name "cyclic interrupt._PID controlleF’ Give the OB the manual block number "300" Define the scan time with "lOOms" Hit the Checkbox "Add new and open" SITRAIN Training for $7-1200 TIA System Automatlon and Industrial Solutions Page 41 Pulse Width Modulation & PID Controller
  • 42. Task Process Add PID Controller 16. 17. 18. Add "PID_Compact" block out of the extended instructions in the "cyclic interrupt_PID controller’ (OB300). Give the "InstanceDB / Technological object" a name. Add "Instance DB/Technological object" by hitting OK Button. $7-1200 TIA System SlTRAIN Training for Automation and industrial Solutions Page 42 Pulse W~dth Modulation & PID Controller
  • 43. Task Process Parameterize the PID Controller 19. 20. 21. 22. 23. 24. 25. 26. Mark the "PID_Compact" block Select the point §basic settings" Select as controller type "Temperature" Select as unit "C°". Activate the checkbox "Invert PID-Controller output." Set the Set-point to "85." Select "Input_PER" for the Input value and type in the variable "heat_sensor" (IW66), Select "OutpuLPER" for the Output value and type in the variable "fan" (QWS0) an. SITRAIN Training for $7-1200 TIA System Automation and Industrial Solullons Page 43 Pulse Width Modulation & PID Controller
  • 44. Exercise 8-1: Scale the Inputs SIEMENS Task Input scaling Process 27. 28. 29. 30. Select the point "input scaling". Select for the Scaled upper value "100°C.’’ Select for the Scaled lower value "0°C." Select for the analog/d{gital converter the values "0" for the lower limit and "27648" for the upper limit. SITRAIN Training for $7-1200 T]A System Automation and Industrial Solutions Page 44 Pulse Width Modulation & PID Controller
  • 45. SIEMENS Exercise 8-1: Download whole project Hands-o~} Task Download the whole project Process 31. 32. "Save" the project. Download "All" to the PLC SITRAIN Training for S7-1200 TIA System Automation and Industrial Solutions Page 45 Pulse Width Modulation & PID Controller
  • 46. SIEMENS Task Commissioning the PID Controller Process 33. 34. 35. 36. Start the "Commissioning" Start the scope. Select "Tuning in run" and hit the "Start tuning" button After successful commissioning hit the button "Upload PID parameters to project" and save the project. SITRAIN Training for $7-1200 TIA System Automation and industrial Solutions Page 46 Pulse Width Modulation & PID Controller