First off, I’m using V5 with the zip file upgrade.
I have a light trigger which is revaluating as the conditions change.
LightLevel1 _4 in 1 sensor (light) brightness reach 40 2013-09-10 11:34:34.921 true
I also have a Condition:
Lowlight LightLevel1 which for reasons unknown to me does not re-evaluate.
I noted that placing an underscore (_) before LightLevel1 ie _LightLevel1 should force a evaluation, however in my case it returns an invalid token.
Any ideas why this might be occurring?
I set up a test PLEG, as shown below, and it works.
+++++++++++++++++++++++++++++++++++++++++
PLEG-TEST
Device ID: 335
PLC Version: 5.1
Device Properties
Name Device Name Device Variable
LightLevel1 _4 in 1 sensor (light) CurrentLevel
Conditions
Name Expression
c1 LightLevel1 >= 40
c2 Not c1
+++++++++++++++++++++++++++++++++++++++++
I noted that placing an underscore (_) before LightLevel1 ie _LightLevel1 should force a evaluation, however in my case it returns an invalid token.
You are supposed to change the condition name to:
[b]_LowLight[/b]
Thanks Richard,
Am I correct in assuming that the below names would work in an effort not to have to change all Lowlight into _Lowlight?
Name Expression
_Lowlight Lightlevel1
Lowlight _Lowlight
That will work with 5.11 … but you can rename conditions … it should fixup references in other conditions.