开云体育

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

Re: MPG & Mach4

 

I have used this one with Mach3 and a Generic BOB and I am now in the process of upgrading to Mach4+PoKeys57+WIN10.


Re: MPG & Mach4

 

Found this on one of the universal pendant web pages.




Martin


Re: MPG & Mach4

 

I should have pointed out that these pendants are available on Ebay at much lower prices. Just use the site above to look at the connection details.



This is for Mach3 but I expect it to be similar to the Mach4 setup but may not be needed, may just require the pendant connecting to the Pokeys57.

Page 9 of this manual shows the pendant connector pin configuration.



Have a good read and see if it makes sense to you, ask away if you have more questions.

Martin


Re: MPG & Mach4

 

开云体育

You can buy a pendant for the Pokeys57 that is supposed to work with Mach3 and Mach4 so you could probably make your own if you knew the signals and connections involved. Probably easier to buy. I use a wireless pendant on my Mach3 driven lathe and it does make life much easier than trying to work with a keyboard that is always going to be a little remote from the place you want to stand when using the lathe.

?

?

Martin

?

Sent from for Windows 10

?


MPG & Mach4

 

New to CNC. I have a pokeys57 running a mini lathe. Took a while to get working. Now I would like to get away from a PC keyboard and mouse. I have been looking at many different MPGs. It seems that almost all work with Mach3 and not Mach4.

So I throw it out to the group. Any suggestions for a neophyte?

Thanks,

Dale Grice


Re: MODIO MPG

 

