Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread Florian Rist
Hi
I just tried to link all three axis:

net emcmot.00.pos-cmd   axis.0.motor-pos-cmd=> pid.0.command
net emcmot.00.pos-cmd => pid.1.command
net emcmot.00.pos-cmd => pid.2.command

That seams to work. I can't home any more, but for now that's good 
enough.

Thanks for your super quick support. :-)

See you
Florian



--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread John Kasunich


On Thu, Sep 29, 2016, at 11:15 AM, John Kasunich wrote:
> 
> 
> On Thu, Sep 29, 2016, at 10:48 AM, Florian Rist wrote:

> > Could I do something with the axis jog pins:
> > 
> >   axis.0.jog-vel-mode
> >   axis.0.jog-enable
> >   axis.0.jog-scale
> 
> Those are for using a jogwheel.  See
> http://linuxcnc.org/docs/2.7/html/config/core-components.html
> 
> You could use a stepgen in quadrature mode to fake the jogwheel
> counts, and use two buttons to make that stepgen go up or down.
> If you send the "jogwheel" counts to all axes, set the axis.N.jog-scale
> the same for all axes, and turn on axis.N.jog-enable for all axes,
> they WILL move the same distance.

Actually you don't even have to mess around with the stepgen.
All you need is an S32 signal that can be increment or decremented.

The updown component can generate such a signal.  It requires
pulses on its up or down input pins to count.

To make pulses from a pushbutton you could use a pair of xor2
components.  (One for up, one for down).  Connect the button to
one of the XOR inputs.  Connect the XOR output to its other input
(feedback).  When the button signal is "1", the output will toggle
every servo period - meaning 500 counts per second if using a 1mS
servo thread.  When the button signal is "0" the output will sit still.

If you know that the updown block will be counting up or down
at 500Hz, you can set axis.N.jog-scale to get whatever speed you
want at the motor.  For example, a scale of 0.01" per tick times
500 ticks per second would be 5 inches per second.





-- 
  John Kasunich
  jmkasun...@fastmail.fm

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread John Kasunich


On Thu, Sep 29, 2016, at 10:48 AM, Florian Rist wrote:
> Hi John
> 
> > Do you need/intend to use g-code at all for this installation?
> 
> Yes.

In that case you want the LinuxCNC motion planner.  It will
handle all the jogging, homing, etc, for you.

> 
> And I'm now just trying to modify it quickly to do a manual 
> demonstration.
> 
> Could I do something with the axis jog pins:
> 
>   axis.0.jog-vel-mode
>   axis.0.jog-enable
>   axis.0.jog-scale

Those are for using a jogwheel.  See
http://linuxcnc.org/docs/2.7/html/config/core-components.html

I just read that using halui didn't work because the axes don't 
track perfectly (not really a surprise, since halui is a non-realtime
component).

You could use a stepgen in quadrature mode to fake the jogwheel
counts, and use two buttons to make that stepgen go up or down.
If you send the "jogwheel" counts to all axes, set the axis.N.jog-scale
the same for all axes, and turn on axis.N.jog-enable for all axes,
they WILL move the same distance.

 
> > I have a few custom HAL components that I could share if useful.
> > For example, one lets you switch from manually controlling each
> > motor (for "homing") to coordinated control.
>
> Oh, sounds very interesting.

As long as you are using LinuxCNC's motion controller and g-code
you don't need my components.


-- 
  John Kasunich
  jmkasun...@fastmail.fm

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread Florian Rist
Hi Andy,
thanks for the suggestion:

> Connect the buttons to the halui.jog.N.minus  and halui.jog.N.plus pins

That is indeed very easy. I just tried this. It kind of works. 
Unfortunately the axis do not move fully synchronized. X starts first, a 
fraction of second later y start to turn and y is last. On multiple jogs 
this results in the three position slowly drifting apart.

I guess I could link all three motor position commands, but than I cant 
home individually any more?

See you
Florina

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread Florian Rist
Hi John

> Do you need/intend to use g-code at all for this installation?

Yes.

And I'm now just trying to modify it quickly to do a manual 
demonstration.

Could I do something with the axis jog pins:

  axis.0.jog-vel-mode
  axis.0.jog-enable
  axis.0.jog-scale


> I have a few custom HAL components that I could share if useful.
> For example, one lets you switch from manually controlling each
> motor (for "homing") to coordinated control.

Oh, sounds very interesting.

See you
Florian

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread andy pugh
On 29 September 2016 at 14:58, Florian Rist  wrote:

> Whats the best way to do this

Connect the buttons to the halui.jog.N.minus  and halui.jog.N.plus pins

http://linuxcnc.org/docs/2.7/html/man/man1/halui.1.html


-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread John Kasunich
Do you need/intend to use g-code at all for this installation?

If not, it is probably a good candidate for a "hal-only" configuration.
Stepgens, limit2 or limit3 blocks, muxes, integrators, etc, can be used
to do just about anything you can imagine.  PyVCP can be used for
on-screen controls, and joysticks, buttons or other devices for external
controls.

As an example: http://www.teslaorchestra.com/claw-game.html

I have a few custom HAL components that I could share if useful.
For example, one lets you switch from manually controlling each 
motor (for "homing") to coordinated control.



On Thu, Sep 29, 2016, at 09:58 AM, Florian Rist wrote:
> Hi,
> just a simple question:
> 
> I need to add two momentary switches to a 3 axis machine (not a mill, 
> more like a art installation) that jog all axis (xyz). Press one button 
> all axis move up, press the other one all move done in sync.
> 
> Whats the best way to do this. The three axis are moved by servo motors 
> via a Mesa card and Mesa amplifiers.
> 
> I have plenty of unused IOs on the Mesa card.
> 

-- 
  John Kasunich
  jmkasun...@fastmail.fm

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread Dave Caroline
Maybe some kins so it is a real vector (I think that is what another
art installation did)

Dave Caroline

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Best way to jog all three axis using a single push button?

2016-09-29 Thread Florian Rist
Hi,
just a simple question:

I need to add two momentary switches to a 3 axis machine (not a mill, 
more like a art installation) that jog all axis (xyz). Press one button 
all axis move up, press the other one all move done in sync.

Whats the best way to do this. The three axis are moved by servo motors 
via a Mesa card and Mesa amplifiers.

I have plenty of unused IOs on the Mesa card.

See you
Flo

--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users