Blog

How to Use Application Code Manager (ACM) with PlantPAx Distributed Control System (DCS)

How to Use Application Code Manager (ACM) with PlantPAx Distributed Control System (DCS)

Rockwell's Application Code Manager (ACM) can be used with PlantPAx to rapidly generate Control Module, Equipment Module, and Phase configuration that adheres to standard templates and best practices. Here's a quick start guide on setting up your first PlantPAx project in ACM.

Creating the Base Project

  1. Go to PCDC for Rockwell and download the Version 5 Library of PlantPAx
    1. Note – PlantPAx AOIs and instruction sets are now baked into the firmware of the P controllers from Rockwell and do not require downloading, but the PCDC still allows you to download some ancillary AOIs, configuration utilities, and the application code manager project.
  2. Open Application Code Manager (ACM).
  3. Create a new test project (File > New > Project)
  4. From our Download – we have already installed the PlantPAx library – we will go ahead and open the base project provided from Rockwell by selecting it and clicking Next>>
    1. This is what gives definition to how this project will be created.
    2. Here is where we can select how we would like our control strategies to be implemented.
      1. We are going to use Function Block (FB) diagrams here
  5. Give the base project a Name at the top of the Object Configuration Wizard
  6. Click Finish

Importing Base PlantPAx Definitions

Now we have our base project created! This is really what is going to give us that backend for generating our .ACD file later as well as our HMI displays.

  1. Import some of the base PlantPAx definitions (do that in order)
    1. Add the Historian
      1. System View > Project > Historian > ScanClass > Add
        1. Select the process tab by clicking the + and selecting the item in the line below.
        2. Click Next > Finish
          1. This imports the base definition.
    2. Import the Alarm definition.
      1. System View > Project > HMI > Alarms > Add
        1. Select the process tab by clicking the + and selecting the logical organizer item in one of the lines below.
        2. Click Next > Finish
    3. Import the HMI
      1. System View > Project > HMI > Displays > Add
        1. Select the process tab by clicking the + and selecting the item in the line below.
        2. Click Next > Next > Finish

Additional Definitions

Once all of these are imported, we can go through and set up some additional definitions.

  1. Add a Display
    1. System View > Project > HMI > Displays
      1. Click on the project that now shows in as an item below once you click on Displays
      2. Click on Displays in the center rectangular module to the right of Parameters
      3. Right click on the white space of the module > Add New
      4. Rename the display’s Name
      5. Create a Display Title

Now, we have a Display for some of our objects to reference to autogenerate some of their HMI corresponding devices.

  1. Now that definitions are set up, we want to drag in our controller
    1. Go to Registered Libraries, expand the dropdown
    2. Expand the Process Library
    3. Expand Controller
    4. Expand ControlLogix
    5. Click and drag the Process Control version from the upper right module to the lower left Controller Preview module. Place it in the Controllers folder.
      1. This will open an Object Configuration Wizard tab.

This gives us all the configuration options available with this controller definition.

  1. Give it a Name.
  2. Give it a Description.

Parameters > 01 - Controller

Customize the information about this controller by clicking into the line items and modifying them.

  • What slot it is in
  • The size of the back plane
  • The version
  • The specific ProcessorType
  • Enable the PlantPAxTaskingModel
    • Click the dropdown in the right column of the line > True

Parameters > 01 – HMI

Set up definitions on how the FactoryTalk SE will be integrated with it.

  1. Give it an Area
  2. Set the Path to [Plant_Controller}

Other Items

You can configure any of the rest of the items, or you can leave them as the defaults.

  1. Click Finish

You’ll see that the Controller has now been dropped into the project as well. This has created our base tasking structure, as we enabled the PlantPAx tasking model. We have the Fast, Normal, Slow, and System tasks here with some of the base program definitions already laid out to do some of the backend, or the system level, functions with PlantPAx.

The next thing we’ll do is drop in some of our organizational folders.

  1. Expand Organization in the Recent Libraries module on the right.
    1. Expand Folder
    2. Drag the Organization_Folder to the Class View module and into the Plant_Controller folder.
      1. This will open an Object Configuration Wizard tab.
    3. Name the top-level folder.
      1. In the example, we named it Plant.
    4. Add a Description
      1. In the example, we named it Plant.
    5. Next > Finish

This creates an Organization_Folder with our new subfolder.

  1. Create a Bioreactor suite.
    1. Double click on Organization_Folder > Add New Instances
    2. Make the Name and Description say BIORX
    3. Next > Finish
  2. Create a Reactor within that suite.
    1. Double click on Organization_Folder > Add New Instances
    2. Make the Name and Description say RX_1001
    3. Next > Finish

