Machsupport Forum

Mach Discussion => Brains Development => Topic started by: Chip on November 18, 2007, 10:45:29 PM

Title: Brain Jog XY
Post by: Chip on November 18, 2007, 10:45:29 PM
Hi, All

Just fooling around with Brain's a little. Using output 6 to start and stop Jog X+ Y+ axises, Works Pretty Darn Good.
First it changes to Cont Jog then Jog's XY together, Then another Click turns them Off, Really Nice !!!

Thank you  Art and All responsible for these Features.

Note's:

Cont. & Inc. Jog's are backwards in Brain"s.
Cont. Jog will Jog both axis's.

Inc. Jog's one axis at a time ?.
But on MDI line both will jog inc. at the same time ?.

Would be nice if Brain's would allow for Input User-Button's, A code in Edit Button Script to allow brain's to see/use them.
Maybe some User-Led's , User-Button's, User-Output's in Output"s Also, Just thinking down the road a little.
   
Thanks, Chip
Title: Re: Brain Jog XY
Post by: Chip on November 19, 2007, 02:45:54 AM
Hi, All

Just playing around some-more, 45's 4 corner XY.

Put this in 4 Buttons, Press to start, Press to stop

If IsOutputActive( OUTPUT17 ) Then
   DeActivateSignal( OUTPUT17 )
Else
   ActivateSignal( OUTPUT17 )
End If   

Change the 17-20 to as shone in Pic., I no theres a better way in VB to press buttons and have it stop on release of button, I just don't no the VB code for it.

In Config, Ports & Pins, Outputs, Check mark 17-20 ON, Doesn't appear you need a Port or Pin assignment for it to work.

Haven-Fun, Chip