- 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
12 May 2019 02:26 #133498
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Well I started over and it went much smoother then the first time. It fired right up with the new config. I then turned off sim mode and still good. I made a machine.hal and copped the working .hal from the config generated file into it. I then added the extra switching stuff to it from my old machine.hal. It fired up fine and then I turned on the machine.hal in the .ini file and got my first error. Joint_0 error in machine.hal. I did go into the plasmac.hal and change the z joint from 3 to 2. I only have 3 total steppers as my y axis over hangs and is driven from one side only. But I don’t know why I would be getting a joint_0 error. When I reinstalled I installed from Phil’s combo 2.8xplasmac git and then ran the config from that directory and it was quite a bit diffrent then the config wizard I had been using. I feel so close right now I can taste it I just need to get over this joint issue. I’m hoping to be cutting with it tomarow asi got a customer that’s been waiting for some steel to be cut up. I will upload my hal and ini in a sec. I named this new install “black hole” as it has sucked all my time up for weeks and weeks lol.
Please Log in or Create an account to join the conversation.
12 May 2019 03:51 #133500
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
ok i just had a hard look inside my machine.hal and it has a ton more code then my last machine.hal and somehow it thinks i have 2 y axis steppers and so does the the ini.
Please Log in or Create an account to join the conversation.
12 May 2019 04:10 #133502
by phillc54
Hopefully these will work for you.
If it does work then try setting the debounce in plasmac.hal to a lower value, the lower it is the better.
Cheers, Phill.
Replied by phillc54 on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Haha, that is what I should have called this project...I named this new install “black hole” as it has sucked all my time up for weeks and weeks lol.
Hopefully these will work for you.
If it does work then try setting the debounce in plasmac.hal to a lower value, the lower it is the better.
Cheers, Phill.
Please Log in or Create an account to join the conversation.
12 May 2019 04:59 #133503
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
ok i just loaded those files up and got this when i tried to run
jtknives@plasma:~/linuxcnc-plasmac$ . ./scripts/rip-environment
jtknives@plasma:~/linuxcnc-plasmac$ linuxcnc
LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/jtknives/linuxcnc/configs/plasmac'
Machine configuration file is 'blackhole.ini'
Starting LinuxCNC...
twopass:invoked with <> options
twopass:found ./machine.hal
twopass:found ./plasmac.hal
twopass: Error in file ./machine.hal:
can't read "::JOINT_0(P)": no such element in array
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/jtknives/linuxcnc_debug.txt
and
/home/jtknives/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
jtknives@plasma:~/linuxcnc-plasmac$
Please Log in or Create an account to join the conversation.
12 May 2019 05:04 #133504
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
why is there spindle and coolent code in the machine.hal files. i was going to delete it but as you can clearly see i dont know what im doing.
Please Log in or Create an account to join the conversation.
12 May 2019 05:11 - 12 May 2019 05:11 #133505
by phillc54
Replied by phillc54 on topic Configuring Plasmac - a complete THC/plasma config for any hardware
OK, I think I see what is happening...
You copied the values from your ini file into the places for them in the plasmac.ini.
You need to copy the complete sections below:
[KINS]
[TRAJ]
[AXIS_X]
[JOINT_0]
[AXIS_Y]
[JOINT_1]
[AXIS_Z]
[JOINT_2]
If you are unsure, post both your original working machine ini file and the plasmac.ini you are trying to marry it to.
We can also get rid of the spindle and coolant stuff.
Cheers, Phill.
You copied the values from your ini file into the places for them in the plasmac.ini.
You need to copy the complete sections below:
[KINS]
[TRAJ]
[AXIS_X]
[JOINT_0]
[AXIS_Y]
[JOINT_1]
[AXIS_Z]
[JOINT_2]
If you are unsure, post both your original working machine ini file and the plasmac.ini you are trying to marry it to.
We can also get rid of the spindle and coolant stuff.
Cheers, Phill.
Last edit: 12 May 2019 05:11 by phillc54.
Please Log in or Create an account to join the conversation.
12 May 2019 05:16 #133506
by rodw
Replied by rodw on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Looks like you are still missing stuff in your ini file for joints. Certainly the PID settings (eg the P)
Leave the spindle stuff there. I took mine out and had problems.
here is what I have in my ini for a typical joint
I would concentrate on getting the non plasmac config working without errors, then copy it over. It does not take long.
I have found increasing these settings can get rid of following errors
Leave the spindle stuff there. I took mine out and had problems.
here is what I have in my ini for a typical joint
Warning: Spoiler!
JOINT_3]
#********************
TYPE = LINEAR
HOME = 0.0
FERROR = 10.0
MIN_FERROR = 1.0
#MAX_VELOCITY = 220
MAX_VELOCITY = 120
MAX_ACCELERATION = 1800
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 450
STEPGEN_MAXACCEL = 5000
P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP = 500
DIRHOLD = 500
STEPLEN = 1000
STEPSPACE = 1000
STEP_SCALE = 1000
MIN_LIMIT = -84
MAX_LIMIT = 0.001
HOME_OFFSET = 1.0
HOME_SEARCH_VEL = 10
HOME_LATCH_VEL = 5
HOME_FINAL_VEL = 10
HOME_USE_INDEX = NO
HOME_SEQUENCE = 0
HOME_IGNORE_LIMITS = YES
HOME_IS_SHARED = 1
I would concentrate on getting the non plasmac config working without errors, then copy it over. It does not take long.
I have found increasing these settings can get rid of following errors
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 450
STEPGEN_MAXACCEL = 5000
Please Log in or Create an account to join the conversation.
12 May 2019 06:45 - 12 May 2019 06:47 #133510
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
here is my original ini, i will try and compile it but i am really doubting my skills at this point lol
Attachments:
Last edit: 12 May 2019 06:47 by JTknives.
Please Log in or Create an account to join the conversation.
12 May 2019 07:00 - 12 May 2019 07:02 #133511
by phillc54
Replied by phillc54 on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Give this a try.
Cheers, Phill.
Edit: You may need to check the halfile name and machine name...
Cheers, Phill.
Edit: You may need to check the halfile name and machine name...
Last edit: 12 May 2019 07:02 by phillc54.
Please Log in or Create an account to join the conversation.
12 May 2019 07:10 #133512
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
thank you so much for your help. those errors are now gone but this popped up now.
twopass: Error in file ./plasmac.hal:
Pin 'spindle.0.on' was already linked to signal 'spindle-enable'
Shutting down and cleaning up LinuxCNC...
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/jtknives/linuxcnc_debug.txt
and
/home/jtknives/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
jtknives@plasma:~/linuxcnc-plasmac$
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
- Hardware & Machines
- CNC Machines
- Plasma & Laser
- Configuring Plasmac - a complete THC/plasma config for any hardware
Time to create page: 0.121 seconds