¿ªÔÆÌåÓý

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

Re: MODIO MPG


 

See below.

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

Hi John,


I'll have to go to the shed and set it up to be able to give you a step
by step.
See answers below;

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.
If you have selected Hi-Res output, you will get 4 pluses per MPG
detent. If you don't select Hi-Res, then you will only get 1.
That makes sense. In either case on the WIN-7 MACH3 it never incremented.


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.
The Cal function asks you to move 1 detent and it will measure how many
pulses/detent there are. For the ModIO Hi-Res mode it will be 4, Lo-Res
mode it will be 1.
As above never a change.


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.
It sounds like pins 6 and 7 are also being used to select the axis or
something, that is screwing up Mach3. Try not enabling the MPG in the
configuration tab for the MPGs. I think that in the Modbus ModIO dialog,
when you tick the MPG1 checkbox, Mach3 knows that the MPG is from the
ModIO. Mach3 doesn't need to know what ModIO pins and port the MPG is
connected to. Mach3 knows that the MPG count for MPG1 is in register
1150.
On the system where it now works it doesn't matter if MPG1 is set for port 0 and AB = 6,7. Works in either case with one small detail. Without MPG1 selected for port 0, AB=6,7 it's no longer possible to select the MPG on the flyout image. Only between continuous and single step. So although MACH may not use those pin definitions because it gets updated counts from the ModBus messages it needs at least one of the MPGs selected to allow an MPG to be selected as the movement instigator.


The MPG/Enc Config tab is for when the MPG is connected to a parallel
port. So on that tab deselect MPG1 there.
As above, deselecting that no longer allows the flyout Pendant graphic to select MPG by tapping on the ALT A button.

Also you should be able to see the MPG count on the diagnostic Page in
Mach3
Yes. I can see the counter change on the MODBUS read registers. I didn't check the diagnostics page.



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.
I don't have an explanation for that. I haven't seen it. I'll check it
tonight.
As I said in the other email reply. Putting the cursor on the empty field and then using the down arrow scrolls through the list. Once 56700 is chosen it remains sticky. It's improper behaviour for that kind of object. Clicking on the drop down arrow should always show the whole list.

I have a customer problem to solve tonight so I may not get back to moving the ModIO back to the WIN-7 system until tomorrow.

Thanks
John



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.