Using Codesys V3.5 SP10 Patch 3+
It is possible to (and how to) use expression in 'invisible' or 'variable' field for Image/Frame on Visualisation?
What I want to do, is make LED (simple light indicator) connected to variable of custom type (ENUM) eg:
TYPE t_ECODE :
NO_ERROR := 0,
I need LED (indicator) switched off at NO_ERROR and switched on at any other value.
What I tried already:
1. Set 'variable' field of standard lamp to ' myVar <> t_ECODE.NO_ERROR '
2. Put two images one on top of each other, one with LED on, second with LED off, set 'Invisible' field to ' myVar <> t_ECODE.NO_ERROR ', second to ' myVar = t_ECODE.NO_ERROR '
Any of these methods is not working, I get invalid referece error or other errors.
Is there any solution other than dedicated program that will evaluate booleans from ENUM variables? It will make my code very hard to use, as I then cannot pass whole structures to visualisations...