Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: gyurudogru 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
-
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
-
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
-
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?
-
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
-
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
-
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
-
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 ???
-
It should but I am unclear byu your post whether it does or not?
Hood
-
it doesnt.
5V on pin5 drops to zero and rises immediatly to 5 V again.
-
Do you have any Brains enabled? Any Plugins enabled?
Hood
-
i didnot activate and brain, but i ll check if any active mistakely, when i m in workshop.
thanks