- 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
Attachments:
Please Log in or Create an account to join the conversation.
~/plasmac/configs/sim/gmoccapy/plasmac/
EDIT: Now fixed in the original post
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
now we just need to edit the config files to insert the real config for our hardware and we'll be away. As a first start its useful to copy your existing config files into this new folder so we don't muck up any existing configs
Let me expand.
So start with your ini file. Make a copy of the plasmac one you want (metric or imperial) with a new name that you like. Lets call it mymachine.ini
Copy and paste your existing working config sections into mymachine.ini and confirm it still works and resolve any errors. You will be using plasmac MODE 1 with the thcad
Then copy your existing hal file to machine.hal and make the edits in the ini file to load this hal file and not the sim one. Resolve any errors
Then as a final step move the pieces out of your machine.hal file into the plasmac.hal file that it requires and resolve any errors.
When resolving errors make sure you start linuxcnc from the command line. Read the output on the screen carefully. The error will be reported. The only problem that is not reported clearly is if you are using a custom component and it has not been compiled and installed under the plasmac environment.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19188
- Thank you received: 6432
Are you by any chance using a Samsung Note ?
@ Rod
I think the title of this thread does not do justice to what it's subject is ( made that mistake several times myself, thank you for point that out on occasion ), it should be Configuring PlasmaC - another plasma component with THC of any type, with parallel port or any Mesa board, and with everything in fully automatic mode or manual as you like it !
Too much ?
Please Log in or Create an account to join the conversation.
jtknives@plasma:~$ . plasmac/scripts/rip-environment
jtknives@plasma:~$ linuxcnc
LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/jtknives/linuxcnc/configs/plasmac'
Machine configuration file is 'mymachine.ini'
Starting LinuxCNC...
twopass:invoked with <> options
twopass:found /home/jtknives/plasmac/lib/hallib/basic_sim.tcl
twopass:found ./plasmac.hal
twopass:found ./plasmac.hal
twopass:found ./custom.hal
setup_kins: cmd=loadrt trivkins coordinates=xyyz
twopass:pass0: loadusr -W hal_manualtoolchange
Note: Using POSIX realtime
Invalid parameter `1000000'
twopass: load_the_modules cmd=<orig_loadrt motmod base_period_nsec=32000 servo_period_nsec=1000000 1000000 num_joints=4>
waitpid failed /home/jtknives/plasmac/bin/rtapi_app motmod
/home/jtknives/plasmac/bin/rtapi_app exited without becoming ready
insmod for motmod failed, returned -1
HAL: ERROR: duplicate variable 'pid.x.enable'
PID: ERROR: loop 8 var export failed
pid: rtapi_app_main: Operation not permitted (-1)
twopass: load_the_modules cmd=<orig_loadrt pid names=J0_pid,J1_pid,J2_pid,J3_pid,pid.x,pid.y,pid.z,pid.s,pid.x,pid.y,pid.z,pid.s>
waitpid failed /home/jtknives/plasmac/bin/rtapi_app pid
/home/jtknives/plasmac/bin/rtapi_app exited without becoming ready
insmod for pid failed, returned -1
otmod: dlopen: /home/jtknives/plasmac/rtlib/otmod.so: cannot open shared object file: No such file or directory
twopass: load_the_modules cmd=<orig_loadrt otmod motmo {servo_period_nsec=1000000 1000000} num_joints=3 motmo {servo_period_nsec=1000000 1000000} num_joints=3>
waitpid failed /home/jtknives/plasmac/bin/rtapi_app otmod
/home/jtknives/plasmac/bin/rtapi_app exited without becoming ready
insmod for otmod failed, returned -1
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: 10.10.10.10: Could not retrieve mac address
hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
twopass: load_the_modules cmd=<orig_loadrt hm2_eth [concat board_ip="10.10.10.10"] [concat config=" num_encoders=1 num_pwmgens=0 num_stepgens=3 sserial_port_0=00xxxx"] [concat board_ip="10.10.10.10"] [concat config=" num_encoders=1 num_pwmgens=0 num_stepgens=3 sserial_port_0=00xxxx"]>
waitpid failed /home/jtknives/plasmac/bin/rtapi_app hm2_eth
/home/jtknives/plasmac/bin/rtapi_app exited without becoming ready
insmod for hm2_eth failed, returned -1
Shutting down and cleaning up LinuxCNC...
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:~$
Please Log in or Create an account to join the conversation.
HAL: ERROR: duplicate variable 'pid.x.enable'
I just wondered if you are opening the sim TCL file as well as your own? make sure its commented out
here:
HALFILE = machine.hal
#HALFILE = LIB:basic_sim.tcl
# required
HALFILE = plasmac.hal
Please Log in or Create an account to join the conversation.
@ Rod
I think the title of this thread does not do justice to what it's subject is
Too much ?
Yes Tommy, it was too much . Much longer than the forum allows in the title field!
I did what I could. But please re-read the sales blurb in the first post!
Please Log in or Create an account to join the conversation.
I just wondered if you are opening the sim TCL file as well as your own? make sure its commented out
twopass:found /home/jtknives/plasmac/lib/hallib/basic_sim.tcl
Yes thats what you did by this error. We are no longer a sim so we don't wan to to open the SIM environment.
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