Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: yercik on June 19, 2007, 08:36:19 AM

Title: Parallel port input problem
Post by: yercik on June 19, 2007, 08:36:19 AM
Hello
I have a problem with the input of the parallel port. Home switch contacts pin 13 and pin 25. But when these pins are contacted, outputs (14,16...) have activated.
I mean when the machine goes to home, after 1-2 second spindle starts.

Thanks
Title: Re: Parallel port input problem
Post by: Chaoticone on June 19, 2007, 09:26:20 AM
You can't use pin 25 for an input.

Brett
Title: Re: Parallel port input problem
Post by: Chip on June 19, 2007, 09:56:13 AM
Hi, Yercik

Post your Mach3Mill.XML file, Use the Reply button, Brett switch in between pins 25 to 13 is fine.

List your Pin usage for setup.

Thanks, Chip



Title: Re: Parallel port input problem
Post by: Chaoticone on June 19, 2007, 10:01:01 AM
Yes, if it is connected between pins 25 and 13, it is fine if that is the question.

Brett
Title: Re: Parallel port input problem
Post by: Chaoticone on June 19, 2007, 10:01:17 AM
Yes, if it is connected between pins 25 and 13, it is fine if that is the question.

Brett
Title: Re: Parallel port input problem
Post by: yercik on June 19, 2007, 10:17:34 AM
switch between pin 13 and pin 25. OK but I have a problem with switch. When the machine go to home, spindle starts.
Any input (home switch or emergncy) activates outputs.
Title: Re: Parallel port input problem
Post by: yercik on June 19, 2007, 10:19:57 AM
This is the xml file..
Title: Re: Parallel port input problem
Post by: Chip on June 19, 2007, 11:25:11 AM
Hi, Yercik

Try setting your Outputs 1 & 4 to Active Low "Checked" (Pins 16, 14).

Hope this gets It, Chip
Title: Re: Parallel port input problem
Post by: yercik on June 20, 2007, 01:47:20 AM
Output 1 & 4 is connected to a relay (optocoupler relay board). When I connect the spindle to the NO side of the relay and change to active low or connect to NC side and change to not active low, nothing changes. Everything works normal.
M3 starts the spindle, M5 stops, also the inputs work normal, emergency button works, home switches work but
after 2 seconds spindle starts and tool changer relay (output 4) opens.

Title: Re: Parallel port input problem
Post by: Chip on June 21, 2007, 01:04:00 AM
Hi, Yercik

Looked at your XML, Nothing jumped out as being wrong.

As you stated "When the machine go to home, spindle starts. Any input ((home switch or emergency) activates outputs)."

If you press the E-Stop and your spindle turns ON then there is a logic Issue, Sounds like your spindle and Toolchanger relays power needs to be wired

through NO side then configure the ActiveLow Logic "X or Check."

When the E-stop/Reset is Red the Outputs Leds turn off, The logic state doesn't effect the output led flashing.

So with E-stop/Reset is flashing Red your spindle should be OFF, Then with it Reset/Green the outputs will be off untill you issue a M3 On and M5 Off.

Maybe I've missed something hear.

Hope this Helps, Chip