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

Using globals without a prefix (bMyTag vs GVL.bMyTag)

Triodes
2018-09-18
2018-09-18
  • Triodes - 2018-09-18

    Having used the old Codesys for years where you could define all globals and persistents in the same Global Variable list and not need to use the prefix to access them vs local variables. I find it super annoying and redundant to have to define this prefix now for every variable used in the globals/persistent lists; GVL. (or your list name of choice) must be placed in front of every single global variable now.

    I was wondering if the same can still be done in Codesys V3, ie not have to use the prefix to access the global variable?

     
  • e.kislov - 2018-09-18

    I think you should remove {attribute 'qualified_only'} from your Global Variables List.

     
  • Triodes - 2018-09-18

    Thanks!!!

    I'm getting old

    IMG: Bild

     

Log in to post a comment.