- Hardware & Machines
- CNC Machines
- Plasma & Laser
- Configuring Plasmac - a complete THC/plasma config for any hardware
Configuring Plasmac - a complete THC/plasma config for any hardware
- rodw
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 11167
- Thank you received: 3717
maps a x value in Cartesian space to a y ordinate.
So if you use axis.y.pos-cmd as input (for the X position)
and define a series of y values of 0,1,2,3 you should be able to obtain a float that specifies a zone number. You might need to fed that to a mux4 and change the type down to a bit to trigger 4 output pins.
I was always going to write a custom component that did this in one step that supported a user defined number of zones similar to lincurve. If you are lucky, I might knock up a 4 zone version for you.
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 11167
- Thank you received: 3717
component downdraft4 "LinuxCNC HAL component that triggers 4 zone downdraft zone for plasma cutting";
description
"""
Component to trigger zones on a 4 zone downdraft system
\\fBEXAMPLE:\\fR
.br
.br
loadrt downdraft names=ddraft4
.br
addf downdraft servo-thread
.br
net position axis.y.pos-cmd => ddraft4.position
.br
setp ddraft4.cutover1 600
.br
setp ddraft4.cutover2 1200
.br
setp ddraft4.cutover3 1800
.br
setp ddraft4-trigger1 <= ddraft4.trigger1
.br
setp ddraft4-trigger2 <= ddraft4.trigger2
.br
setp ddraft4-trigger3 <= ddraft4.trigger3
.br
setp ddraft4-trigger4 <= ddraft4.trigger4
.br
setp ddraft4-trigger1 => YOUR-trigger1-PIN
.br
setp ddraft4-trigger2 => YOUR-trigger2-PIN
.br
setp ddraft4-trigger3 => YOUR-trigger3-PIN
.br
setp ddraft4-trigger4 => YOUR-trigger4-PIN
""";
author "Rod Webster";
pin in float position "Motion signal for Axis position";
pin out bit trigger1 "True if downdraft segment 1 should be triggered";
pin out bit trigger2 "True if downdraft segment 2 should be triggered";
pin out bit trigger3 "True if downdraft segment 3 should be triggered";
pin out bit trigger4 "True if downdraft segment 4 should be triggered";
param rw float cutover1 "Maximum Absolute axis coordinate for zone 1 change";
param rw float cutover2 "Maximum Absolute axis coordinate for zone 2 change";
param rw float cutover3 "Maximum Absolute axis coordinate for zone 3 change";
function _;
license "GPL";
;;
#include <rtapi_math.h>
FUNCTION(_) {
if(position <= cutover1);
trigger1 = 1;
trigger2 = trigger3 = trigger4 =0;
}
else if(position <= cutover2){
trigger2 = 1;
trigger1 = trigger3 = trigger4 =0;
}
else if(position <= cutover3){
trigger3 = 1;
trigger1 = trigger2 = trigger4 =0;
}
else {
trigger4 = 1{
trigger1 = trigger2 = trigger3 =0;
}
}
Could be some syntax errors....
If you are run in place
halcompile --install downdraft4.comp
if a deb install
sudo halcompile --install downdraft4.comp
comp file attached
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
- Posts: 5723
- Thank you received: 2095
It seems you didn't use the configurator to create your config, you have multiple commands doing the same thing.I didn't see a reference to a PyVCP panel in your ini file
I removed the PyVCP from the INI and still get the errors.
I just noticed in your ini file that you have:
HALFILE = ./imperial_plasmac_cmds.hal
I have my hal commands spread between that file and my original hal file. Should I combine it to one single hal file?
Do I have all the commands I need, or which commands don't I need with Plasmac? Do I need the PID Commands on all the axis with a stepper system?
I would recommend that you create a new base machine . In your case you would use Stepconf
Then make sure everything works correctly.
When you have a working base machine then use configurator to get PlasmaC working
Please Log in or Create an account to join the conversation.
- EW_CNC
-
- Offline
- Premium Member
-
- Posts: 112
- Thank you received: 28
I would recommend that you create a new base machine . In your case you would use Stepconf
Then make sure everything works correctly.
When you have a working base machine then use configurator to get PlasmaC working
I started over and reinstalled Debian 9 and LinuxCNC. I thought I might have messed something up with NC_Files folder sharing with windows, so I reinstalled everything. Now I used pncconf to create my new base machine because I am using Mesa 5i25 and 7i76.
My base machine works good but when I shut down, I get an error.
I would like to get rid of the error before I configure PlasmaC.
E.W.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
- Posts: 20035
- Thank you received: 6814
That is the only thing wrong there that i could find. Have no clue how to fix it , never seen it before.
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 11167
- Thank you received: 3717
That caught me out once.
Usually if it shuts down without an error message its because there is something basic missing like a missing addf or something silly like that
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
- Posts: 5723
- Thank you received: 2095
github.com/LinuxCNC/linuxcnc/issues/627
Please Log in or Create an account to join the conversation.
- EW_CNC
-
- Offline
- Premium Member
-
- Posts: 112
- Thank you received: 28
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 11167
- Thank you received: 3717
It looks like the issue was only reported 16 hours ago. Give the devs a bit of time to fix it and recompile. Try again Monday or monitor the issue.
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
- Posts: 5723
- Thank you received: 2095
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- CNC Machines
- Plasma & Laser
- Configuring Plasmac - a complete THC/plasma config for any hardware