We can have ACM build out that hierarchy now.

  1. Under Class View, select Plant > ChildFolders
    1. Add a ChildFolder by right clicking on the white space of the module > Add New
    2. Click the white space in the line item under ChildFolderName
    3. Click the … > Project > Controllers > Plant Controllers > Organization_Folder > BIORX > Finish
      1. This links it to the bioreactor folder.
  2. Under Class View, select BIORX (When asked to Sav Changes to Plant ? select Yes)
    1. BIORX > ChildFolders
    2. Add a ChildFolder by right clicking on the white space of the module > Add New
    3. Click the white space in the line item under ChildFolderName
    4. Click the … > Project > Controllers > Plant Controllers > Organization_Folder > RX_1001 > Finish
      1. This links our reactor instance to our bioreactor suite
  3. Click Apply Changes

Now, our folder hierarchy is set!

Next, we will drop in some example devices as well.

  1. Open the ControlStrategies folder under the Registered Libraries module on the far right.
    1. Registered Libraries > ControlStrategies > Device Control
  2. Grab a valve and drag it into the Plant_Controller folder under the Class View module on the left.
    1. Class View > Controllers > Plant_Controller

Now that we have created our valve, we will go ahead and assign our control module program to our bioreactor.

  1. Class View > Controllers > Plant_Controller > Organization Folder > RX_1001
  2. Go to the center module and click ChildFolders
    1. Add a ChildFolder by right clicking on the white space of the module > Add New
    2. Click the white space in the line item under ChildFolderName
    3. Click the … > Project > Controllers > Plant_Controller > Program > RX_1001_CMs > Finish
  3. Click Apply Changes

The last three steps:

  • How to link this device to a display in FactoryTalk SE
    • We can now browse to the display we made at the beginning of this tutorial by finding it in Parameters and clicking on the on that item’s line.

Browse to Display

Select the RX_1001 as our associated display.

Select the RX 1001 as our associated display

  1. Click Finish
    1. This brings in that pathway and makes that link on the backend.

Now, we can generate our ACD as well as our FactoryTalk USC configuration with this display and this valve already instance on it.

Generate Our ACD

This is our controller configuration.

  1. Class View > Controllers and right click on Plant_Controller > Generate Controller
  2. Check Create ACD
  3. . . . > Desktop > OK > Generate

This will generate all our configuration as we just defined. It goes fairly quickly because we only have a single device here. It can take a considerable amount of time with a much larger configuration, so be prepared to generate the ACD and maybe go to lunch if you have a larger project.

Click Close once finished.

Now, we can go and open that ACD.

File Explorer > Desktop >Plant_Controller.ACD

Now that our project is open, we can see we have our PlantPAx project module defined on the left.

If you click the Logical Organizer on the bottom right, you can expand the following folders: Plant > BIORX > RX_1001 > RX_1001_CMs and click on the valve XV101

You will then see the valve created as defined in ACM. Now we are done creating our controller configuration!

Generate Our HMI Display

Next, we will go ahead and generate our HMI display information.

  1. Go back to ACM
    1. System View > Project > HMI > Displays > FTViewSE_Server
    2. Right click on FTViewSE_Server > Generate Displays > Generate RX_1001_display > Save > OK
  2. Go to our sample project we already have set up in FactoryTalk View Studio
    1. We have a blank template Display for our RX_1001
      1. You can view this by clicking on Explorer > Network > PlantPAx > HMI Area > PlantPAxDemoSE > Graphics > Displays > RX_1001
    2. We will now import our ACM configuration.
      1. Do so by clicking Explorer > Network > PlantPAx > HMI Area > PlantPAxDemoSE > Graphics
        1. Right click on Displays > Import and Export… > Import graphic information into displays > Next > No > Next > Single display import file > Select the single display import file: … > RX_1001.xml > Select the display to import to: … > Displays > Process Graphics > RX_1001 > Finish > X (close the pop up window)
        2. By clicking Explorer > Network > PlantPAx > HMI Area > PlantPAxDemoSE > Graphics > Displays > RX_1001, you can see that it instance our valve that we created in ACM.
          1. Right click on the instance > Global Object Parameter Values

That is all we are going to demonstrate for now. We will follow up with some additional ACM videos getting to some of the more advanced configuration as well.

Read More About ACM

Learn more about DMC’s Process Automation solutions and ACM as well as our partnership with Rockwell Automation and contact us today for your next project!

]

Comments

There are currently no comments, be the first to post one.

Post a comment

Name (required)

Email (required)

CAPTCHA image
Enter the code shown above: