Professional Documents
Culture Documents
Reference Manual
Sealer Temperature Control
raM_Tec_SealerTemp v3.x
January, 2021
Machine Builder Libraries
Solid-state equipment has operational characteristics differing from those of electromechanical equipment. Safety
Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available
from your local Rockwell Automation sales office or online at http://literature.rockwellautomation.com) describes
some important differences between solid-state equipment and hard-wired electromechanical devices. Because of
this difference, and because of the wide variety of uses for solid-state equipment, all persons responsible for
applying this equipment must satisfy themselves that each intended application of this equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting
from the use or application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many
variables and requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume
responsibility or liability for actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment,
or software described in this manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation,
Inc., is prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
Identifies information that is critical for successful application and understanding of the
product.
Labels may be on or inside the equipment, that dangerous voltage may be present.
Labels may be on or inside the equipment, for example, a drive or motor, to alert people
that surfaces may reach dangerous temperatures.
Allen-Bradley, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc.Trademarks not belongin g to Rockwell Automation are property of their respective companies.
2
Machine Builder Libraries
Table of Contents
Table of Contents .................................................................................................................................................................. 3
1 Overview ...................................................................................................................................................................... 4
1.1 Prerequisites ......................................................................................................................................................... 4
1.2 Functional Description ........................................................................................................................................... 5
1.3 Execution ............................................................................................................................................................ 13
2 Instruction .................................................................................................................................................................. 15
2.1 Footprint ............................................................................................................................................................. 15
2.2 Input Data ........................................................................................................................................................... 15
2.3 Output Data ........................................................................................................................................................ 15
2.4 Error Codes ......................................................................................................................................................... 16
4 Application ................................................................................................................................................................. 23
4.1 Instruction Configuration Example ....................................................................................................................... 23
4.2 Input Feedforward............................................................................................................................................... 24
7 Appendix .................................................................................................................................................................... 36
General............................................................................................................................................................................ 36
Common Information for All Instructions .......................................................................................................................... 36
Conventions and Related Terms ....................................................................................................................................... 36
3
Machine Builder Libraries
1 Overview
raM_Tec_SealerTemp:
• This is instruction provides Temperature Control (PID) for a sealer mechanism controlled by a
pulse output that applies voltage to a heater mechanism. There must also be a thermal
feedback device such as a thermocouple, thermistor or a RTD installed in the sealer to provide
temperature close loop control.
Use when:
1.1 Prerequisites
4
Machine Builder Libraries
The instruction will provide the capability of controlling the temperature of a sealing bar in rotary knife or
a sealing disc in a HFFS machine or a sealing jaw in a VFFS machine. The object will control a digital
output which will turn on and turn off a resistance at the necessary rate to bring the temperature as fast
as possible to the desire stable setpoint.
There will be only a resistance heating mechanism (heater). There is no cooling mechanism other than
turning off the heater. There is one digital output to control each heater device. Often a sealer has more
than one heater. Each sealer section will have its specific setpoint. Each section makes up a single
temperature control loop and is composed of a heater (resistance), a heated device (sealer), a digital
output to turn on/off the resistance and a feedback device to measure the temperature.
Usually there is just one command that will initiate the heating sequence for all sections.
A thermal system is characterized by a first order decay, with the temperature of the heat source being
the terminal value. Liquid-liquid heat exchanger processes tend to be self-regulating because the
temperature of the heat source is close to the process temperature. However, electrically heated
systems tend to exhibit behavior similar to integrating processes (like the level control of a tank),
because the heater temperature is typically far greater than the process temperature. As such,
electrically heated processes are characterized as “pseudo” integrating, because although the behavior
is “integrator-like”, they are not true integrating processes. This impacts the tuning procedure and
resulting gain calculations, as the method used for a self-regulating process may not be successful for
an integrating or pseudo-integrating process.
Figure 1 shows a typical step response for a self-regulating process, like flow or liquid-liquid heat
transfer. The PV (white line) reaches a terminal value following a step change in the CV. Comparing this
to Figure 2, note that the “pseudo-integrating” process does not reach a terminal value following a step
change in CV, but instead shows a steady increase as long as the CV is at its higher value. Only when
CV returns to its original value does the PV stabilize and begin to fall off. Note also that the rate of
decrease is far less than the rate of rise, a common characteristic of electrically heated thermal systems.
The rate of decrease is directly influenced by how well the system is insulated from its surroundings;
well-insulated systems will exhibit very slow rate of decrease.
One additional difference worth noting is the disparity in process delays. The effect of changing CV is
seen almost immediately in Figure 1, while Figure 2 shows substantial delay. This is sometimes, albeit
incorrectly, described as “thermal inertia.” A more accurate description of the phenomena is the transit
time of thermal energy between its source (heater) and measurement device. Thermal systems do not
exhibit characteristics of inertia. Once the heat is turned off, the energy in the process begins to decline
immediately. It is only this transit delay that makes it seem like the temperature is still increasing. It is
this delay that makes this type of temperature system difficult to control.
5
Machine Builder Libraries
The instruction uses a combination of a PID Loop Control along with a Pulse Modulation Instruction to
control the on/off frequency of the digital output.
PID loop update is configurable – typical configuration could be between 0.5 to 2 seconds.
Scan Rate for the task where temperature block is located– typical configuration is within 20ms – 100ms.
6
Machine Builder Libraries
1.2.3 Simulation
A Simulation Mode is available where PV come from simulation instead of coming from thermocouple.
The system model is based on an integrating process, with adjustments to simulate heat loss such that
the simulated loop becomes pseudo-integrating.
7
Machine Builder Libraries
HMI or Program can select the PID Mode. Selection will be available only if Heater is Enabled.
Manual (Man):
Automatic (Auto):
The setpoint could come from Operator (HMI) or from the program.
The setpoint used by the PID instruction will be the last one entered.
The HMI Faceplate setpoint will display the current setpoint either from HMI or from program.
A “Heater On” Enable Command (from HMI Faceplate or from program) will start the sequence.
The sequence will have a pre-heat time where the heater stays on.
The pre-heat time varies depending on setpoint value and system model parameters.
If Heater On command is disabled, the PID and Output of the instruction will be OFF.
1.2.7 Alarms
8
Machine Builder Libraries
There is also an Alarm of Maximum Temperature which Alarms high and turns off the output /
resistance regardless of operational mode.
9
Machine Builder Libraries
10
Machine Builder Libraries
11
Machine Builder Libraries
Note: Status bit not shown on the output side of the instruction are not used and will not exist in
the instruction backing tag.
12
Machine Builder Libraries
1.3 Execution
1.3.1 Overview
• Level
• Prescan
o *.Sts_EO = 0
o *.Sts_EN = 0
13
Machine Builder Libraries
Rung-In = TRUE
PreHeat
*.Sts_ER = 1
CV Release (%) No
DeadTime *.Sts_ERR = 1022
*.Sts_ER = 1 >= 0% and <= 100%
>= 0.01 and <= 9999.99 No
*.Sts_ERR = 1010
seconds
Yes
Yes
PreHeat
PVRise > 0 *.Sts_ER = 1
No
System Time Constant and *.Sts_ERR = 1023
*.Sts_ER = 1
>= 0.01 and <= 9999.99 No PVRise < 10000
*.Sts_ERR = 1011
seconds
Yes
Yes
Alarm Temperature
*.Sts_ER = 1
Heat-On Slope High Temp (degrees) No
*.Sts_ER = 1 *.Sts_ERR = 1024
>= 0.01 and <= 9999.99 No >= 0.01 and <= 9999.99
*.Sts_ERR = 1012
degrees/second
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
PID Gains
*.Sts_ER = 1
Proportional Gain No
*.Sts_ERR = 1017
>= 0.01 and <= 9999.99
PID Configuration
*.Sts_ER = 1
Manual CV (%) No
*.Sts_ERR = 1029
>= 0.00 and<= 100.00
Yes
Yes
PID Gains
*.Sts_ER = 1
Integral Gain No
*.Sts_ERR = 1018
>= 0.01 and <= 9999.99 Output Pulse Configuration
*.Sts_ER = 1
Minimum Pulse (seconds) No
*.Sts_ERR = 1030
>= 0.01 and <= 9999.99
Yes
Yes
PID Gains
*.Sts_ER = 1 Output Pulse Configuration
Derivative Gain No *.Sts_ER = 1
*.Sts_ERR = 1019 Cycle Time (seconds) No
>= 0.01 and <= 9999.99 *.Sts_ERR = 1031
>= 0.01 and <= 9999.99
Yes
Yes
Yes
Yes
PreHeat
*.Sts_ER = 1
Activate Deviation (degrees) No
*.Sts_ERR = 1021
>= -9999.99 and <= -0.01
Yes
Yes
Instruction in Process
14
Machine Builder Libraries
2 Instruction
2.1 Footprint
15
Machine Builder Libraries
Sts_ERR Description
0 No errors present
1010 System Model parameter “DeadTime” out of valid range - min= 0.01 and max = 9999.99 (seconds)
1011 System Model parameter “System time constant” out of valid range - min= 0.01 and max = 9999.99 (seconds)
1012 System Model parameter “Heat-On Slope” out of valid range - min= 0.01 and max = 9999.99 (deg/sec)
1013 System Model parameter “Heat-Off Slope” out of valid range – min=-9999.99 and max = -0.01 (deg/sec)
1014 System Model parameter “CV Step” out of valid range – min=50.0 and max = 100.0 (%)
1015 System Model parameter “Responsiveness Multiplier” out of valid range – min=1.0 and max =2.0
1016 PID parameter “Execution Interval” out of valid range – min=0.01 and max = 9999.99 (seconds)
1017 PID parameter “PGain” out of valid range – min=0.0 and max = 9999.99 (seconds)
1018 PID parameter “IGain” out of valid range – min=0.0 and max = 9999.99 (seconds)
1019 PID parameter “DGain” out of valid range – min=0.0 and max = 9999.99 (seconds)
1020 PID parameter “PID Loop Mode PowerUp” out of valid range – min=0 (Last Mode) and max = 2 (Auto)
1021 Pre-Heat parameter “Activate Deviation” out of valid range – min=-9999.99 and max =-0.01 (degrees)
1022 Pre-Heat parameter “CV Release (%)” out of valid range – min=0.00 and max =100.00 (%)
1023 Pre-Heat parameter “PV Rise (deg)” out of valid range – min=0.01 and max = 9999.99 (degrees)
1024 Alarm parameter “Overtemp” out of valid range – min=0.1 and max = 9999.99 (degrees)
1025 Alarm parameter “High Deviation” out of valid range – min=0.01 and max = 9999.99 (degrees)
1026 Alarm parameter “Low Deviation” out of valid range – min=-9999.99 and max = -0.01 (deg/sec)
1027 Alarm parameter “Dead Band” out of valid range – min=0.01 and max = 9999.99 (degrees)
1028 Alarm parameter “Maximum PV Temp” out of valid range – min=0.01 and max = 9999.99 (degrees)
1029 Configuration parameter “CV (%)” out of valid range – min=0.00 and max = 100.00 (%)
1030 Configuration Output Pulse parameter “Minimum Pulse” out of valid range – min=0.01 and max = 9999.99 (seconds)
1031 Configuration Output Pulse parameter “Cycle Time” out of valid range – min=0.01 and max = 9999.99 (seconds)
1032 raM_Tec_DeadTime internal error, Deadtime value must be less than (500.5 * task rate (seconds))
Sts_EXERR Description
< Number > If native instruction error occurs internally (PID), the value of the instruction*.ERR DINT will be placed in Sts_EXERR
16
Machine Builder Libraries
This object contains the AOI definition and used as linked library to implement object. This gives flexibility to
choose to instantiate only definition and create custom implement code. User may also create their own implement
library and link with this definition library object.
Linked Library
Link Name Catalog Number Revision Solution Category
raM_Tec_SealerTemp raM_Tec_SealerTemp >=2.0 (RA-LIB) Machine Temperature Control
3.3 Attachments
17
Machine Builder Libraries
IO Connection parameter allows the object input and outputs to be connected to a Digital/Analog Channel or
Digital/Analog Module. Each of the connection parameter can be independently chosen to be connected to a
Channel or Module or left unassigned.
Generated code
18
Machine Builder Libraries
19
Machine Builder Libraries
Generated code
Generated Code
20
Machine Builder Libraries
4. For connecting with a tag, enter the tag name in the connection field. Neglect the error indication. The tag
can be created when the generated ACD is opened in Logix Designer.
Generated Code
21
Machine Builder Libraries
22
Machine Builder Libraries
4 Application
AOI Status:
• Instruction Enabled
• Instruction Output Enabled
• Heater Enabled
• PID in Auto Mode
• Pre-Heat Status On
• Heater Output On
• Alarm Low Deviation On
23
Machine Builder Libraries
Preferably Input Feedforward should be used when a known disturbance is applied to the system.
For example, if system is stable at a certain setpoint with CV at 30% and when machine starts to move, the
new CV is 70% to maintain the same setpoint, a 40% (or a smaller value to be conservative) can be applied
to the Inp_FF every time machine starts to move. The Inp_FF should return to 0% when machine stops.
24
Machine Builder Libraries
5.1 Overview
The goal is to follow a known and repeatable procedure to obtain a system response curve.
Based on the system response curve it is possible to extract the model system parameters and the preheat
parameters. Once you have entered the system model parameters, request the gains to be calculated. If you
intend to use those gains to control your system, request to “Use Model Gains”. Before you try it in your real
heating system, you can get test the gains enabling the simulation and observe the behavior of the simulated
system. Since real and simulated system are “pseudo-integrating” systems, real and the simulated system
should have similar behavior.
5.2 Description
25
Machine Builder Libraries
26
Machine Builder Libraries
a. Numerically extract System Time Constant from trend. See Microsoft Excel file example
“SealerTempTimeConstant.xlsx” for reference.
i. Save a copy of the trend into a .CSV and open with Excel.
ii. Trim off system response data for when the CV is initially 0
iii. Next to the time column, create a time scale starting at 0 and incrementing in the same
amount of time as the Logix trend sampling rate
iv. Calculate PV average value using 10 samples.
v. Determine deadtime value (look for a variation of 0.2 degrees from initial average
temperature value).
vi. Calculate slope for each sample point (time, PV).
vii. Determine maximum slope. Maximum slope is the Heat-On Slope.
viii. Determine equation that describes straight line that passes through maximum slope point.
ix. Determine time when this straight line reaches the initial PV average temperature.
x. Subtract this time from deadtime to determine Time constant.
27
Machine Builder Libraries
28
Machine Builder Libraries
6 User Interface
The global objects used to generate these displays make heavy use of the image files developed for the
Rockwell Automation Library. These image files must be made part of the HMI application if the pre-
developed graphics are to be used.
(raM-xE) raM_Tec_SealerTemp-Global.ggfx
Global Object file with the “call-to-action” buttons available to go to the faceplate display.
29
Machine Builder Libraries
6.3 Faceplate
(raM-xE) raM_Tec_SealerTemp-Faceplate.gfx
6.3.1 Home
30
Machine Builder Libraries
31
Machine Builder Libraries
32
Machine Builder Libraries
33
Machine Builder Libraries
6.3.8 Trend
6.3.9 Faults
34
Machine Builder Libraries
6.3.10 Help
35
Machine Builder Libraries
7 Appendix
36
Machine Builder Libraries
Send/Receive
Method: Description:
37
Machine Builder Libraries
Method: Description:
38
Machine Builder Libraries
If the rung-in condition to an input instruction is true, the controller evaluates the
instruction and sets the rung-out condition based on the results of the
instruction. If the instruction evaluates to true, the rung-out condition is true; if
the instruction evaluates to false, the rung-out condition is false.
39
Machine Builder Libraries
Pre-scan
On transition into RUN, the controller performs a pre-scan before the first scan.
Pre-scan is a special scan of all routines in the controller. The controller scans
all main routines and subroutines during pre-scan, but ignores jumps that could
skip the execution of instructions. The controller performs all FOR loops and
subroutine calls. If a subroutine is called more than once, it is performed each
time it is called. The controller uses pre-scan of relay ladder instructions to reset
non-retentive I/O and internal values.
During pre-scan, input values are not current and outputs are not written. The
following conditions generate pre-scan:
• Transition from Program to Run mode.
• Automatically enter Run mode from a power-up condition.
40