Implementacion PlantPAX
Implementacion PlantPAX
Implementacion PlantPAX
properly using, calibrating, operating, monitoring and maintaining all Products consistent with all Rockwell Automation
or third-party provided instructions, warnings, recommendations and documentation;
ensuring that only properly trained personnel use, operate and maintain the Products at all times;
staying informed of all Product updates and alerts and implementing all updates and fixes; and
all other factors affecting the Products that are outside of the direct control of Rockwell Automation.
Reproduction of the contents of the Documentation, in whole or in part, without written permission of Rockwell Automation is
prohibited.
Throughout this manual we use the following notes to make you aware of safety considerations:
Identifies information about practices or circumstances
that can cause an explosion in a hazardous environment,
which may lead to personal injury or death, property damage, or economic loss.
Identifies information that is critical for successful application and understanding of the product.
Identifies information about practices or circumstances that can lead to personal injury or death, property
damage, or economic loss. Attentions help you:
identify a hazard
avoid a hazard
recognize the consequence
Labels may be located on or inside the drive to alert people that dangerous voltage may be present.
Labels may be located on or inside the drive to alert people that surfaces may be dangerous temperatures.
Contents
Before you begin ......................................................................................................................................... 4
About this section .......................................................................................................................................... 4
Tools & prerequisites .................................................................................................................................... 5
Introduction ................................................................................................................................................. 6
Operators Perspective.................................................................................................................................. 6
Engineers Perspective ................................................................................................................................. 6
R&D (Recipe Author) Perspective ................................................................................................................ 6
Setup ............................................................................................................................................................ 7
Start the software and open a project ........................................................................................................... 7
Operators Perspective ............................................................................................................................. 14
HMI Visualization & Navigation ................................................................................................................... 14
LBSM Reporting .......................................................................................................................................... 44
Engineers Perspective............................................................................................................................. 59
Modifying the Configuration for an Existing Phase ..................................................................................... 60
Configuring a New Phase ........................................................................................................................... 62
Connecting LBSM to the Controller Code .................................................................................................. 65
R&D (Recipe Author) Perspective ........................................................................................................... 75
Appendix: ................................................................................................................................................... 90
How to fix a controller with a red X ............................................................................................................. 90
LBSM Sample Application........................................................................................................................... 93
3 of 94
4 of 94
Lab Files
This hands-on lab uses the following files:
PlantPAx Logix Project: PlantPAxDemo_Controller1_Master_Journal.ACD
PlantPAx View Project: PlantPAx Demo
5 of 94
Introduction
Operators Perspective
This user perspective will introduce you to the manufacturing facility via simple HMI graphics and
navigation. This section will take you through the process of browsing sequences, creating a sequence,
and running the automated sequence. While the sequence is running, you will have a chance to explore
the LBSM system by interacting with the sequence through standard operator tasks. These include:
completing manual additions, initiating manual actions, hold/resume the sequence, advance/repeat steps
and more. Will end the operators perspective with a look at the new LBSM reporting application.
Engineers Perspective
System modifications may be required over time; therefore, this user perspective will introduce you to
some system engineering changes, namely how a phase is created, configured or modified, and linked to
controller code.
6 of 94
Setup
Start the software and open a project
SoftLogix Setup
The SoftLogix, RSLogix 5000 and FactoryTalk ViewSE programs should all be running and you can go
straight to the Operators Perspective section. If the programs are not running the steps below describe
how to start the project.
1.
SoftLogix should launch with the start of Windows Server 2008, if not from the start bar, open
SoftLogix.
7 of 94
Controller Setup
3. From the start bar, open RSLogix5000, Start > RSLogix 5000.
Please verify that you opened the correct ACD file. Observe the RSLogix 5000 title bar to verify that
the proper file was opened as shown:
Note: If the wrong file is opened and downloaded in the next step, an error will occur.
8 of 94
6. Select Download
9 of 94
8. Check that the controller has the correct time by right-clicking on the controller name to bring up
its properties pages, select the Date/Time tag and select Set Date, Time and Zone from
Workstation if the controller time is incorrect.
9. Minimize RSLogix5000.
HMI Setup - Client
10. From the Desktop select the PlantPAx Client icon or from the start menu select Start >
FactoryTalk View Site Edition Client and complete step 10 and 11.
11. In the FactoryTalk View SE Client Wizard dialog select the FTView SE Client.cli client file in
the most recently used configuration files window.
12. Press the Run button.
10 of 94
11 of 94
Enable LBSM
13. When the HMI client opens, maximize the screen and select the Core Process General button
which will open the Process Overview display.
14. On the Process Overview display select the CPG Batch SetupReset button.
12 of 94
15. Click on the box to Enable Logix Batch & Sequence Manager for Premix 1 Tank, then Click
Close. The FactoryTalk Batch Server should not be running as shown below.
13 of 94
Operators Perspective
This user perspective will take you through the process of browsing sequences, creating a sequence, and
running the automated sequence using LBSM. While the sequence is running, you will have a chance to
explore the LBSM system while interacting with the sequence through standard operator tasks. These
include: completing manual additions, initiating manual actions, hold/resume sequencing,
advance/repeat steps and more. The user will also enable LBSM reporting and look at the preconfigured
reports.
14 of 94
2. At the log on prompt, Log In as the Operator with User ID = BatchOper with the Password =
Operator and click OK.
3. Select the CPG Menu button to return to the standard CPG navigation bar versus the FactoryTalk
Batch specific navigation bar.
15 of 94
HMI Application
This section of the lab will familiarize you with basic HMI application.
1. Display the Sequence Control Window. To display the Run-Time Sequence window open the
Premix 1 display by selecting the Premix 1 button from HMI navigation bar..
Then click on the magnifying glass to open the Sequence Control Window.
16 of 94
17 of 94
18 of 94
5. Note (a) that the sequence has transitioned from the Idle state to the Running state, and (b)
the sequence command buttons (Hold, Stop, Abort) are now activated.
Sequence State
Sequence Control
buttons
19 of 94
20 of 94
2. A significant amount of information is available for the operator. Lets look at the screen in detail.
Highlight shows current step
d. A green box with a black dot indicates that the phase has completed its actions but is still
active. Typically this will be seen for phases that transition several steps such as
agitation.
e. The indicators at the far left display the current phase state.
The vertical axis displays the configured equipment and current phase status.
21 of 94
which
The sequence state diagram is both functional and a key to the control icons.
3. Once both Material 1 and 2 additions are complete, the sequence progresses to Step 2, where
Material 3 is added also while agitating.
The Display Sequence Control windows has been size such that most of Premix 1 display is visible
and allows the process actions to be observed.
22 of 94
4. The sequence progresses to Step 3, after the Material 3 addition is completed. At this point
agitation stops, recirculation begins (see PreMix display), and a Manual phase is initiated. The
blinking, orange, Manual Phase indicator and an exclamation mark indicate operator attention is
required.
23 of 94
6. After reading and performing the actions indicated in the Prompt popup, the operator would enter
24 of 94
7. The sequence progresses to Step 4, where Agitation while Circulating contents takes place. The
time setpoint is a formula parameter of the Agitation phase, therefore the phase will complete
when time has expired. The Recirculation phase has completed the transition requirements but
will continue until the Agitation phase is also complete.
25 of 94
8. When the required agitation time has expired, the sequence progress to Step 5, where another
Manual action, by the operator is required. Clicking on the Manual box
displays the Prompt popup, where this time, the operator is prompted to take a sample and enter
the results.
26 of 94
9. Enter a value for the actual pH, 7.5 and press the ENTER key. After entering the data,
acknowledge the prompting by clicking on the green checkmark.
10.
The sequence transitions to step 6 and transfers the contents out of the tank.
In the PreMix display note the open valve, pump on and the tank level dropping.
27 of 94
11. After the tank is empty, the sequence is complete. No steps are active, the sequence state is
Complete and the Reset button is active.
28 of 94
2. Select Product G
29 of 94
3. Notice that for this product, Pause points have been configured into the sequence
Commands
Pause points
30 of 94
6. Lets suppose that during the first material additions, Step 2, the operator wanted to check the
tank before continuing with the timed agitation in Step 3. Note that there is a configured pause
point between Step 2 and Step 3. Therefore, the operator can select Request sequence to
pause at next pause point. Click this button.
31 of 94
7. At the end of the material additions, Step 2, we see that the sequence has paused, being
indicated by a green bar and pause point. Furthermore the Step Control buttons are now active.
8. The operator can continue to select Request sequence to pause at pause point or one can
select to enable Auto Pause, where the sequence will automatically pause at every configured
pause point. Lets go ahead and Pause sequence at each pause point by checking the
appropriate box.
32 of 94
9. At this point, the operator can step forward to the next pause point or continue from this point.
Lets continue from this point by pressing Resume Sequence.
10. The sequence progresses with the timed agitation, Step 3. At the end of the time agitation, the
sequence is again paused. Lets assume that after checking the tank contents, the operator
needed to repeat the timed agitation. Press the Skip to Previous Pause Point button.
Notice that the sequence has indexed back to the previous pause point (which could be more than
one step).
33 of 94
1. After the timed agitation, continue the sequence by pressing RESUME SEQUENCE.
2. After Matl 3 is added in Step 4, continue the sequence by pressing RESUME SEQUENCE.
34 of 94
4. Before pressing RESUME SEQUENCE to step on to step 6, read the next steps instructions and
be prepared to put the sequence in Hold. RESUME SEQUENCE and move to step 6 when
ready.
5. Now, suppose during the timed mixing cycle, Step 6, the operator needs to stop the circulation
35 of 94
You can view the Premix Overview process graphic to see that the recirculation has stopped.
Note: The Sequence Status and Control screen can be displayed by pressing the
Sequence Button in the lower left corner of the process graphic.
This button allows one to easily toggle between sequence display / control and the
process graphic.
This button shows the current sequence, the sequence state, and the current step.
36 of 94
6. After tightening the Tri-Clamp on the pump, the operator can continue the sequence by pressing
7. If you check the Premix Overview process graphic, you will see that the recirculation has
continued from where it left off.
37 of 94
Manual Control
1. Suppose, that after the timed agitation completes in Step 6, we need to take another sample,
and Resume
2. Now suppose that after taking and analyzing a sample, the operator needs to add more Material
3. Click on MATL 3 ADDITION in the phase listing and the Manual Phase Control popup
appears.
38 of 94
4. Click on the setpoint field and enter a setpoint of 23.7 Kg and then click OK. Also enter a
tolerance of 5 %.
39 of 94
6. The addition begins, which can be seen both on the Premix Overview process graphic and by the
phase status on the Manual Phase Control popup.
40 of 94
Manual Phase Control can be initiated anytime, with or without a sequence running.
Furthermore, the sequence can be in any state, (e.g. running, held) for manual phase
control.
41 of 94
and close
Abort Sequence
1. At this point we realize the sequence cannot be salvaged and needs to be aborted. Press
ABORT
2. All phase activity aborts and the sequence transitions to the Aborted state.
42 of 94
43 of 94
LBSM Reporting
Recently release is the Logix Batch & Sequence Manager v1.5 reporting add on. This new feature
uses a modified database from the FactoryTalk Batch reporting package to store data from the LBSM
batches running in the controller. Lets take a look.
Note: LBSM Reporting currently only works with FactoryTalk ViewSE.
The following reports are pre-developed.
2. This brings up the Premix Tank Unit Configuration popup, the three buttons on the bottom half
of the popup are used for LBSM Reporting.
44 of 94
4. This brings up the small display below. This display contains VBA code that takes the data from
tags running in the controller and places it in the XML files and a SQL database. This data
consists of parameters and report tags and other batch information such as date and time, phase
state, etc. Dont close this display for the remainder of this section. Its display properties are set
for cache after displaying, always running always updating, this keeps the batch data updating
even when the display is not visible.
5. The Click Here to ABORT Report Generation button will close and uncache the Report
Generator display and stop archiving the batch data.
6. The final button on the Premix Tank Unit Configuration is Report Viewer
.
Selecting this button brings up a display that can be used to look at the XML file version of the
batch reports. These XML files are stored in the Report Location you see at the top of display.
Selecting a file name on the left will display the report in a Webbrowser control on the right.
45 of 94
7. Go back to the FactoryTalk View client Premix 1 display and select the Display Sequence
Control Window button.
8. From the Run-time Sequence window select Display Selection List and select Product D and
run two batches.
9. Now we will use Internet Explorer to look at the batch reports, we will do this two ways first using
Windows Internet Explorer, then using a display in FactoryTalk ViewSE containing the Microsoft
Webbrowser control. Start Internet Explorer, the home page is set for the report page.
Selecting Batch Report on the left brings up the batch reports for FactoryTalk Batch and
selecting LBSM Reports brings up the reports for LBSM. Since both are using the same
BatchHistoryEx database there is overlap between the reports (if you have time feel free to look
at both). Select LBSM Reports to display the reports.
46 of 94
NOTE: It may take a couple of minutes to get all the services loaded and running.
10. The second way to look at the reports is to create a display containing the Microsoft Webbrowser
control pointed to the report page URL. In the FactoryTalk ViewSE project there is such a
display. In the upper right on the navigation bar select the LBSM Reports button.
11. The LBSM Reports display appears with the five LBSM reports.
47 of 94
Null selections are available for both start and end time. These can be used to search
from the beginning of time (start time null) or to most recent time (end time null).
2. Batch ID Filter
The Batch ID is the user defined name given to a
batch at runtime. This filter allows the user to trim the query list to those matching the specified
text. Expand your filter capability through use of the asterisk (*) wildcard at any point in the filter.
3. Recipe Name
The Recipe Name is the name to which the batch
recipe is saved. The Recipe Name dropdown list is populated in real-time by listing all recipe
names run during the user specified time frame. By default, all items in this drop down are
selected. Any individual line items can be selected/un-selected by checking/un-checking the box
next to the name. Alternatively, the user can select all/un-select all by checking/un-checking the
select all check box.
1. Select 010-BatchListing
48 of 94
2. The report will open with the following query header and the two reports that were just run
displayed. Notice that the default Start Time is 24 hours before the current time, hence any batch
run in the last 24 hours would be displayed.
49 of 94
3. To see a listing of all the batches in the database select the Null checkbox to the right of the Start
Time.
4. . In the Recipe Name drop down list check the Select All box.
5. From the top right side of the report, select View Report
6. All the batches that have been archived to the database are now displayed.
7. If time allows try filtering the batches by using the Start Time Calendar.
NOTE: As you select dates and complete the Batch ID Filter, the remaining dropdowns
are updated to reflect your search criteria.
50 of 94
8. Notice that for each line item, a set of two hotlink icons are shown. These enable quick
navigation to other reports that keep you in context of the specific Unique ID (unique identifier
for each batch.) of that line. As their names indicate the Batch Summary Report icon will open
up the batch summary report for the selected batch and the Batch Detail Report icon will open
the batch detail report for the selected batch.
1.
51 of 94
2. The report will open with the following query header shown in the upper part of the display below.
Notice that there are several different selection fields from the Batch Listing report page; these are
Recipe Name, Process Cell, Unit Name and Unique ID. In our example we only have one process
cell and one unit, if there were more units, like Premix and Reactor units seen earlier then there
would be multiple selections for Unit Name. The Recipe Name selection field is used to narrow
down what recipes you want to look at and the Unique ID field select the batch to look at.
52 of 94
53 of 94
3. Once the batch is select and the report appears, clicking on the plus-sign will expand the data
that is shown. This report shows the parameters and reports that were recorded for the batch.
54 of 94
2. This report will open with the now familiar query header. Select a batch as have been done in the
earlier steps.
55 of 94
3. As shown below there is a bar graph showing the total time each of the six phases ran in the
Product D recipe.
56 of 94
57 of 94
58 of 94
Engineers Perspective
System modifications may be required over time; therefore, this user perspective will introduce you to a
couple of system engineering changes. In this lab, we will modify an existing phase and add a new
phase to the system.
2. At the log on prompt, Log In as the Engineer with User ID = Engineer with the Password =
Engineer and click OK.
59 of 94
1. LBSM phase configuration is performed from the Engineering HMI display. From the Premix 1,
display select Configure Premix LBSM.
Select the Wrench and Motor on the Premix Tank Unit Configuration popup to display the
Equipment Configuration Window.
60 of 94
2. Once on the Engineering screen select a phase to modify. Suppose it has been determined
that product consistency is improved when the rate, at which Matl 1 is added, is specified as a
sequence parameter. Select MATL 1 ADDITION from the phase listing to display the Phase
Configuration screen.
61 of 94
We have now completed this LBSM configuration change for R&D. Keep in mind that
additional control code would also need to be added into the system, but the lab will not cover
that change.
1. Continuing from above, SIP now needs to be configured in LBSM, thus making a SIP phase
available for use in sequence configuration.
2. From the Premix_01 equipment configuration screen, Select the next open box, below the
existing CIP phase.
62 of 94
3. Type STERILIZER for Equipment Name. Type SIP for Phase Name. Press PAGE DOWN to
save both entries. (Page Down is an alternative to pressing Enter after each entry. Page
Down downloads all information on the screen.)
4. Under Real Parameters configuration, Check PHASE and add MINUTES for the Parameter
Name. Continue by entering MIN for the Engineering Units (EU). Press PAGE DOWN.
5. Check PHASE and add SECONDS for the Parameter Name. Continue by entering SEC for
the Engineering Units (EU). Press PAGE DOWN.
6. We have now added the new configuration for SIP and have included two setpoints for time delay
63 of 94
64 of 94
LBSM interfaces to user developed logic, in an automation controller (e.g. CLX), through
a defined data structure. The application logic can be written with or without the use of
the PhaseManager instruction set.
This demo application uses the PhaseManager interface so that the same phase can
easily be managed with either a FTB (FactoryTalk Batch) or a LBSM (Logix Batch and
Sequence Manager) system.
Coding phases is beyond the scope of this session, but we will look at the interface and
data structures then import a pre-developed SIP Phase.
1. Open the previously minimized PlantPAxDemo_Batch_Master_Journal.acd RSLogix 5000
project.
NOTE: Each of the following activities will be done to the online running controller.
There is no need to shut your process down to make these connection to LBSM.
2. Coding phases is beyond the scope of this session, but we will look at the interface and data
structures then import
3. Select Controller Tags and scroll down to the _Equipment tag.
65 of 94
4. Expand the _Equipment tag and note this is an array. Each member of the array aligns with a
position on the Phase Configuration display. For example, the phase Matl 1 Addition phase
aligns with EquipmentPhase[3] and the SIP phase you created above aligns with
EquipmentPhase[9]
66 of 94
67 of 94
button
9. When prompted, Select Finalize all edits in Equipment Phase, then select
68 of 94
10. The new SIP phase will be added into the project tree.
11. When PhaseManager is used, an interface routine is added to each PhaseManager program.
This interface routine translates general LBSM commands to PhaseManager commands. Now
lets import this interface routine. Right-Click on the PM01_SIP routine and select Import
Routine.
69 of 94
13. Select the LBSMIntfc.L5X import file, and then click the
button
70 of 94
17.
We will now assign the Premix_01 SIP phase pointer. This is the primary way LBSM
connects to this specific PhaseManager phase. Therefore, from the EP Alias For pull-down
th
menu, Select _Equipment[0,9] from the list. (Remember SIP was assigned to the 9
equipment position in the previous section when the SIP phase was configured in LBSM.)
18. Select Other Components and replace the Final Name with PM01_SIP
21. When the interface routine successfully imports, right-click on the PM01_SIP phase and select
Properties.
71 of 94
72 of 94
22. Under the Configuration tab, Use the dropdown to set LBSMIntfc as the Prestate routine, and
Select OK.
You have now successfully linked the LBSM engine to this specific PM01_SIP
PhaseManager phase.
In an earlier section we defined 2 input parameters for the SIP phase, Minutes & Seconds.
We need to now map these values into the PhaseManager phase.
23. Double-click the LBSM_Intfc routine under the PM01_SIP phase to open the routine.
24. Select the second rung as shown in the picture below, and then click the Start Pending Rung
Edits from the toolbar.
73 of 94
25. Change the Destination tag address of the first move instruction to Minutes and change the
destination tag address of the second move instruction to Seconds
26. Select Finalize all edits in the Equipment Phase from the toolbar.
You have now successfully mapped the input parameters from LBSM to the PM01_SIP
PhaseManager inputs.
The Engineers Perspective is now complete!
74 of 94
75 of 94
76 of 94
4. Now, lets make the desired set-point adjustment for the Matl 1 Addition in Step 1. Begin by
clicking on the green box at the intersection of Step 1 and Matl 1 Addition.
The sequence display shows steps on the horizontal axis and phases on the vertical
axis. A green box, at any intersection of step/phase, indicates that the phase will execute
in that step.
77 of 94
78 of 94
5. To change the amount of Matl 1 click on the set-point field and enter the desired amount 195.3
in the data entry pop-up followed by OK.
6. Close the Step Edit display by clicking on the red X in the upper right hand corner of the
screen.
79 of 94
7. Now, lets address the second new requirement, which was, to continue circulating the tanks
contents while a sample is being taken (which occurs in Step 5.). Begin, as before, by clicking
on the intersection between the Recirc phase and Step 5.
8. Check the Active box to enable this phase while in this step.
80 of 94
9. We have now completed the second requirement of adding circulation while the also sampling the
contents. Note again the completed step and the significance of the various indicators on this
display.
81 of 94
10. Close the Step Edit display and return to the Sequence Edit display by clicking on the red X
in the upper right corner of the Step Edit screen.
11. For the third requirement, Split the Material 3 Addition, before and after the Hand Addition, we
need to add a new activity between what is currently Steps 3 & 4. To insert a step, first enter the
Insert/Delete Step Mode by checking the appropriate box on the Sequence Edit
82 of 94
12. Next insert a new step by checking the box between Steps 3 & 4.
Note the position of the + and - buttons. Selecting + will insert a step between two
existing steps, while selecting - will delete the existing step.
13. Click Insert.
14. Add another Material 3 addition to the new Step 4, by clicking on the intersection between Step
4 and the Material 3 Addition phase.
83 of 94
15. Enable the phase, enter 12.5 Kg and 5% tolerance for the addition, and provide a Step
nd
Description such as 2 Matl 3 Add.
To save entries and edits, be sure to press ENTER while on the field. Alternatively, all
entries can be made, then press PAGE DOWN, which will save all page edits.
84 of 94
16. Note, by the green highlight, that Material 3 is also added in Step 2. Click Step 2 to change the
amount of Material 3 added in that step.
17. Change the amount of Material 3 added in Step 2 from 25 kg to 12.5 kg (since we are now
adding the other half in Step 4). The completed step configuration should appear as follows.
85 of 94
18. Close the sequence edit windows and navigate back to the Premix 01 screen. Open the runtime
detail screen by clicking on the magnifying glass in the bottom left hand corner.
19. Select the Display Selection List, and from the popup select Product D to load the updated
master sequence for the Premix_01.
20. You should now see the 3 changes we just made in the newly loaded Product D sequence.
th
But wait! We forgot the 4 sequence change request which was to add the SIP step into
the sequence! No problem, we will edit the runtime sequence and save it back to the
master sequence.
21. Now, lets address the last new requirement, which was, to add an SIP step into the sequence
(which occurs in Step 8.). Select the Edit the currently running sequence
86 of 94
button.
22. Begin, as before, by clicking on the intersection between the SIP phase and Step 8.
23. The blank step configuration window will appear. Change the Step name to SIP Step, Select
the Active checkbox, and enter a value of 30 into the Seconds Parameter field.
24. Press the Page Down key to download all changes on the page.
87 of 94
29. We are now ready to run a new sequence which would execute with the requested sequence
modifications, those being:
88 of 94
Adding a new step and splitting the Matl 3 addition between Step 2 and a new Step 4.
This completes this lab section on Logix Batch & Sequence Manager
89 of 94
Appendix:
How to fix a controller with a red X
1. A red X in the controller slot means there was a problem. Follow this section for how to resolve a
red X in the controller as shown here for slot 2:
2. Select the controller with the red X, then right-mouse click to remove it.
3. The Remove Module window appears, please check the Clear Chassis checkbox and select OK.
90 of 94
5. Select the empty slot that was removed and right-mouse click to Create a new module.
6. Follow the wizard to create a new controller whether slot 2 or slot 3. For this example we are
showing slot 2 only. Do the same for slot 3 if needed. Select OK.
91 of 94
7. In the General window, change the Memory Size to 8192, then select Next.
92 of 94
9. From the start bar, launch RSLogix5000, Start > RSLogix 5000.
10. Return to the Setup section for instructions on downloading the project file to the controller.
93 of 94
5. Select Start and FactoryTalk View Site Editoin Client and from the wizard select
LBSM_Reporting.cli and Run.
6. This will bring up FactoryTalk ViewSE project that comes with LBSM reporting.
7. From here you can run batches and enable reporting. Use Internet Explorer to look at the
reports. Raise your hand if you have any questions.
94 of 94