Hello Guest it is July 15, 2024, 06:50:22 AM

Author Topic: Motion step Overflow when i use two MPG's at same time  (Read 7443 times)

0 Members and 1 Guest are viewing this topic.

Offline GerdS

*
  •  42 42
Motion step Overflow when i use two MPG's at same time
« on: April 08, 2016, 11:56:33 AM »
My Lathe has two Encoders to operate the machine also conventional.
With Mach4 i have the problem when i use two Encoders at same time, i get a Motion Step Overflow Error with some random error codes.
But this only happens, when i start turning both wheels at same time.
When i start one Wheel and the second after, then everything seems to be ok.
I use newest Pokeys and Mach 4 versions.
Maybe i did something wrong in configurations.
I tried to use the Pokeys Plugin settings to map the MPGs and the Multiplier but i didnt work.
Now i used the Mach 4 Mpg settings to connect the wheels and a LUA Signal script for the Multiplier.
The unconventional Multiplier values i used, (screenshots) is balanced to my motor settings.
« Last Edit: April 08, 2016, 11:58:26 AM by GerdS »

Offline NeoTO

*
  •  504 504
    • PoLabs
Re: Motion step Overflow when i use two MPG's at same time
« Reply #1 on: April 14, 2016, 12:15:40 AM »
We were caught up in Mach4 updates - initially, Mach4 did not support the MPG jogging and we implemented our own system that apparently fails to operate correctly since MPG support was implemented in Mach4 directly. We will check and fix the operation of it.
www.poscope.com home of PoKeys USB HID, IO, USB, Ethernet controler and PoScope USB PC oscilloscope

Offline GerdS

*
  •  42 42
Re: Motion step Overflow when i use two MPG's at same time
« Reply #2 on: April 14, 2016, 02:04:53 PM »
Hello NeoTo,
thanks i will waiting for a fix.
But i have still Problems with my Spindel index also in Mach4.
I will open a new Post for this problem. So it's better to track for other users.

Gerd

Offline GerdS

*
  •  42 42
Re: Motion step Overflow when i use two MPG's at same time
« Reply #3 on: April 17, 2016, 11:20:58 AM »
Hello NeoTo,
i just noticed while debugging Lua calls that a constant stream of MpgSetAxis debug Messages slow down the Log window.
But only when Jog Mode is active in Pokeys Plugin.
It's not possible to close the window after a couple of seconds anymore.
Only via Taskmanger Mach4

Gerd

Offline GerdS

*
  •  42 42
Re: Motion step Overflow when i use two MPG's at same time
« Reply #4 on: May 07, 2016, 03:17:01 PM »
Hello NeoTo,
could you find a Solution regarding the MPG problem.
In the new Plugin version, i still have the same effect with this Motion Overflow Error when i try to turn the Wheels at same time.
I also tried to connect the MPG in Mach4 via API in the screenload script, instead of using the plugin settings. But this also not helped.

mc.mcMpgSetAxis(inst, 0, mc.X_AXIS)
mc.mcMpgSetAxis(inst, 1, mc.Z_AXIS)

Offline NeoTO

*
  •  504 504
    • PoLabs
Re: Motion step Overflow when i use two MPG's at same time
« Reply #5 on: May 08, 2016, 12:59:49 AM »
Hi, GerdS

We are working on solving the issue. This one requires us to change a good portion of the plugin, move some of its functionality to scripts, prepare tutorials for users etc.

www.poscope.com home of PoKeys USB HID, IO, USB, Ethernet controler and PoScope USB PC oscilloscope

Offline NeoTO

*
  •  504 504
    • PoLabs
Re: Motion step Overflow when i use two MPG's at same time
« Reply #6 on: May 08, 2016, 01:06:17 AM »
One question regarding your issue - is this correct that you can jog each MPG individually without any problems, but jogging with both at the same time produces the step overflow? Does it happen immediately or at certain speed?
www.poscope.com home of PoKeys USB HID, IO, USB, Ethernet controler and PoScope USB PC oscilloscope

Offline GerdS

*
  •  42 42
Re: Motion step Overflow when i use two MPG's at same time
« Reply #7 on: May 08, 2016, 04:33:12 AM »
Hi, NeoTo
each MPG individual is ok.
Both MPG's are ok when i turn fast.
When i turn both slow, the motors are running very clunky and immediately i get this motion step overflow error.
Regarding the constant MpgSetAxis debug Messages in my earlyer post. After conecting the MPG's via API directly, these Messages are away.

Offline GerdS

*
  •  42 42
Re: Motion step Overflow when i use two MPG's at same time
« Reply #8 on: September 05, 2016, 04:15:49 PM »
Hello Pokeys Team.
is there any News about the Motion step Overflow poblem.
Is still not working. Fast turning the Wheels Ok, but not slow.

Gerd

Offline NeoTO

*
  •  504 504
    • PoLabs
Re: Motion step Overflow when i use two MPG's at same time
« Reply #9 on: September 07, 2016, 03:14:57 PM »
Hi, Gerd

We are unable to replicate this issue with the latest plugin and Mach4. The additional unneeded messages have been removed a while ago, but the overflow problem on MPG jogging action is something we are unable to replicate.
www.poscope.com home of PoKeys USB HID, IO, USB, Ethernet controler and PoScope USB PC oscilloscope