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

More
28 Apr 2019 23:10 #132200 by JTknives
Am I missing something or is this the same directory?
Attachments:

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

More
28 Apr 2019 23:27 - 28 Apr 2019 23:33 #132203 by rodw
Yes, my mistake. I noticed it this morning but did not want to rely on memory to fix it.. The correct source directory will be somthing like:
~/plasmac/configs/sim/gmoccapy/plasmac/

EDIT: Now fixed in the original post
Last edit: 28 Apr 2019 23:33 by rodw.

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

More
28 Apr 2019 23:40 #132207 by JTknives
Ok I was just checking. I know just enough to get me into trouble lol. Thankyou for the step by step.

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

More
29 Apr 2019 00:15 #132211 by JTknives
So what did you do with the existing .hal and .ini files from the config that PNCconf made? My set up works with thoes files but how do I move them over to the new config so I can use gmoccapy with them?

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

More
29 Apr 2019 00:32 #132214 by rodw

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.

More
29 Apr 2019 01:14 #132221 by tommylight
@ JTKnives
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 ?
The following user(s) said Thank You: rodw

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

More
29 Apr 2019 01:29 #132223 by JTknives
I think I fallowed your instructions correctly but this is my error and im not sure what its telling me.
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.

More
29 Apr 2019 01:44 #132228 by rodw
JTk, look for a duplicate line containing pid.x.enable.
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.

More
29 Apr 2019 02:00 #132232 by rodw

@ 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.

More
29 Apr 2019 02:07 - 29 Apr 2019 02:10 #132233 by rodw

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.
Last edit: 29 Apr 2019 02:10 by rodw.

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

Moderators: snowgoer540
Time to create page: 0.123 seconds
Powered by Kunena Forum