Hello Guest it is March 29, 2024, 04:24:37 AM

Author Topic: Mach3 and a tube bender  (Read 48983 times)

0 Members and 1 Guest are viewing this topic.

Offline KTM

*
  •  92 92
    • View Profile
Re: Mach3 and a tube bender
« Reply #10 on: February 13, 2009, 08:07:38 AM »
I would put 1 in count per unit for the encoder in ports and pins, as Mach does not know when the encoder has done 1 revolution, 1 unit will equal 1 degree with a 360ppr encoder.

Regards

KTM

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Mach3 and a tube bender
« Reply #11 on: February 13, 2009, 09:02:23 AM »
Good to hear that is was a Wierd other program issue.........

Did the Macro above help you out?
what Encoder DRO did you end up using?

scott
fun times
Re: Mach3 and a tube bender
« Reply #12 on: February 13, 2009, 03:24:57 PM »
I haven't tried your macro yet.  I am having count issues with my encoder.  Mach reports 360 degrees when my encoder truly moves 90 degrees.  I have tried different values under the counts/unit.  It seems to have no effect, regardless of what value I choose.  Any ideas on what is going on here?
Re: Mach3 and a tube bender
« Reply #13 on: February 13, 2009, 03:28:05 PM »
Since 90º is one quarter turn, then set your units per rev to 1440, i have not used an encoder before, you might need to restart mach for settings to take effect.

Regards
Fernando
Re: Mach3 and a tube bender
« Reply #14 on: February 13, 2009, 03:32:17 PM »
Fernando,

I get the same reading.  360* from the DRO for 90 degrees of actual movement.
Re: Mach3 and a tube bender
« Reply #15 on: February 13, 2009, 03:43:16 PM »
ok, try this...

since it is counts/unit

and the unit you are looking for is degrees... then 4 ticks of the encoder should give you one degree you turn...

have you tried a value of 4?? if that doesnt do it, try a 1

what happens if you turn your encoder more than 90º say 180º or 360º, what does the dro display?

there is also an MPG calibration in the function cfgs menu

Fernando
Re: Mach3 and a tube bender
« Reply #16 on: February 13, 2009, 04:12:59 PM »
Fernando,

I tried 1 and 4 earlier and they both did nothing.  Restarting the application doesn't help.  If I turn my encoder 180*, Mach reports 720*.  The same multiple goes for 360* and so on.  

I am using DRO29 in the settings screen.  I tried my own screen with DRO 170 and 205.  Both didn't change when I rotated the encoder shaft.  The MPG Configuration utility has no effect.
« Last Edit: February 13, 2009, 05:15:40 PM by supahonkey »
Re: Mach3 and a tube bender
« Reply #17 on: February 13, 2009, 05:04:26 PM »
im out of ideas!!
sorry friend....

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Mach3 and a tube bender
« Reply #18 on: February 14, 2009, 09:40:59 AM »
Reduce your counts to 1 count per unit, and set your Jog Mode type to "Single Step" and if that doesnt work, try "Multi-Step".

scott
fun times
Re: Mach3 and a tube bender
« Reply #19 on: February 14, 2009, 06:13:46 PM »
I reduced my counts 1 count per unit.  I tried both single and multi step modes and neither had an effect. 

Scott, on the last page you said, "also put a user DRO for the angle entry on your screen, call it UserDRO2000."  How do I call a DRO UserDRO2000?  In screen designer, I can only assign an integer as an OEMCode integer.  I see you have GetOemDRO and GetOEMUser, but I don't seen an option for OEMUser.

Here is my screen:



I am lost on this one.  Does the error have to do with not choosing the correct DRO to display encoder shaft position?
« Last Edit: February 14, 2009, 06:35:07 PM by supahonkey »