Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

How to read Global Constans in offline-mode

Anonymous
2018-03-07
2018-03-20
  • Anonymous - 2018-03-07

    Originally created by: cf2017

    Hi there,

    does anyone know how to read the value of a globel constant while being offline?
    I know how to read values while being online using something like "myOnlineApp.read_value(...)".
    But in my case, I can't get online. I just want to open a project and get the values of some constants
    defined in the source code of the project.

    Thx

     
  • XopHeT - 2018-03-20

    1) Get the text of object declaration part using textual_declaration property
    (like described here l viewtopic.php?f=18&t=8558 l )
    2) Parse strings and find your constant initial value.

     

Log in to post a comment.