Homemade, cheap, plasma CNC

More
21 Nov 2021 04:37 #227151 by rodw
Replied by rodw on topic Homemade, cheap, plasma CNC
This is where people get confused. you can't connect computer chips pin to pin. You have to use a wire or solder trace.

so with lcnc components, you replace the wire with a signal which can be whatever name you like.
To me it always makes it clearer to do it on two lines to make it clearer, particularly when starting out.
# create a signal from an output pin
net plasmac:laser-switch <= qtplasmac.laser_on 

# connect the signal to an input pin
net plasmac:laser-switch => hm2_7i96.0.ssr.00.out-01

the <= and => are not required, they just are designed to make the meaning clearer by showing a direction (eg input or output)
 

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

More
21 Nov 2021 04:41 #227152 by phillc54
That is why I find it easier if it is all on one line, that way you know it is all in one place.
 

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

More
21 Nov 2021 04:44 #227153 by rodw
Replied by rodw on topic Homemade, cheap, plasma CNC

That is why I find it easier if it is all on one line, that way you know it is all in one place.

 

But my one line didn't make it to his hal file. I nearly did it on two lines but I was lazy and did it Phil's way :)
I think its easier for novices to understand on two lines. 

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

More
21 Nov 2021 04:49 #227154 by phillc54
Probably because the same net is in both hal files...
 

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

More
21 Nov 2021 05:16 - 21 Nov 2021 05:17 #227157 by phillc54
If this is for a laser then I would suggest:

comment these four lines out in PLASMA.ini file:
BUTTON_10_NAME = ZERO ON\LASER
BUTTON_10_CODE = G91 G54 G1 X-49.15 Y-8.35 F1500 \ G90 \ G10 L20
BUTTON_11_NAME = LASER
BUTTON_11_CODE = toggle-halpin laser-switch

delete this line in custom.hal:
net plasmac:laser-switch =>  hm2_7i96.0.ssr.00.out-01



add this line in PLASMA.hal from:
net plasmac:laser-switch  <= qtplasmac.laser_on


after starting linuxcnc go to the parameters tab and set the offsets for the laser, then the laser button will appear in the dro frame.

linuxcnc.org/docs/devel/html/plasma/qtplasmac.html#qt_laser

linuxcnc.org/docs/devel/html/plasma/qtpl...l#peripheral-offsets
Last edit: 21 Nov 2021 05:17 by phillc54.

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

More
21 Nov 2021 05:26 - 21 Nov 2021 05:35 #227158 by RNJFAB
Replied by RNJFAB on topic Homemade, cheap, plasma CNC
Thanks Phil & Rod,

Total newb error I'm sure.
I have made the changes.


# ---PLASMA OUTPUTS---
# ---all modes---
net plasmac:laser-switch     <= plasmac.laser-on

# external output signals

# --- LASER ---
net plasmac:laser-switch  =>  hm2_7i96.0.ssr.00.out-01


I now get the following error.

"PLASMA.hal:58: Pin plasmac.laser-on does not exist"
 
Last edit: 21 Nov 2021 05:35 by RNJFAB.

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

More
21 Nov 2021 05:34 #227159 by rodw
Replied by rodw on topic Homemade, cheap, plasma CNC
Needs to be in postgui file because the pin is created in the gui. 

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

More
21 Nov 2021 05:37 - 21 Nov 2021 05:42 #227160 by RNJFAB
Replied by RNJFAB on topic Homemade, cheap, plasma CNC
If i put that line in the postgui file i get the same error.

This laser is a sighting laser. Just so i can see where i'm going to be cutting. NOT A CUTTING LASER. it is run from a relay activated by the MESA7i96 through one of its outputs.
Last edit: 21 Nov 2021 05:42 by RNJFAB.

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

More
21 Nov 2021 05:42 #227161 by rodw
Replied by rodw on topic Homemade, cheap, plasma CNC

If i put that line in the postgui file i get the same error.

Comment out the offending line and check in halshow the pin exists. You need to have laser offsets in your ini file for the pin to exist but i thought I saw you had that.

then press the laser buttonm on bottom right and see if it lights up in hashow

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

More
21 Nov 2021 05:42 #227162 by phillc54
Oops postgui is correct

it needs to b qtplasmac.laser_on , you have:
# ---PLASMA OUTPUTS---
# ---all modes---
net plasmac:laser-switch     <= plasmac.laser-on
 

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

Time to create page: 0.208 seconds
Powered by Kunena Forum