How to callup a new created function block faceplate

I need to callup a function block faceplate for an AO function block. This functionality is not available (as for an AO faceplate).

Now I can create my own faceplate (I did) and my own function block faceplate (did not finish yet, but a start exists to be tested).

Now I need to call the newly created function block faceplate, which is done by calling 'frszLoad_iafb'. This function has 3 parameters:

strPic as string, strNMB as string and lngDoMonitor as Long.

For strPic only the CurrentValue of a gs-variable from frsVariables is accepted. No string "PDG_AO_fb_fp" nor User.gs_iafb_ao.CurrentValue (which is PDG_AO_fb_fp) is accepted. In the last two cases, the message "the function block faceplate PDG_AO_fb_fp could not be found". Also when another fb-faceplate (eg. pid_fb) is called, the message is the same. showing the requested filename, but no faceplate.

How can I callup a new created function block faceplate?

(DeltaV 10.3.1)

  • In reply to Youssef.El-Bahtimy:

    Thanks Youssef!

    The two possibilities I have for calling a FB-faceplate are:

    1. frszDynamoLoadIAFB "PID_TEST/AO1", Me, System.PicturePath & "\FaceplateFB\PDG_AO_fb_fp"

    2. frszLoad_iafb System.PicturePath & "\FaceplateFB\PDG_AO_fb_fp", "PID_TEST/AO1", 1

    It's kind of strange one has to specify in frsz routines where the fb-faceplates and dt-windows are located!

  • In reply to Maarten van der Waal:

    I'm glad it helped.

  • In reply to Youssef.El-Bahtimy:

    Hey guys,
    I am unable to get the function block faceplates to open and could use some help. I continue to get an error saying the faceplate could not be found but the path looks correct. Is it possible to get the 2 help links posted previously updated since they will not open for me.
    Thanks
  • In reply to RJA:

    Since the faceplates are new are you attempting to open them on a workstation different from the one they were created on? DeltaV Operate only reads the list of available faceplates and detail displays when launching. If new ones are added Operate needs to be restarted to get the names of the new ones.
  • Private Sub Rect15_Click()
    frsLoadFbFaceplate System.PicturePath & "\FaceplateFB\PCSD_InSel", "010FY1404/ISEL1", frsConvertMonitorNumToDeltaVScreen(Me.pn_myMonitor.CurrentValue)
    End Sub

    This is an example that works to open the function block faceplate (PCSD_InSel)
    The module I opened it with was 010FY1404, which I was trying to point it to the ISEL1 block.
    The frsConvertMonitor.....ect puts it on the graphic you are currently on. If you want to do it on a specific monitor, just put 1-4 here.