• Not Answered

DeltaV FacePlate Help

We are trying to make a very simple custom face plate for our FF device that has a.) an on/off switch that controls the DO block in my control strategy and b.) a text box that reads the count off of a counter. We have used a data link to read the counts back to the face plate, this was fairly simple, but we cannot figure out how to control something in the control strategy from the face plate. We believe we will have to write some VBA in the sub routine of the face plate blocks but we cant figure out how to properly do this. We tried to edit the script and put in the subroutine: WriteValue"1","dvsys.location" because that is how one of the other questions on the blog has been answered, but we don't know if this is correct. So, our question is: How do we properly set up a push button in the DeltaV-Operate-Configure program so that the button on the face plate will control a DO block in our control strategy, thus turning on a switch attached to our DeltaV system?

3 Replies

  • You need to create a target, and assign some VB script to that target e.g. "frsWriteValue "1", ps_sp_d. I would look at a factory module to see how the factory faceplates populate picture-level variables (like ps_sp_d) with module references at run time / on open. "CFixPicture_LoadedTagGroup" in any faceplate is a good example. We created custom / simplified faceplates for all our modules by copying and / or simplifying factory modules.

  • In reply to John Rezabek:

    What do you mean by create a target? Do you mean in the control strategy or the face plate? We have found the Task Wizard and are trying to do it that way without actually writing code. Is this possible? We're using the "Getting Started with your DeltaV system" and trying to follow those steps to use the Task Wizard to link the button to the DO block in our Control Strategy. We think we have to write into the CAS_IN_D of the DO block but aren't exactly sure if that's what we're supposed to be doing. If this is what to do, we don't know how to properly write to it.

    Thanks
  • In reply to DGBEND01:

    By "target" I mean a picture object that the operator clicks, like the "Mode" button in a standard faceplate. It can be a rectangle, or a grouped object that includes text and / or a DataLink.

    I have not used the Task Wizard but it might get you what you want. I'm guessing that the wizard will create some VB code for you.
    Whether you write to CAS_IN or SP_D depends on the normal mode of the block. In "AUTO" SP_D will control the OUT_D. In "CAS" SP_D will track CAS_IN_D. So you might want to display the mode on the faceplate as well.
    One might argue for using elements from factory faceplates to preserve a certain "look and feel" for interacting with faceplates, as an aid to operators.