Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: szcharle on February 15, 2007, 06:25:51 AM

Title: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: szcharle on February 15, 2007, 06:25:51 AM
hello,
i recent use L297+IRFZ44N(N-MOS) to made a driver for stepper motor,that will work for CNC

purpose.
but i found at holding mode(i mean when there no clock signal,and motor's some winding have

current,some not, like B & C is on, and A & B is off)
the Z44 Mos is very hot(estimate at 100 C degree),though i already have heat sink on it.

so i hope i can use enable founction for mach2 ,like Kcam4 have 3 enable for X,Y,Z each,to

reduce the heat,

but at mach2 setup,it have 3 enable, and in the manual it's said usually only use one enable

for 3 axis,
the question is ,does the 3 enable that can configured at output signals is mapping to

X,Y,Z axis (if it's mapping like Kcam4,where to configure?)
or the 3 enable is only same founction as 1 enable?

also,i not clear know the heat is normal or abnormal, i can change another Mos, higher Pd

power,but i am afraid the heat may damage the MOS(will cause electric accident! or the heat

will damage the stepper motor.
it's safe or not ,i don't know!

ok ,and the Chinese Tradition New Year is coming ,may you "Kong Hei Fa Choi"
it's cantonese ,mean "hope you got big money"
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Brian Barker on February 23, 2007, 10:03:11 AM
Use Mach3 and you can put an Enable line for every axis and thst should fix your problem. The outputs that you need are called Enable1-6 1=x and so on...
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Tom_Aiken on April 06, 2007, 08:03:38 AM
Hi

I'm new here from Nova Scotia Canada.
Mach 2/3 seem very able and I've worked my way through everything except the motor enable settings. I can get the motors turning fine but how do you have the enable shut off automatically after motion like in KCam. Or after 1 or 2 secs after motion? I'm running into the same problem as Szcharle ... my motors are heating up

thanks Tom
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Brian Barker on April 06, 2007, 10:36:16 AM
In Mach3 there is a "Current Hi/Low" output that should fix your problem
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Tom_Aiken on April 06, 2007, 10:44:48 AM
YES!

That got it. Thanks very much for the quick reply

Tom
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Tom_Aiken on April 06, 2007, 11:48:32 AM
Well really it works great but it turns on current to all motors.
Is there a way to do something similar but for individual motors separately?

Tom
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Brian Barker on April 06, 2007, 11:49:46 AM
We can only do it for all the motors :(
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Tom_Aiken on April 06, 2007, 12:01:24 PM
Thanks again.
I'll put my thinking cap on and try and modify my setup

Tom
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 02, 2009, 01:06:38 PM
There is no any solution for this problem?
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 03, 2009, 01:42:42 PM
no body help me ?
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Hood on August 03, 2009, 02:13:24 PM
what is your problem?
Hood
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 03, 2009, 02:41:40 PM
thx for reply

hello,
i recent use L297+IRFZ44N(N-MOS) to made a driver for stepper motor,that will work for CNC

purpose.
but i found at holding mode(i mean when there no clock signal,and motor's some winding have

current,some not, like B & C is on, and A & B is off)
the Z44 Mos is very hot(estimate at 100 C degree),though i already have heat sink on it.

so i hope i can use enable founction for mach2 ,like Kcam4 have 3 enable for X,Y,Z each,to

reduce the heat,

but at mach2 setup,it have 3 enable, and in the manual it's said usually only use one enable

for 3 axis,
the question is ,does the 3 enable that can configured at output signals is mapping to

X,Y,Z axis (if it's mapping like Kcam4,where to configure?)
or the 3 enable is only same founction as 1 enable?

also,i not clear know the heat is normal or abnormal, i can change another Mos, higher Pd

power,but i am afraid the heat may damage the MOS(will cause electric accident! or the heat

will damage the stepper motor.
it's safe or not ,i don't know!

ok ,and the Chinese Tradition New Year is coming ,may you "Kong Hei Fa Choi"
it's cantonese ,mean "hope you got big money"

ENABLE PIN FOR L297
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Hood on August 03, 2009, 04:42:01 PM
Sirry still dont follow, if you are needing an enable signal for the drives then just set an enable up in Mach and connect to the enable input on the drive. If you are needing something different then please ask again.
Hood
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 04, 2009, 02:58:53 AM
when there no clock signal,and motor's some winding have current
i mean when no signal(no step) but enable pin is active.
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Chip on August 04, 2009, 03:26:47 AM
Hi, Manmardam

Maybe you need a pull down or pull up resistor 1000 ohm's or so on the puls pin's, What do you think Hood, Maybe a noise issue.

Chip
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 04, 2009, 03:31:17 AM
please read first post in thread    
Carefully
its problem.
no noise
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Hood on August 04, 2009, 03:41:41 AM
I am not sure if I am understanding the first post correctly but sounds like you may be wanting a way to reduce the current  when the axis is stationary. If this is the case then I dont think there is a way to do this in Mach, this is normally handled internally in stepper drives.
Hood
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 04, 2009, 05:12:28 AM
L297 has 3 pins as input. STEP ,DIR and ENABLE.
How can i use VB to control this pin of L297 (ENABLE pin)

I mean use VB to control LPT pins for enabeling or disabeling the L297 ENABLE pin
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Hood on August 04, 2009, 05:42:59 AM
You can set it up in Mach as an OutPut and then the VB to activate it would be (where * is the output number you have used)

ActivateSignal(OutPut*)

To deactivate it it is

DeActivateSignal(OutPut*)


Hood


Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 04, 2009, 06:05:44 AM
so how can i write the code to enable this pin(LPT pin) before driving STEP pin of L297 and disable the LPT pin after finishing driving STEP pin

I'm a beginner in vb and i need some help

Thanks
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: Hood on August 04, 2009, 06:40:38 AM
You cant as far as I know, that is a function that most stepper drives have internally (current reduction) so if your drives dont have that then afraid you are out of luck as far as I know.

Hood
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 04, 2009, 08:05:30 AM
Thanks anyway.
It seems that I dont have access to STEP and DIR signals in VB
http://www.machsupport.com/MachCustomizeWiki/index.php?title=VB_Constants_for_Signal_Names (http://www.machsupport.com/MachCustomizeWiki/index.php?title=VB_Constants_for_Signal_Names)
is that true?

or if not how can i access them
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: vmax549 on August 09, 2009, 08:20:40 PM
YOu cannot do what you are asking. Mach is a machine controller IT controls the step and direction outputs not you.

Your problem seems to stem from a VERY bad drive design. Redesign the drives to industry standards and your problem of overheating will go away.

You can certainly control the enable signals BUT nowhere near fast enough to use as a heating control mechanism. You would loose control of the output pulse stream and loose steps every time you tried to start movement.

Mach was not designed to correct BAD design flaws in drive controls.

Sorry, (;-) TP
Title: Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
Post by: manmeran on August 25, 2009, 05:19:11 AM
I solve this problem with microcontroller