Update.
Did a reinstall.
Didn't help.
Set MACH3 to run in XP SP2 compatibility mode and re-assigned parallel port to the other setoff numbers from Device Manager. (it's a PCI card)
Reboot WIN-7.
After a bit more mucking around I have a working WIN-7 based MACH3, I can run the Motor Tuning dialog.
Set all the MPG ModIO parameters again. No Debugging and nothing else supported. Just the MPG1 Hi Speed.
And the MPG now works.
For now I'll consider this issue closed.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of John
Dammeyer
Sent: February-07-20 12:36 AM
To: [email protected]
Subject: Re: [MachCNC] MODIO MPG

Progress report. Works on the WIN-XP MACH3 PC sitting by the mill. It's a
dual boot PC that also does LinuxCNC. I'lm already working on the LinuxCNC
side of ModIO interfacing.

So since the WIN-7 system in my office was giving me trouble I did the
following.

Copied over the WIN-XP C:/MACH3 folder onto a USB stick.
Copied that MACH3 folder onto C:/MACH3 after remaining the old MACH3
folder to MACH3-old
Ran MACH3.
Guess what. Now the ModIO MPG works when I run the same MACH3
G3616-parport config that works on WIN-XP with real hardware.

What doesn't work, and that's kind of confusing, is the Motor Tuning. Click
on that and nothing happens. No dialog with motor parameters. This works
on the WIN-XP system. No error messages. Just no tuning dialog.

I'm going to guess it's somehow off the visible screen. But where? And how
do I bring it back?

Thanks
John



Re: Mach4 & PoKeys Axis Mapping error

 
Edited

Hi? Matevz,
Thanks for your reply, that is exactly what I was looking for.
Bob


Re: MODIO MPG

 

Progress report. Works on the WIN-XP MACH3 PC sitting by the mill. It's a dual boot PC that also does LinuxCNC. I'lm already working on the LinuxCNC side of ModIO interfacing.

So since the WIN-7 system in my office was giving me trouble I did the following.

Copied over the WIN-XP C:/MACH3 folder onto a USB stick.
Copied that MACH3 folder onto C:/MACH3 after remaining the old MACH3 folder to MACH3-old
Ran MACH3.
Guess what. Now the ModIO MPG works when I run the same MACH3 G3616-parport config that works on WIN-XP with real hardware.

What doesn't work, and that's kind of confusing, is the Motor Tuning. Click on that and nothing happens. No dialog with motor parameters. This works on the WIN-XP system. No error messages. Just no tuning dialog.

I'm going to guess it's somehow off the visible screen. But where? And how do I bring it back?

Thanks
John


Re: Mach4 & PoKeys Axis Mapping error

 

Hi, Bob

The message is displayed if a product of 'steps per unit' and maximum velocity exceeds what the device can actually produce (125.000 steps per second). It tells you that the maximum allowed velocity was adjusted.

Regards,
Matev?

V V sre., 5. feb. 2020 ob 12:33 je oseba Bob Pratl <b.pratl@...> napisala:

Using Mach4 with PoKeys M16 board with a pendant I get an error "Motion parameters are been adjusted to..." and I have to reselect the Axis Mapping and Motor Parameters.
Mach4 runs OK without the C22 Pendant board. It seems strange on now Mach4 is being re-configured when plugging in a board. Very Confused.


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


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


Re: 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


Re: 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 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.


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.

The MPG/Enc Config tab is for when the MPG is connected to a parallel port. So on that tab deselect MPG1 there.

Also you should be able to see the MPG count on the diagnostic Page in Mach3


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.

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


Re: MODIO MPG

 

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


Re: 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


Re: MODIO MPG

 

开云体育

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

?


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

?


Mach4 & PoKeys Axis Mapping error

 

Using Mach4 with PoKeys M16 board with a pendant I get an error "Motion parameters are been adjusted to..." and I have to reselect the Axis Mapping and Motor Parameters.
Mach4 runs OK without the C22 Pendant board. It seems strange on now Mach4 is being re-configured when plugging in a board. Very Confused.


Re: RESET verses OFFLINE Behaviour -- was Electrical Noise.

 

开云体育

Success!? Added a 1 second time delay.? If anyone is interested here are the two states that are involved.? Probably didn't need a full second but it doesn't seem to hurt anything and now I can click the MACH RESET button and my ENABLE to the drives goes off.? Hitting any of the MASTER switches of course is more dramatic since that removes power too. ?Clicking the ONLINE button does what the MASTER switches do.?

?

The whole point of the ONLINE/OFFLINE button on my system is to be able to clear faults like if the servos end up with a following error or some other motor control issue.

?

I think I may still put the logic analyzer on this. ?Just to find out why the timing is off.

John

?

?

/*
* FAULT_POWER_DELAY :
*? This is where the system lives under normal conditions.
*? Monitor High Voltage in case it drops out and if so debounce that signal
*? Monitor the Servo and Stepper fault signals and if one occurs, tell the PMDX by
?*? asserting the FAULT output which will shut off power.
*? That FAULT is only presented for 4 seconds and then removed so that we can
?*? re-enable the PMDX.
*/

?
case FAULT_POWER_DELAY :
???
if (TimerDone()) {
???????
// Check if HV vanishe.
??????? if ( (bHV_AVAIL_ == NO_HIGH_VOLTAGE) ) {
??????????? StartTimer(T_100MS);???????????????
// Let things settle.
??????????? FaultState = FAULT_VOLTAGE_LOW;???? // Debounce the inputs in case it was electrical noise.
??????? }
???????
else if ( (bSTMBL_FAULT_ == STMBL_FAULTED) ||
????????????????? (bUHU_ESTOP_
== UHU_ESTOP_ACTIVE) ||
????????????????? (bGECKO_FAULT_
== GECKO_FAULTED)
??????????????? )
{
???????????
// One of the faults occurred
??????????? SetFAULT();???? // Assert Fault to PMDX-126
??????????? StartTimer(T_4SEC);???????????? // But only for a short time.
??????????? FaultState = FAULT_WAIT_FAULT_CLEAR;
???????
}
???
}
???
break;

/*
* FAULT_VOLTAGE_LOW :
*? Debouncing the HV signal.? If it really is gone start a timer, assert the FAULT signal
*? and then go wait for power to come back ON.
*/

?
case FAULT_VOLTAGE_LOW :
???
if (TimerDone()) {
???????
// Check again if HV vanishes or if somehow enable is cleared.
??????? if ( (bHV_AVAIL_ == NO_HIGH_VOLTAGE) ) {
??????????? SetFAULT();????????????????????
// Assert a FAULT condition
??????????? StartTimer(T_4SEC);???????????? // Let things settle.
????? ??????FaultState = FAULT_INIT;??????? // And go back and restart waiting for HV
??????? }
???????
else { // Otherwise ignore the blip.
??????????? StartTimer(T_1SEC);???????????? // Let things settle for MACH3.
??????????? FaultState = FAULT_POWER_DELAY;
???????
}
???
}
???
break;

?

?

?

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of John Dammeyer
Sent: February-04-20 3:42 PM
To: [email protected]
Subject: Re: [MachCNC] RESET verses OFFLINE Behaviour -- was Electrical Noise.

?

I tweaked the code in the small PIC12F processor that monitors the High Voltage Available, System ENABLE and the various servo drive FAULT outputs.? The end result is the little board asserts the FAULT signal into the PMDX-126 BoB.

?

The issue I ran into was that both the HP_UHU servo drives and the STMBL drives assert a fault when there isn't one so what I've done is effectively gated the various faults so they aren't allowed through to the PMDX-126 while the ENABLE (from PIN1 of the DB-25) is false.

?

And when this ENABLE signal is brought false, it resets the FAULTs on the Servos.

?

The High Voltage available is tested because the STMBL servo drive issues a fault if the HV is missing.? So after an ESTOP, which disconnects HV, the charge pump must be running which then enables the HV power.? Until the power is ready I don't want the ENABLE to go active.

?

Under LinuxCNC I have that working.? Under MACH3 it's still a bit of a sequence the buttons in the right order and even then it looks like there's a tiny bit of race condition that causes a fault condition.? Haven't figured that one out yet.? I'll probably have to pull out my little fault sense board and wire in a header to which I can attach a logic analyzer.? No idea why MACH3 isn't working while LinuxCNC is.

?

John

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Dan Mauch
Sent: February-01-20 9:44 AM
To: [email protected]
Subject: Re: [MachCNC] RESET verses OFFLINE Behaviour -- was Electrical Noise.

?

?I've never tried this but I think if you were to use the screen editor to swap the reset and off line functions you could solve the problem.
Dan Mauch


Re: RESET verses OFFLINE Behaviour -- was Electrical Noise.

 

开云体育

I tweaked the code in the small PIC12F processor that monitors the High Voltage Available, System ENABLE and the various servo drive FAULT outputs.? The end result is the little board asserts the FAULT signal into the PMDX-126 BoB.

?

The issue I ran into was that both the HP_UHU servo drives and the STMBL drives assert a fault when there isn't one so what I've done is effectively gated the various faults so they aren't allowed through to the PMDX-126 while the ENABLE (from PIN1 of the DB-25) is false.

?

And when this ENABLE signal is brought false, it resets the FAULTs on the Servos.

?

The High Voltage available is tested because the STMBL servo drive issues a fault if the HV is missing.? So after an ESTOP, which disconnects HV, the charge pump must be running which then enables the HV power. ?Until the power is ready I don't want the ENABLE to go active.

?

Under LinuxCNC I have that working.? Under MACH3 it's still a bit of a sequence the buttons in the right order and even then it looks like there's a tiny bit of race condition that causes a fault condition.? Haven't figured that one out yet.? I'll probably have to pull out my little fault sense board and wire in a header to which I can attach a logic analyzer.? No idea why MACH3 isn't working while LinuxCNC is.

?

John

?

?

From: [email protected] [mailto:[email protected]] On Behalf Of Dan Mauch
Sent: February-01-20 9:44 AM
To: [email protected]
Subject: Re: [MachCNC] RESET verses OFFLINE Behaviour -- was Electrical Noise.

?

?I've never tried this but I think if you were to use the screen editor to swap the reset and off line functions you could solve the problem.
Dan Mauch