Hello Guest it is June 18, 2019, 09:33:46 AM

Author Topic: DoOEMButton(150), and (149)  (Read 2050 times)

0 Members and 1 Guest are viewing this topic.

DoOEMButton(150), and (149)
« on: January 29, 2015, 12:47:39 PM »
I wanted to see what these commands actually do on my machine, so I typed 'DoOEMButton(150)' into the VB editor, tripped my limit switch on the machine to make sure it works correctly, then hit 'run' on the editor (As I understand it, this is supposed to override the limit switches.) Having pressed 'Reset', I find that the limit switch still works.

The same happened with OEMButton 149.

Have I misunderstood the function of these buttons?

Offline BR549

*
  •  6,871 6,871
    • View Profile
Re: DoOEMButton(150), and (149)
« Reply #1 on: January 29, 2015, 12:58:16 PM »
OemButton(150)
The limit override simple allows you to MOVE off the limit switch when tripped(active) otherwise you could NOT move off the switch as it disables movement.

OemButton(149) Toggle the AUTO override limit function ON/OFF.

(;-) TP
Re: DoOEMButton(150), and (149)
« Reply #2 on: January 29, 2015, 01:33:16 PM »
Thanks, that makes more sense than the manual, I had trouble following that.
Re: DoOEMButton(150), and (149)
« Reply #3 on: January 29, 2015, 01:59:35 PM »
This code gives inconsistent results...
DoOEMButton(149)
DoOEMButton(1021)

If I set X axis moving, trigger limit, press 'run' on this code, it resets and allows me to move the axis again. I can repeat this cycle a number of times. Then (not sure if the fact that I opened another code window and typed in another few codes) when I set axis running, trip limit, and press 'Run' on the above code again, nothing happens. On shutting mach off, it gives me an error code, something like -99999999. On restarting mach, it has invented new machine and work coordinates for X axis.

Is OEMButton 149 known to be troublesome in this way?
« Last Edit: January 29, 2015, 02:01:59 PM by moorea21 »

Offline BR549

*
  •  6,871 6,871
    • View Profile
Re: DoOEMButton(150), and (149)
« Reply #4 on: January 29, 2015, 03:59:40 PM »
Remember that when you hit a limit it is NOT a controlled stop and you will probably LOOSE your positions.

You are going WAY out in space to recreate a function that already works WELL in Mach3 and it will never be as good as LIMIT or Refhome because they can work at KERNAL speed(25-60KHZ  not  10hz that the macro refresh rate is.

Think about it, (;-) TP

Offline BR549

*
  •  6,871 6,871
    • View Profile
Re: DoOEMButton(150), and (149)
« Reply #5 on: January 29, 2015, 04:01:55 PM »
What exactly are you trying to do with the code ??  Nothing wrong with playing with Code(;-).

If I knew what you needed I can surely help you play with it.

(;-0 TP
Re: DoOEMButton(150), and (149)
« Reply #6 on: January 29, 2015, 04:08:49 PM »
I'm just trying to work around the fact that homing doesnt work on my machine, and also I need to home to 2 different locations, one of which homes to the gantry, the other of which homes to the 'tool' which is in the machine at the time.
Thanks for the offer!