Hello Guest it is October 14, 2019, 12:21:30 PM

Author Topic: Breakout Board relay failure  (Read 4517 times)

0 Members and 1 Guest are viewing this topic.

Breakout Board relay failure
« on: February 25, 2012, 11:24:04 AM »
Hi all,

i ve wired a breakout board to my pc's parallel port.
here is  wich board it is . http://www.dhgate.com/cnc-router-mach-cnc-interface-board-for-pc/p-ff8080812d2c40c9012d36d677d34296.html

It has 2 relays on board.
My problem is  , when ever  any axis starts to move  , my new board  sets on  the relay. after the move ends , it releases the relay
I have two spindles on my machine. I want to use the relay to select wich spindle i would like to use.

Is there anyone have any idea ?
thanks alot

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Breakout Board relay failure
« Reply #1 on: February 25, 2012, 12:50:27 PM »
It would seem like you are using a pin that is dedicated to the relay as a motor pin, if you attach your xml I will have a look.
Hood
Re: Breakout Board relay failure
« Reply #2 on: February 25, 2012, 01:05:00 PM »
i m away from my  mach3 computer . I will attach XML when i m at my workshop.
i hope its a silly problem that would handle with a click
Re: Breakout Board relay failure
« Reply #3 on: February 26, 2012, 05:03:25 AM »
Dear Hood
Here is my XMl file.

Its not activating the relays while moving the axes today. maybe rebooting the computer fixed it. Im not sure. I ll try it today .
Here is my XML..

I m triyng to use  ActivateSignal(OUTPUT2)   to energize the relay on board.  It goes on and off immidiately. I want it to stay " on "  untill the deactivate command.
Is it how activatesignal works?

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Breakout Board relay failure
« Reply #4 on: February 26, 2012, 06:04:51 AM »
I dont see a conflict in your xml so it would seem it may be a board or cable problem.
You can use the VB commands or you could also set it up as one of the coolants so that M7 or M8 turned it on and M9 turned it off, thats assuming you have no plans to use the coolant outputs  in the future.
Hood
Re: Breakout Board relay failure
« Reply #5 on: February 26, 2012, 07:15:34 AM »
 assigning the output pins to  activeLow  fixes the unwanted relay activation..

Let me tell you what i want to do.  i have an  AC motor drive. It has a contact to start the motor.  when my output1 is "on"  driver starts, when my output1
is "off"  the driver stops.

i want  output1 stay on,  but it pulses.  goes on  and off. even diagnostig screen shows that output1 is active, there is no relay on , instead it goes on and off

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Breakout Board relay failure
« Reply #6 on: February 26, 2012, 10:00:57 AM »
It should not pulse if you are calling a macro with
ActivateSignal(OutPut1)

If it is then it may be as mentioned before an issue with your cable or possibly even the board itself. The other thing it could possibly be is the board is not 3.3v compatible and your port is a 3.3v one.
Hood
Re: Breakout Board relay failure
« Reply #7 on: February 27, 2012, 01:25:03 PM »
I have assigned output3   to  pin5 of LPT1 , disconnected the Breakoutboard.
And attached a multimeter to pin5.
In the VB  screen, ı ve written a macro " ActivateSignal(OUTPUT3).
I ve watched the multimeter and run the macro.

-------------------           ----------------------  4.7  V
                        |-------|  0 V

I expect  the pin5  stay in  0V   level until  i run the deactivatesignal(output3) macro   ???

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Breakout Board relay failure
« Reply #8 on: February 27, 2012, 02:12:02 PM »
It should but I am unclear byu your post whether it does or not?
Hood
Re: Breakout Board relay failure
« Reply #9 on: February 27, 2012, 02:17:35 PM »
it doesnt. 
5V  on pin5   drops to zero  and rises immediatly to 5 V again.