• Not Answered

Add new parameter to PHV of faceplate

Hello All,

Presently, upon calling Process History View of controller faceplate, I see process variable, setpoint, and controller output historized in ver. 13.3.1. I want to add controller actual mode to the said list. In DeltaV Operate configure, I narrowed down the faceplate's group called grpProcHistView with bmpProcHistView. In the former one's Animations, General Tab has both Tooltip and Highlight checkboxes enabled while Edit Script has following routine:

Private Sub bmpProcHistView_Click()

   On Error GoTo ErrorHandler

   frszOpenProcHist Me

   Exit Sub

ErrorHandler:

  frsHandleError

End Sub

I believe I am ought to make necessary changes in frszOpenProcHist subroutine, but I am unable to locate one. Please advise.

4 Replies

  • As you may already have found out, frszOpenProcHist is a hidden procedure which can't be modified. However to do what you want, you don't need to modify it. Simply change the library chart that is opened by frszOpenProcHist which, assuming you are working with Loop_fp.grf, is D:\DeltaV\DVData\Charts\lib\Loop_fp.phve. If you want historic data as well as real time you will also have to add controller actual mode to History Collection.
  • In reply to Cedric Dawnhawk:

    Thank you for your succinct answer, Cedric. In case of faceplate's lack of PHV button, do I add a PHV button to the faceplate with frszOpenProcHist procedure as above and create faceplatename_fp.phve file with necessary historic parameters? Does frszOpenProcHist know the path to phve as default faceplate name?
  • In reply to dmitriy sagadiev:

    Yes you should just be able to copy the whole button complete with script to your faceplate. As long as the name of your phve file matches the name of your faceplate and the phve file is in the D:\DeltaV\DVData\Charts\lib folder then I believe frszOpenProcHist Me will work. So if your faceplate is f_ind.grf then name your trend f_ind.phve.

    Note that frszOpenProcHist use parameter substitution. You will find that if you open one of the standard charts the parameter reference is for example MOD/PID1/PV.CV When the chart is opened by frszOpenProcHist it dynamically substitutes the relevant module name for "MOD". The best way to create your custom chart is to start from a standard one.
  • In reply to Cedric Dawnhawk:

    Cedric is correct. I'll just add that this is by design. The Process History functions in DeltaV for Operate and Live are based on there being a PHV file in the Charts\lib folder that has the same name as the Faceplate. When ever a new Faceplate is created, it requires a matching PHV File to be created and placed in the Charts\lib folder. You can modify these files if you want to add a parameter such as MODE, and as Cedric points out, use the "MOD" wildcard string for the module name.

    You will have to modify multiple PHV File instances in the LIB folder to have an additional parameter appear for all modules that use different Faceplates.

    Andre Dicaire