Hello Guest it is March 29, 2024, 11:00:33 AM

Author Topic: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?  (Read 10549 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #10 on: August 03, 2009, 02:13:24 PM »
what is your problem?
Hood
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #11 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
**Even a clock that does not work is right twice a day**

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #12 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
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #13 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.
**Even a clock that does not work is right twice a day**

Offline Chip

*
  • *
  •  2,055 2,055
  • Gainesville Florida USA
    • View Profile
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #14 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
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #15 on: August 04, 2009, 03:31:17 AM »
please read first post in thread    
Carefully
its problem.
no noise
**Even a clock that does not work is right twice a day**

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #16 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
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #17 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
**Even a clock that does not work is right twice a day**

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #18 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


Re: Confused in Mach 2 enable pins config,it's mapping to XYZ or not?
« Reply #19 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
**Even a clock that does not work is right twice a day**