Homemade, cheap, plasma CNC

More
4 years 11 months ago #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
4 years 11 months ago #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.

More
4 years 11 months ago #227163 by phillc54

You need to have laser offsets in your ini file for the pin to exist 


The pin should exist even if laser offsets are not specified.

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

More
4 years 11 months ago #227164 by rodw
Replied by rodw on topic Homemade, cheap, plasma CNC
from your ini file that means it goes in
custom_postgui.hal
 

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

More
4 years 11 months ago #227167 by RNJFAB
Replied by RNJFAB on topic Homemade, cheap, plasma CNC
Sorry for the stress this is causing gents.

Just to clarify.
I'm trying to run a button to turn on/off my laser pointer that rides on the Z axis. I would like to do this from one of the 20 custom buttons that can be set in my .ini file. I have called this 'LASER' and it links to 'toggle-halpin laser-switch'.

Right now i have in my .hal file

# ---PLASMA OUTPUTS---
# ---all modes---

#net plasmac:laser-switch <= qtplasmac.laser_on

# external output signals

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



If i activate the '#net plasmac:laser-switch <= qtplasmac.laser_on' line i get and error saying "qtplasmac.laser_on does not exist".

If i # it out and put the same line in my custom_postgui.hal file i get the following error. "qtplasmac.laser_on was already linked"

Sorry to cause such headaches for what will undoubtedly be a simple line that i can't get right.

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

More
4 years 11 months ago #227168 by phillc54
If you want to do it from a custom user button then you can't use qtplasmac.laser_on because that pin is used by the laser function in QtPlasmaC, you would need to toggle the hm2_7i96.0.ssr.00.out-01 pin in the button code line in the ini file and also comment out the:
net plasmac:laser-switch => hm2_7i96.0.ssr.00.out-01
line in the hal file.

Why don't you want to use the built in laser function?
The following user(s) said Thank You: RNJFAB

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

Time to create page: 0.445 seconds
Powered by Kunena Forum