Configuring Plasmac - a complete THC/plasma config for any hardware

More
12 May 2019 02:26 #133498 by JTknives
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.

More
12 May 2019 03:51 #133500 by JTknives
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.

File Attachment:

File Name: blackhole_...11-2.ini
File Size:8 KB

File Attachment:

File Name: machine_20...11-3.hal
File Size:11 KB

File Attachment:

File Name: plasmac_20...11-3.hal
File Size:5 KB
Attachments:

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

More
12 May 2019 04:10 #133502 by phillc54

I named this new install “black hole” as it has sucked all my time up for weeks and weeks lol.

Haha, that is what I should have called this project...

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.
Attachments:

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

More
12 May 2019 04:59 #133503 by JTknives
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.

More
12 May 2019 05:04 #133504 by JTknives
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.

More
12 May 2019 05:11 - 12 May 2019 05:11 #133505 by phillc54
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.
Last edit: 12 May 2019 05:11 by phillc54.

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

More
12 May 2019 05:16 #133506 by rodw
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

Warning: Spoiler! [ Click to expand ]


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.

More
12 May 2019 06:45 - 12 May 2019 06:47 #133510 by JTknives
here is my original ini, i will try and compile it but i am really doubting my skills at this point lol

File Attachment:

File Name: black_hole.ini
File Size:4 KB
Attachments:
Last edit: 12 May 2019 06:47 by JTknives.

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

More
12 May 2019 07:00 - 12 May 2019 07:02 #133511 by phillc54
Give this a try.

Cheers, Phill.

Edit: You may need to check the halfile name and machine name...
Attachments:
Last edit: 12 May 2019 07:02 by phillc54.

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

More
12 May 2019 07:10 #133512 by JTknives
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.

Time to create page: 0.130 seconds
Powered by Kunena Forum