¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: MODIO MPG


 

Here's what I've done. I moved the ModIO over the dual boot PC running WIN-XP at the mill. Set up what looks like the exact same set of parameters and it wasn't working. I did try setting the baud rate on the MACHScreen3 screenshot to 57600 tabbed out and then send Config and then reset. Still does come back with 9600.

Now I have only Disable Debug checked and use MPG1on 7,8 and MPG Hi res ON Checked. Nothing else.

Restarted MACH3 again and suddenly on the real mill not only are the DROs changing but the metal is moving.

Just went back now and tried using the arrow keys on the baud rate list and how about that. I can scroll through the values. So I scrolled to 57600 and Send Config. That worked. RESET MODIO. That worked. Lights back to blinking. Bringing that screen back now each time it shows 57600.

And MPG still moves metal.

Also now the CAL button dialog properly counts clocks for one encoder click. Which makes sense.

I will take it back to the WIN-7 PC running MACH3 and make the config screens match the working hardware and let you know.

John

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Peter Homann
Sent: February-06-20 6:37 PM
To: [email protected]
Subject: Re: [MachCNC] MODIO MPG

Hi John,

Just a thought on the baud rate issue. Maybe the list is set to display
1 value only. Can you use the up and down key to scroll through the
values?

Cheers,

Peter


On 2020-02-07 03:52, John Dammeyer wrote:
Hi Peter,
1. Legacy Modbus Module.
2. Both are checked marked as shown in MachScreen1.jpg
3. Association with the MACH3 core is what does not appear to be
happening.

So. Do I understand correctly that if the MPG knob with its 100
detents connected to the internal quadrature encoder produces 4 edges
and increments/decrements the first register by 4 that we have a
functional Modbus up to MACH3 receiving data.

That the CAL button when pressed and launches the calibration screen I
should see one click of the encoder create a count of 4? I can fill
that value in on the Ports and Pins, Encoder/MPGs.

I have selected MPG #1 as Port 0, Pins 6,7. When not selected in
Ports and Pins, the selected axis in the tabbed MPG panel tends to
increment at what appears to be the blinking rate of the two LEDs on
the ModIO. I do make sure I stop and restart MACH when I do these
tests. When I do enable port0 pins,6,7 for MPG#1 the selected axis
stops incrementing. I think this has to be the biggest clue.

One other odd thing is the MAchScreen3 grab. The only baud rate in
the pull down is 9600. Can't enter 57600 although clearly as
MachScreen1.jpg shows I can open and read the registers.

Thanks
John



-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Peter Homann
Sent: February-06-20 1:57 AM
To: [email protected]
Subject: Re: [MachCNC] MODIO MPG

Hi John,

First question, are you using the legacy Modbus module in Mach3 or the
newer
Modbus plugin module?

If it is the former, you need to go to Function Cfgs menu, then setup
serial
modbus control. In the bottom left hand corner there is the ModIO
Device
support. Select the ModIO Modbus card and MPG #1.

Mach3 will then associate the MPG input from the ModIO to the Mach3
MPG
#1.



Cheers,

Peter


On 6/02/2020 2:58 pm, John Dammeyer wrote:
Let me try again.I don't think I've explained the issue I'm having very
well.

First I can set an input pin to INPUT2 and connect a switch to
ground.Toggling
the switch shows the INPUT2 indicator going on and off on the
diagnostics
screen so MODBus comms are working.

Run the Serial ModBus Control Monitor. Slave Address 6, Register 1150,
for
8
registers.

Check Holding registers

Click Read.

I move the encoder one detent

Click Read

and see the first register change by 4.

According to my Tek scope each detent causes 4 edges on the AB of the
encoder
so that change of 4 makes sense.

Therefore I know that the ModIO is sending encoder counts.

Under Ports and Pins, Encoder/MPG I have MPG#1 set to Port 0, Pin 6,7

Fast forward to the MPG Flyout panel by hitting tab.

JOG Mode is set to MPG.ALT-Z button clicked so Axis set to X

Click on CAL top RH corner.

And here's where it goes south.Up comes the calibration dialog.

Click on Cal Detent Size and move MPG one detent.Then click
Calculate.It
should show 4.It shows 0.

While it's zero clearly I'm not going to be able to calculate max speed
etc.
Nor will I see any motion.

So why if I can see the Modbus register change by 4 for every click (up
or
down depending on direction of MPG turn) is that information not going
any
further?

How do I connect that changing value into MACH3 encoder counting.I'm
missing
something but really can't see what.

Thanks

John

*From:*[email protected] [mailto:[email protected]] *On Behalf
Of
*John Dammeyer
*Sent:* February-05-20 12:22 PM
*To:* [email protected]
*Subject:* [MachCNC] MODIO MPG

I've got my Modio wired as per Figure 5.6



And using the MODBUS serial bus monitor tool in MACH3 I can see the
value of
the encoder counts change when I turn it.So it works all the way back
into
MACH3.

But how do I attach it to an axis?So turning it moves the axis?My Shuttle
Express has a button that selects an axis.The Chinese Pendant has a
rotary
switch that selects an axis.

How's that done?The Encoder/MPGs lists port pins.It's not like the HAL
in
LinuxCNC where one can 'attach' things.

Thanks

John

--
-----------------------------------------------------------------------------
Web :
email : groups@...
Phone : +61 421 601 665

Join [email protected] to automatically receive all group messages.