Creating a command-driven equipment module (TOTALIZER)

The TOTALIZER equipment module will have supervising control over the input analog control loop (FLOW_CONTROL) and the flow integrator (TOTAL_FLOW) control modules. (The control module classes for both of these were imported as part of the Startup.fhx file.) The TOTALIZER module determines the amount of the color ingredient to be input into the color tanks. It allows for fast input (with the valve at 75% of the high limit) until 90% of the total amount is reached, and then partly closes the valve (to 25%) until the final 10% is input. 

Creating an equipment module class involves these basic steps:

  • Create the named set that will be used by the command sub-blocks to manipulate the control modules
  • Add the control module classes that will be supervised by the equipment module class logic
  • Configure the logic

The following table shows the named set (totalizer) to be used by the TOTALIZER equipment module. It has three states: Totalize_fast, Totalize_accurate, and Reset, as well as the mandatory entry of Idle. 

State Name State Value Name of command sub-block run when the A_COMMAND parameter is set to the specified value
Totalize_fast 1 COMMAND_00001
Totalize_accurate 2 COMMAND_00002
Reset 99 COMMAND_00099
Idle 255 (Required) COMMAND_00255

It is preferable to create the named set before creating the equipment module class. When you then create the equipment module class, it is created with the named states as composite blocks. If you do not create the named set before creating the equipment module class, you are asked if you wish to do so when you create the class. If the system creates the named set, it automatically includes the value of 255 with a default name of Undefined. If you create the named set, you need to make sure that you include 255 as one of the state values.