• Not Answered

Using string in DCS module for SIS module path.

Dear guys, 
I need your support to modify one dynamo. I have one DCS module, and inside module i created some internal string parameters and i'm giving SIS paths are like strings. I want to use that particular string for writing to SIS module by using DCS module but i was getting error. 

Could you check my script and suggest for same. 

Check below script for reference: 

DIM TestSISstring As String 
TestSISstring = frsReadValue("DCS Module/SIS string path A.CV") 

Private Sub Click() 
On Error GoTo ErrorHandler 
frssecureWriteValue " TestSISstring" 
Exit Sub 
ErrHandler: 
frsHandleError 
End Sub 

7 Replies

  • And what form does your string take? Can you show us the parameter path you are trying to write to (what have you entered into the "SIS string path A.CV").
  • In reply to AdrianOffield:

    Hi Adrian,

    We want to remove all sis graphics from operator stations  and for that we replacing every SIS tag with shadow modules. We want to use shadow module is like slave for SIS parameters, but we want to keep some basic functionalities(Bypass SIS parameters) also in shadow module dynamo at same time we dont want to write any parameters from shadow modules to SIS module.

    We created String parameter in shadow module and this one we are using for fetch SIS parameter path(SIS Module Bypass Path). This path we want to use it in dynamo to control SIS parameter directly.

    In SIS string A.CV path means, i'll browse shadow module string , which one is have SIS path(Bypass).

    DIM TestSISstring As String

    TestSISstring = frsReadValue("DCS Module/SIS string path A.CV") Browsing string in shadow module which one is have SIS parameter path, and this path we are trying to read in "TestSISstring"

    Private Sub Click()

    On Error GoTo ErrorHandler

    frssecureWriteValue " TestSISstring" Trying to write is sis path directly, i guess here only i should write something. When i'm trying to write value from graphic. It's just taking TestSISstring instead of SIS path

    Exit Sub

    ErrHandler:

    frsHandleError

    End Sub

  • In reply to venky9133:

    Hi Venky, I can understand the concept but can you give an example of the string you are storing in 'SIS string path A' variable? Have you tried using watchit to verify the path is correct? Can watchit resolve the string that you have stored in your variable, if not the chances are it will not work in VBA.
  • In reply to AdrianOffield:

    Hi Adrian,

    I have check path in watchit, its wroking fine. Could you attached screenshots

  • In reply to venky9133:

    Have you tried creating the toggle using SIS data entry expert to see how the path is stored? I can't remember for definite but I'm not sure DVSYS is used for SIS secure writes (so putting this in your parameter path in DCS string param might be an issue). Build the toggle function using the expert and see how it parametrizes the function in VBA.
  • In reply to AdrianOffield:

    Hi Adrian,
    I tried toggle, DCS write also.
    frssecureToggle " TestSISstring" (Here it's considering TestSISstring itself instead of SIS path, May be it's have some other way to write, but i don't know which expression will work).
  • In reply to AdrianOffield:

    Thanks so much for adding your insight, AdrianOffield. Your expertise is extremely valuable for new and experienced DeltaV users and we greatly appreciate your continued participation in the Emerson Exchange 365 Community. Cheers!

    Best Regards,

    Rachelle McWright: Business Development Manager, Dynamic Simulation: U.S. Gulf Coast