I'm using the User PB#1 on the front panel of my Robot console within my TP program, and it's working fine.....but cannot control the LED for the push button. I'm thinking it is SO[5] but I can't seem to access the SO's from within my TP program. Manual says "not used" in Handling Tool. Is that true? I want to put SO[5]=ON in my TP program, but doesn't seem possible.
Thanks!
User LED
-
mschlemmer -
January 27, 2015 at 11:25 PM -
Thread is marked as Resolved.
-
-
since you actually have a SOP User PB#1, i assume you have a B-Cabinet R-30ib, R-30ia, or you have an Rj3iB or earlier controller. the pipeline robots now dont even have the buttons on them, or a remote/local key. you are correct the SO[5] and SO[6] do control the LEDs. as you have noted there is nothing in the mix logic that lets you set them directly. If you have an old enough robot, then you have the Karel option and you can force the I/O.
Program PB1_ON
%NOLOCKGROUP
%COMMENT = 'User Led 1 ON'Begin
OPOUT [5] = ON
END PB1_onProgram PB1_OFF
%NOLOCKGROUP
%COMMENT = 'User Led 1 OFF'BEGIN
OPOUT [5] = Off
END PB1_OFF -
Thanks, but I'd like to avoid Karel since I'm not using it for anything else....but may have to go that route.
Any chance there is a system variable that controls the User PB#1 LED? Maybe it could be set within a TP program.
-
I think DuhbCakes is suggesting you create these two tiny Karel programs, and call them from your TP program whenever you need to switch the SO on or off. Seems like an easy solution / workaround to me.
Unless of course the controller currently doesn't have the Karel option installed, then it becomes a different story.