dana_swift
07-18-2009, 02:45 PM
I am having a problem, the SB Command Ref manual shows the VN command as enabling and disabling the limit switches. Yet it appears to always be enabled even when I set VN,0
This appears to not work. I am driving the system to the lower X limit, then using the "ON INP" command to signal the arrival at the limit. That all works.
Then I use "VN,0" to disable the limit switches so the bot can back out of the limit. When I execute the move instruction it says "Limit switch hit". If I hit "resume" it will continue correctly.
How do I disable the limit switch functionality from a program? Is this a bug in the VN command?
Here is the exact code that exhibits the fault:
======= start of SBP file contents
SA 'Set program to absolute coordinate mode
MS,2.000,2.000 'Set move and plunge rate
JS,10.000,10.000 'Set jog rates
' ----------------------------------------------------------------
JZ,1.000 'Move to safe Z
ON INP(2,0) GOTO L16B
This appears to not work. I am driving the system to the lower X limit, then using the "ON INP" command to signal the arrival at the limit. That all works.
Then I use "VN,0" to disable the limit switches so the bot can back out of the limit. When I execute the move instruction it says "Limit switch hit". If I hit "resume" it will continue correctly.
How do I disable the limit switch functionality from a program? Is this a bug in the VN command?
Here is the exact code that exhibits the fault:
======= start of SBP file contents
SA 'Set program to absolute coordinate mode
MS,2.000,2.000 'Set move and plunge rate
JS,10.000,10.000 'Set jog rates
' ----------------------------------------------------------------
JZ,1.000 'Move to safe Z
ON INP(2,0) GOTO L16B