Float switch code

More
25 Oct 2022 05:57 #254996 by rajsekhar
Float switch code was created by rajsekhar
Hello friends, I am trying to build a oxyfuel cutting machine.
Now, unlike plasma machines using PlasmaC, I am trying to use sheetcam generated codes that gives complete custom control of Z axis. Also I have deceided using capacitive THC using thc components if linuxcnc.

But I am stuck with float switch. I will use 200mm range contact optical digital output sensor so that nozzle do not touch plates.

but how to enable that with sofware? what code i should use in Gcode file?

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
25 Oct 2022 08:16 #255000 by rodw
Replied by rodw on topic Float switch code
Ypu can try a gcode approach using a touchoff.ngc file similar to this on from JT
gnipsel.com/shop/plasma/files/touchoff.ngc

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 09:11 #255006 by tommylight
Replied by tommylight on topic Float switch code
Wha signal does the capacive sensor output?

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 09:27 #255008 by rajsekhar
Replied by rajsekhar on topic Float switch code
It is a digital output , NO+NC available.

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 09:37 #255010 by tommylight
Replied by tommylight on topic Float switch code
Strange, should be analog.
How do you set the sense height? With a pot on it?
Does it have two separate outputs, one for over and the other for under the limit?

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 09:38 #255011 by rajsekhar
Replied by rajsekhar on topic Float switch code
I mean float switch is digital output. Capacitive THC gives analog voltage output.

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 09:40 #255012 by tommylight
Replied by tommylight on topic Float switch code
Is the voltage range usable with a THCAD?
So 5 to 10V? Or more ?

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 10:06 #255013 by rajsekhar
Replied by rajsekhar on topic Float switch code
That I am not sure right now.

If it is beyond THCAD range i have plan to use voltage divider. I have THCAD 5 in my stock.

Will update as soon as i get the values.

Please Log in or Create an account to join the conversation.

More
25 Oct 2022 10:51 #255015 by rajsekhar
Replied by rajsekhar on topic Float switch code
I have never used subroutine before.

Request for practical guide how to use that. 

subroutine in gcode file or a separate file??

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
26 Oct 2022 05:00 #255078 by rodw
Replied by rodw on topic Float switch code
The intent was the touchoff was called in our gcode when the cutting should start. You normally pass it some variables. Time to read up on  gcode subroutines.

Please Log in or Create an account to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum