- Posts: 43
- Thank you received: 0
options for combining probe, home and/or torch breakaway?
3 years 11 months ago #256075
by dlv
options for combining probe, home and/or torch breakaway? was created by dlv
Still searching the forum but thought I'd post this question anyway to see if anyone has some quick pointers. I'm in the middle of the process of wiring up my machine.
I will have three physical switches on my Z axis & torch holder. 1) Home is at top of Z axis travel. (I'll use soft limit for travel max), 2) Probe is a float switch on the torch holder, and 3) the breakaway will be part of the magnetic mount. I am using NO mechanical switches so they could be paralleled.
I'm looking to reduce the number of wires I have to run through my gantry to the Z axis location. Wondering if all/any of these signals can be combined easily.
I'm assuming this will require some HAL hand editing? A lot? Is this a bad idea? I do see options to utilize same input for home and limit switches in pncconf however nothing (that I've noticed) to do what I'm wanting here.
Any advice is much appreciated! Cheers,
-dave
I will have three physical switches on my Z axis & torch holder. 1) Home is at top of Z axis travel. (I'll use soft limit for travel max), 2) Probe is a float switch on the torch holder, and 3) the breakaway will be part of the magnetic mount. I am using NO mechanical switches so they could be paralleled.
I'm looking to reduce the number of wires I have to run through my gantry to the Z axis location. Wondering if all/any of these signals can be combined easily.
I'm assuming this will require some HAL hand editing? A lot? Is this a bad idea? I do see options to utilize same input for home and limit switches in pncconf however nothing (that I've noticed) to do what I'm wanting here.
Any advice is much appreciated! Cheers,
-dave
Please Log in to join the conversation.
3 years 11 months ago #256076
by dlv
Replied by dlv on topic options for combining probe, home and/or torch breakaway?
Update, I did see this thread:
forum.linuxcnc.org/plasma-laser/44961-thc-out-of-ideas#233435
Where it was mentioned the float switch input (automatically?) acts as a breakaway pausing the program if it trips? If so, I must have missed that in the manual and I can certainly eliminate one wire by using that feature. Still wondering if I can get down to one wire by combining all three and what that would involve.
Thanks!
forum.linuxcnc.org/plasma-laser/44961-thc-out-of-ideas#233435
Where it was mentioned the float switch input (automatically?) acts as a breakaway pausing the program if it trips? If so, I must have missed that in the manual and I can certainly eliminate one wire by using that feature. Still wondering if I can get down to one wire by combining all three and what that would involve.
Thanks!
Please Log in to join the conversation.
3 years 11 months ago #256086
by rodw
Replied by rodw on topic options for combining probe, home and/or torch breakaway?
If your only concern is to simplify wiring (eg. you have the inputs), why don't you use a multicore cable? You can common the field power so you only need 4 core cable.
It would probably be quicker to do that than muck about in hal.
It would probably be quicker to do that than muck about in hal.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
3 years 11 months ago #256088
by tommylight
Replied by tommylight on topic options for combining probe, home and/or torch breakaway?
What wires are you using?
If you think you can get away with normal unshielded cables, think again.
It usually ends up badly.
Shielded cables are a MUST for plasma. The only ones you can get away with, maybe, are motor wires, and even those over 1-2 meters in length must be shielded.
If you think you can get away with normal unshielded cables, think again.
It usually ends up badly.
Shielded cables are a MUST for plasma. The only ones you can get away with, maybe, are motor wires, and even those over 1-2 meters in length must be shielded.
Please Log in to join the conversation.
3 years 11 months ago #256089
by rodw
Replied by rodw on topic options for combining probe, home and/or torch breakaway?
I agree on the shielding, but for a low current signal, you don't need motor wires. There are 4 core shielded microphone cables that can be had ror $1-$2 a metre. I used 9 core shielded on my machine and DB9 breakouts at each end. OF course for an industrial buid, high flex drag chain cable will be required.What wires are you using?
If you think you can get away with normal unshielded cables, think again.
It usually ends up badly.
Shielded cables are a MUST for plasma. The only ones you can get away with, maybe, are motor wires, and even those over 1-2 meters in length must be shielded.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
3 years 11 months ago #256091
by tommylight
Replied by tommylight on topic options for combining probe, home and/or torch breakaway?
I did not say to use motor cables without shielding for signals
for motors only, drive side, never encoder side
for motors only, drive side, never encoder side
Please Log in to join the conversation.
3 years 11 months ago #256104
by dlv
Replied by dlv on topic options for combining probe, home and/or torch breakaway?
Tommy I'm using shielded cable for everything. All cable shields are star terminated to earth ground in the enclosure and do NOT connect at the table end to anything. Motor drive cables are 18ga shielded 5 core ( one core is a motor ground because I read it's good to ground your stepper motors directly also ). Limit/Probe etc. switch cables are shielded 2 core and much lighter gauge (24 I think). All cables are constant flex rated. (i.e. very expensive!). Yep, using drag chains where there is motion.
I do feel a bit silly, I found the statement on probe acting like breakaway in the config section of the docs. Not sure how I missed that, it's pretty obvious.
I do feel a bit silly, I found the statement on probe acting like breakaway in the config section of the docs. Not sure how I missed that, it's pretty obvious.
Rod I thought about multi pair but had already purchased the single pair stuff. For now I'm planning to go ahead with running the second cable on the gantry for the Z axis home switch. Just running a bit tight on cable. If I've measured correctly I should have enough for two but probably not 3 runs to the Z axis. That was the main reason for asking about this. I should be ok though given that statement from the manual.Breakaway Switch is not mandatory because Float Switch is treated the same as a breakaway when not probing. If they are two separate switches, and there are not enough inputs on the breakout board, they could be combined and connected as a Float Switch.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
3 years 11 months ago #256105
by tommylight
Replied by tommylight on topic options for combining probe, home and/or torch breakaway?
Nice! 
From your post i got the impression you are using single wires for sensors.
If you are pressed for wires, check the power supply if it has ground tied to 0V rail, in that case you can use the shield as 0V all over the machine leaving you one more wire for other stuff on every cable.
From your post i got the impression you are using single wires for sensors.
If you are pressed for wires, check the power supply if it has ground tied to 0V rail, in that case you can use the shield as 0V all over the machine leaving you one more wire for other stuff on every cable.
Please Log in to join the conversation.
3 years 11 months ago #256196
by andypugh
Replied by andypugh on topic options for combining probe, home and/or torch breakaway?
Yes, it is perfectly possible to combine torch breakaway with probing.
At the simplest level you could just have one HAL input trigger probe and breakaway and home.
The problem there is that the probe will trigger the breakaway response, which probably isn't ideal. (Triggering home at random times is less of a problem)
One way to do this would be with the "demux" HAL component.
linuxcnc.org/docs/stable/html/man/man9/demux.9.html
That can divert the input pin to the appropriate destination pin.
Select the destination pin with motion.motion-type
linuxcnc.org/docs/stable/html/man/man9/motion.9.html
Two minor complications, the input to demux is unsigned and motion is signed so you need a conv_s32_u32 component too.
Also homing is not a motion-type. I am not sure what motion-type is during homing. If it isn't feed or traverse then there is no problem, if it is something else then you would want to use one of the demux "bit" inputs to "shift" into a different set of output pins based on the joint.NN.homing pin.
You probably also need a set of "or" components so that breakaway works in feed OR traverse and homing works in whatever modes home uses.
At the simplest level you could just have one HAL input trigger probe and breakaway and home.
The problem there is that the probe will trigger the breakaway response, which probably isn't ideal. (Triggering home at random times is less of a problem)
One way to do this would be with the "demux" HAL component.
linuxcnc.org/docs/stable/html/man/man9/demux.9.html
That can divert the input pin to the appropriate destination pin.
Select the destination pin with motion.motion-type
linuxcnc.org/docs/stable/html/man/man9/motion.9.html
Two minor complications, the input to demux is unsigned and motion is signed so you need a conv_s32_u32 component too.
Also homing is not a motion-type. I am not sure what motion-type is during homing. If it isn't feed or traverse then there is no problem, if it is something else then you would want to use one of the demux "bit" inputs to "shift" into a different set of output pins based on the joint.NN.homing pin.
You probably also need a set of "or" components so that breakaway works in feed OR traverse and homing works in whatever modes home uses.
Please Log in to join the conversation.
3 years 11 months ago #256251
by dlv
Replied by dlv on topic options for combining probe, home and/or torch breakaway?
Great info Andy. I will look into the demux command. I actually would think the probe getting triggered during a cut and acting as the breakaway would be a good thing? I.E. if the torch rides up on a cutaway but doesn't break free, you want to stop. That's how I interpreted the feature anyway.
FWIW I ended up trying it using a classic ladder approach.
I defined a simple N/O input in classicladder and connected it to an output and saved that to MyLadder.clp. Then I put the following in my custom.hal file:
And it worked!
I have no idea if this is a good solution or not. I wanted to learn classic ladder so this gave me an excuse to poke around. I'm still very much in the early stages of learning all this.
Thanks again to everyone for your continued advice and support.
-dave
FWIW I ended up trying it using a classic ladder approach.
I defined a simple N/O input in classicladder and connected it to an output and saved that to MyLadder.clp. Then I put the following in my custom.hal file:
Code:
loadusr -w classicladder --nogui MyLadder.clp
net plasmac:float-switch-out classicladder.0.in-00
net z-home-sw classicladder.0.out-00
And it worked!
I have no idea if this is a good solution or not. I wanted to learn classic ladder so this gave me an excuse to poke around. I'm still very much in the early stages of learning all this.
Thanks again to everyone for your continued advice and support.
-dave
Please Log in to join the conversation.
Time to create page: 0.192 seconds
