Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jimmybondi on January 13, 2008, 07:54:43 PM

Title: MPG on ModBus (not ModIO)
Post by: jimmybondi on January 13, 2008, 07:54:43 PM
Hi,

i just get a ModBus-device to work with Mach3.

I'm able to switch any Mach3-Button by the pendant and to light any LED on my pendant.
Pots for Speed- and Feedoverride work too, but:

how get running jogging by a MPG ?

I'm using a CubLoc because ModIO was to small by In and Outs.

Has anyone tried to get MPG working on ModBus without ModIO ?
Have i to setup the MPG in Ports&Pins ?

Regards
Frank (without any idea what to do ...)
Title: Re: MPG on ModBus (not ModIO)
Post by: poppabear on January 13, 2008, 08:57:38 PM
Yes you can do it with Aurturos boards the M1 series
Title: Re: MPG on ModBus (not ModIO)
Post by: Peter Homann on January 14, 2008, 10:24:28 PM
Hi,

i just get a ModBus-device to work with Mach3.

I'm able to switch any Mach3-Button by the pendant and to light any LED on my pendant.
Pots for Speed- and Feedoverride work too, but:

how get running jogging by a MPG ?

I'm using a CubLoc because ModIO was to small by In and Outs.

Has anyone tried to get MPG working on ModBus without ModIO ?
Have i to setup the MPG in Ports&Pins ?

Regards
Frank (without any idea what to do ...)


Frank,

You should have used a ModIO. ;D (Only joking)

The problem is most likely to be that you are not providing Mach with a 16 bit counter value. The counter is used to determine the how fast you are turning the MPG. Set up a counter in the Cubloc that just counts up at about 2KHz or so. Then read this in with the MPG count. Have a look at the ModIOMPG brain in Mach.

Cheers,

Peter.