Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: 767SeatWarmer on March 03, 2011, 05:42:26 AM
-
Hey, Everybody
I have Win Xp with new pci parallel port card set as LPT1 printer port 0378. In Mach 3 I have set the port 1 address correctly to 0x378.
Port pins to 2 to 7 from the PC, I get 5.06 Volts steady.
In Mach3: X axis, enabled, step pin 0, dir pin 2, dir low active (disabled), step low (disabled), step port 1, dir port 1
Y Axis, same step pin 0, dir pin 3, same
Z axis, same step pin 0, dir pin 4, same
for motor signal check through the parallel port, jogging the motor in x,y,z I still get 5.06 volts. I should get 5 volts in dir only and 0 volts in step but I get a steady 5.06 volts from pins 2-7. I haven't even plugged in the parallel port cable yet.
I speak Airplane all day, speaking CNC I'm in the 2nd grade so go easy please. Later.
-
Your step and direction pins should be different for each axis unless you are trying to do something special.
A typical configuration would be something like
X step pin 2
X dir pin 3
Y step pin 4
Y dir pin 5
etc.
The actual pin numbers would depend on your controller board or how you have wired individual controllers to your breakout board.
Within Mach you have to enable the outputs to see anything at the parallel port and you will only be able to measure a steady voltage on the Dir pins as you jog in different directions (the step pins pulse too fast for reliable voltmeter readings).
Does this help or confuse ?
Tweakie.
-
I'm checking the parallel port pins to check the interface from Mach3. With my previous settings I was checking pins 2, 3, 4, in dir only. Motor output page, I put number 2 for (parallel port pin 2) in the x axis Dir pin colume I should get around 4.3 volts at pin port 2 when I hit the left arrow on the keypad to jog the motor signal and when I hit the right arrow key it should go to around 0 volts. Is this not correct. Number 3 is set in the Y axis and page down I should get around 4.3 volts and then page up key I should get around 0 volts and so on for pin 4 in the zed axis. Then start the set all over again, to check pin 5 in the x axis, 6 in the y axis, 7 in the x axis. This is only for checking motor signal and voltage to the parallel port pins, later I will set each pin to the xyz axis step motors later.
The point is I should not be getting a steady 5.0 voltage to the parallel port pins. When I toggle the motor output, a signal should go to the parallel port to toggle the motor in the counter or clock wise direction. The test shows that I have no signal from Mach3 to the parallel port at all. Why is this? This is the BIG question. Yes I have had all the motors, breakout board and step drivers hooked up properly but could not get any motors to turn. So I'm trouble shooting the problem starting with the parallel port interface.
Thanks for the help so far.
-
Http://buildyourowncnc.com/CNCElectronicsandwiring.aspxhttp://
Video CNC electronics 5-testing the parallel port. Watch this video please.
-
I am sure you have already done this but it may be worth checking the resource of you printer port in device manager to make sure that the address is indeed 0378 and also that your PCI card has been configured as an ECP printer port.
Also do you have the Mach3 drivers installed - run the DriverTest.exe program in the Mach folder and see what results you get.
Tweakie.
-
OK how do I set the pci to ecp printer and I'm checking the drivers in mach 3. Finnally some help thanks.
-
Mach3 driver checks out OK.
-
When you install the PCI card and it asks for drivers it should give the option to install as ECP.
Does yours show as ECP in the device manager window ?
Tweakie.
-
When installed the pci card win XP just acknowledged the card and used win drivers.
-
I'M going to reinstall a new PCI card with drivers I will set it to ECP and see what happens. Thanks again Tweak
-
I installed the new card. I no longer have a printer port LPT1 now I have ECP parallel port LPT1. It still does not work.
-
Check it has configured the port to address 0378
Tweakie.
-
In addition,
Within Mach under motor outputs make sure you have Direction and Step ticked 'Active Low'.
Tweakie.
-
OK Tweakie,
I reinstalled the PCI card. It is configured ECP printer port LPT1 0378 and installed new drivers. Mach is set to LPT1 0x378.
I also went into the bios and set ECP instead of EPP and DMA 03. I'm still getting a steady 5.0 volts at pin 2,3,4,5,6,7.
I also hooked up the step motors and still nothing. What do you suggest?
-
Have you done this ?
Within Mach under motor outputs make sure you have Direction and Step ticked 'Active Low'.
Tweakie.
-
Yes they are both set to active low.
-
If it's any help these are my config details.
Tweakie.
-
Thanks tweakie,
I'm calling it a night and getting some sleep. I will set your configurations and it give it a try tomorrow. Later
-
Hey Tweakie,
I tried your confiruration it didnt work. I'm going pick up another PCI card and try it again.
-
Are you sure the PCI card is address 0378 and not an onboard port? Even though your computer may not have an external port it may have a header on the mobo and that is what you are seeing. Double check their is not a second port in device manager.
Hood
-
That's a good Idea Hood I will check. I thinking also that my PCI card is not ECP compatible.
-
A small thing that may assist you is not to use motor outputs for testing the pins but the Mach Output #4, which is the default for coolant. Go into config, ports & pins, spindle set-up and remove the tick from 'disable relays'.
Use the output signals tab to assign Output #4 to each pin in turn. It doesn't matter if you set active low or active high. Then use the MDI to repeatedly do M7 M9 and you should see the pin toggle from 5v to 0v.