I'm using a DataSubscriber to change a pilot light color but it's not working.
if (e.PlcAddress == "10014")
{
if (e.Values[0] == "0")
{
plLowLevelA.LightColor = PilotLight.LightColors.Green;
}
else
{
plLowLevelA.LightColor = PilotLight.LightColors.Red;
}
}
The code gets to this section just fine but the light color is always red.