Archie said:What kind of analog devices do you have in mind, do you have pictures or web links you can send me to show the things you would like to see? I also find Ebay a good resource for pictures of devices.
The easiest way would be to add a line of code to the Value Property like this:odlaw said:How can I get a Pilot light or basic light to be invisible when it is off and visible when it is on ?
[size=2][color=#0000ff][size=2][color=#0000ff]Set[/color][/size][/color][/size][size=2]([/size][size=2][color=#0000ff][size=2][color=#0000ff]ByVal[/color][/size][/color][/size][size=2] value [/size][size=2][color=#0000ff][size=2][color=#0000ff]As[/color][/size][/color][/size][size=2][color=#0000ff][size=2][color=#0000ff]Boolean[/color][/size][/color][/size][size=2])
[/size][size=2][color=#0000ff][size=2][color=#0000ff] If[/color][/size][/color][/size][size=2] value <> m_Value [/size][size=2][color=#0000ff][size=2][color=#0000ff]Then
[/color][/size][/color][/size][size=2] m_Value = value
[/size][size=2][color=#0000ff][size=2][color=#0000ff] Me[/color][/size][/color][/size][size=2].Visible = value
[/size][size=2][color=#0000ff][size=2][color=#0000ff] Me[/color][/size][/color][/size][size=2].Invalidate()
[/size][size=2][color=#0000ff][size=2][color=#0000ff] End[/color][/size][/color][/size][size=2][color=#0000ff][size=2][color=#0000ff]If
[/color][/size][/color][/size][size=2][color=#0000ff][size=2][color=#0000ff]End[/color][/size][/color][/size][size=2][color=#0000ff][size=2][color=#0000ff]Set
While hunting for another bug, I may have found what is causing this. Open DF1Comm.vb and go to line 461 and remove the "+1" to make it like this:odlaw said:I have the same problem with 5.
The processor is a micrologix1100
The B3 file has 9 elements
I added a pilot light with an addy of b3/96 and a pilot light
with an addy of b3/130
I run the project and toggle the bits in the plc via ethernet/logix500
Nothing happens.
I stop the project and remove one of the pilot lights and all is well with the remaining light.
[size=2]NumberToReadCalc = PolledAddressList(i + 1).ElementNumber - PolledAddressList(FirstElement).ElementNumber + PolledAddressList(i + 1).ElementsToRead