Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: nso on March 26, 2013, 09:42:07 AM

Title: external input as (shift on key board)
Post by: nso on March 26, 2013, 09:42:07 AM
hi
 when slow jog rate set then arrows will jog at the slow speed and shift + arrows will jog at 100% and when release shift key go back at jog slow .
now i want do that with external (input1) push button.after search on oem button code i cant find any code for doing this..
please adviceto me
thanks
Title: Re: external input as (shift on key board)
Post by: Chaoticone on March 26, 2013, 10:50:00 AM
Have you tried oem button 287?

Brett
Title: Re: external input as (shift on key board)
Post by: Overloaded on March 26, 2013, 11:13:26 AM
I can't find this either.
287 doesn't seem to work, tried several others .... no luck.
I do notice OEMLED 58 lights when the SHIFT key is hit.
Maybe this is internal ? ? ? ?

Russ
Title: Re: external input as (shift on key board)
Post by: Chaoticone on March 26, 2013, 11:26:55 AM
Yup, saw that so deleted the suggestion........  

A brain monitoring an led that is on while the button is pressed setting jog to 100% and back to previous if led is off would work but think there is a button for it already.  The problem with the rapid jog in a vb button is the same as a jog button.  Vb isn't smart enough to detect on release.

Brett
Title: Re: external input as (shift on key board)
Post by: Chaoticone on March 26, 2013, 11:31:41 AM
Yup Russ, I think your right.  Turning on led 58 may be the way to go.

Brett
Title: Re: external input as (shift on key board)
Post by: Overloaded on March 26, 2013, 11:32:59 AM
299 Bypass Feedrate, that's the cookie.
Title: Re: external input as (shift on key board)
Post by: Overloaded on March 26, 2013, 11:35:52 AM
 :)
Title: Re: external input as (shift on key board)
Post by: Chaoticone on March 26, 2013, 11:36:45 AM
Thanks Russ............... need a note on that one. LOL  Searched for jog, rapid, never even thought of feed................ since it only affects jogging......  ::)

Brett
Title: Re: external input as (shift on key board)
Post by: Overloaded on March 26, 2013, 11:44:09 AM
If you update your .xls, let us know so we can get the new one.
It's not really clear the way it is.
Thanks Brett,
Russ
Title: Re: external input as (shift on key board)
Post by: nso on March 26, 2013, 02:28:30 PM
hi
first of all , thanks for your quick replay ( Overloaded and Chaoticone)
so, tomorrow test with brain... and  say what is happens  ;)
ahaa , i tried  led 58 ..that is my first idea  ;D but not work
thanks
Title: Re: external input as (shift on key board)
Post by: nso on March 27, 2013, 08:46:11 AM
hi
i tried today with 299 bypass feed rate but this is not result  :(
Title: Re: external input as (shift on key board)
Post by: Overloaded on March 27, 2013, 02:47:19 PM
Quite strange.
It doesn't work here now either.
Emulating the input with a hotkey did fine when first tried.
Emulation is working in Diagnostics, but no Bypass.
Hmmmm .... strange.
Very strange.
Title: Re: external input as (shift on key board)
Post by: Hood on March 27, 2013, 03:14:16 PM
You could have a brain like screenshot below, that would set slow jog DRO to 100% with button pushed and set to 10% when released, obviously you can change the 10% value to what you normally use just by altering the formula in the brain.
Hood
Title: Re: external input as (shift on key board)
Post by: Overloaded on March 27, 2013, 04:21:20 PM
Hi Hood,
 Your little ditty works a treat here.
I like the way you manipulate the system.

I still can't understand why the other worked for a short time, then crapped out.
I wont let it worry me though as your way seems to be solid.

Thanks,
Russ
Title: Re: external input as (shift on key board)
Post by: Overloaded on March 27, 2013, 04:25:33 PM
A cool thing about your way, you can change the % dro by manual entry to whatever you like and it will stay there while jogging ... even using the Shift key. It only reverts back to the lower Brain setting after hitting then releasing the external button.
Nifty.
Thanks again,
Russ
Title: Re: external input as (shift on key board)
Post by: Hood on March 27, 2013, 07:41:07 PM
Yes Russ, the Brain only sees the transition so will only change the DROs when the button is pressed or when it is released, all other times you are free to write to the DRO.
Hood
Title: Re: external input as (shift on key board)
Post by: nso on March 27, 2013, 11:15:38 PM
dear russ /hood i guess,it is best solution for me...
thanks a lot  :)