Get DataSources Items list and status

jmdev
2022-04-23
2024-06-18
  • jmdev - 2022-04-23

    Hi,
    I am looking for retrieving list of items and their states from a Data Source like OPC UA client inside a program.
    I tried to use "g Datasource" object but I can't find a practical method to do this.
    Please does somebody has information about this topic (code example, documentation, ..) ?

    Thank You

     
  • jmdev - 2022-04-25

    Hello,
    Thanks eschewellinger for your response.

    Of course, I tried this client example but it don't use Data Sourse to define an OPC UA communication.

    Actually, I use the wizard "Data Source" from user interface Codesys Dev System SP18 to manage an Opc Client communication. (It is the easier way to avoid the use of the complex OPC ua client library objects).

    Despite, I need to access dynamically to items exchanged. I tried to use methods from global instance "g Datasource" object without success.

    If anyone has ideas that may help me, your suggestions will be most welcome.

    Thank You

     
    • mos89p - 2024-06-18

      Hello did you succeed?

       

Log in to post a comment.