plasma torch switch relay for 5i25 / G540
18 Sep 2016 02:59 - 18 Sep 2016 03:04 #80551
by dbotos
Replied by dbotos on topic plasma torch switch relay for 5i25 / G540
Also, for the active high configuration to work as I want (relay not to click on when Linux CNC is closed) with a modded relay module (R1 jumpered over), the 1.41 V present on that DB25 pin would have to be too little to make the opto work. Estimating it would be ~1.03 mA with that voltage across the input of the opto and the LED. Could be iffy as some datasheets for the 817C opto show the CTR vs I_F graph going that low.
Does it matter if I grab that DB25 pin at the breakout board or at the terminal on the G540? Is there any other circuitry in the G540 that would prevent that 1.41 V state from occurring? It'd be nice to have that output only take on two states instead of three...
Does it matter if I grab that DB25 pin at the breakout board or at the terminal on the G540? Is there any other circuitry in the G540 that would prevent that 1.41 V state from occurring? It'd be nice to have that output only take on two states instead of three...
Last edit: 18 Sep 2016 03:04 by dbotos.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19287
- Thank you received: 6457
18 Sep 2016 11:54 #80557
by tommylight
Replied by tommylight on topic plasma torch switch relay for 5i25 / G540
Do not jumper that without a resistance. Chances are you will destroy the opto. LED have a nasty habit of drawing to much current and failing miserably with a very small amount of over voltage. There should be a resistance, always, so find some old electronic and desolder a resistor from it and solder it to existing one. A 1Kohm should do the job, even going down to 470 Ohm is ok, but not lower.
www.digikey.com/en/resources/conversion-...or-color-code-4-band
That should help finding the right value.
LED are never connected directly to power source, only when using current regulated power supply.
www.digikey.com/en/resources/conversion-...or-color-code-4-band
That should help finding the right value.
LED are never connected directly to power source, only when using current regulated power supply.
Please Log in or Create an account to join the conversation.
20 Sep 2016 14:39 - 20 Sep 2016 14:51 #80673
by dbotos
Replied by dbotos on topic plasma torch switch relay for 5i25 / G540
Well, apparently it does matter if you grab the output from the breakout board or the G540. I got rid of the vestigial CandCNC interface board that I had hanging off the G540 and connected everything directly to the G540's screw terminals. Also added a jumpered terminal strip to my setup to tie all the grounds together (might not be able to see all of the jumpers in the picture, but there are 5 of them tying all 6 columns together). Turned off inversion of the output in the HAL file and got the following results (relay module in active low mode):
LinuxCNC closed:
IN1 = 2.9 V
NO = open
NC = closed
LED = off
LinuxCNC open (any machine power or E-stop state):
same as above, but IN1 = 2.95 V
M03 command issued (have to specify speed on first one):
IN1 = 23.5 mV
NO = closed
NC = open
LED = on
M05 command issued:
IN1 = 2.96 V
NO = open
NC = closed
LED = off
So it looks like I can call the torch switch stuff finished (I just need to hook up the leads from the plasma to the relay output) and move on to getting the torch height control configured and wired up.
Thanks for all the help!
David
LinuxCNC closed:
IN1 = 2.9 V
NO = open
NC = closed
LED = off
LinuxCNC open (any machine power or E-stop state):
same as above, but IN1 = 2.95 V
M03 command issued (have to specify speed on first one):
IN1 = 23.5 mV
NO = closed
NC = open
LED = on
M05 command issued:
IN1 = 2.96 V
NO = open
NC = closed
LED = off
So it looks like I can call the torch switch stuff finished (I just need to hook up the leads from the plasma to the relay output) and move on to getting the torch height control configured and wired up.
Thanks for all the help!
David
Last edit: 20 Sep 2016 14:51 by dbotos.
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds