So I've got an electrical apparatus (switchgear) where there are many switches and circuit breakers. There is logic associated with each switch, but I'm trying to get just the basics working for now. I have 2 buttons assigned to their respective macros. The first button is supposed to make a switch line move from 1 position to another (3 positions). When the line moves, any other line that was added should be removed so that only 1 line exists at a time. The second button is the same as the first except that the switch only has 2 positions. The 2-position switch seems to work ok. The only glitches there seems like I need to declare an initial state, otherwise I get an error on the first execution, and the other glitch is allowing duplicate lines to be created which doesn't delete the original after executing a new position. The same glitches also exist for the first switch with the line addition/deletion not working as expected.
Where am I going wrong here?
Many thanks in advance.
Shannon
Bookmarks