Modifying the motor module - overview > Specifying conditions with the Expression Assistant

Specify interlock conditions on condition blocks

In this procedure, we will use the Expression Assistant to specify the interlock conditions on the three condition blocks.

  1. On the View tab, in the Windows group, click Arrange so that you can see all the views again.
  2. Select the CND1 block, right-click it, and then select Expression from the context menu to open the Expression Assistant. .
  3. Highlight and delete the entire first line of the expression. (The default first line is "FALSE". )
  4. Click the External Parameter button. This button browses for parameters that are external to the current parameter.

    The Browse dialog opens.

  5. Open the TANK-101 area.

  6. Double-click these items in each succeeding level: XV-101, DC1, PV_D and CV.

    The Expression Assistant assembles the tagname and puts it in the Expression box.

  7. Click or type "=".
  8. Click Named State, double-click the named set vlvnc-pv, select the state CLOSED, and then click OK.
  9. Type a semicolon at the end of the expression.

    The completed expression now reads as follows:

    '//XV-101/DC1/PV_D.CV' = 'vlvnc-pv:CLOSED';

    XV-101 is the module for the block valve; DC1 is the function block; PV_D.CV is the current value for the process value; and CLOSED is one of the states in the named set, vlvnc-pv. The expression indicates that an interlock should occur (the motor should shut off) if the block valve is closed. (A named set is simply a way to define names and equate them to integer values. Named sets are defined in DeltaV Explorer under System ConfigurationSetup.)

  10. Click Parse.

    The Expression Assistant checks the syntax. If there are any errors, correct them.

  11. Click OK.
  12. Select the CND2 block and use the Expression Assistant to specify the second interlock condition as: '//LI-101/AI1/PV.CV'< 100;
    LI-101 is the control module for the level indicator. AI1 is the analog input function block. PV.CV is the parameter for the analog input current value. The expression indicates that an interlock should occur (the motor should shut off) if the tank level goes below 100 gallons.
  13. Click Parse, correct any errors, and then click OK.
  14. Select the CND3 block and use the Expression Assistant to specify the third interlock condition (the regulatory valve is less than 5 percent open) as: '//FIC-101/PID1/PV.CV' < 5;
    FIC-101 is the module for controlling the outlet flow (regulatory) valve. PID1 is the loop function block. PV.CV is the parameter indicating the current state of the valve (percent open). The expression indicates that an interlock should occur if the valve is less than 5 percent open.
  15. Click Parse, correct any errors, and then click OK.