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

More
7 years 6 months ago #132232 by rodw

tommylight wrote: @ 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
7 years 6 months ago - 7 years 6 months ago #132233 by rodw

rodw wrote: I just wondered if you are opening the sim TCL file as well as your own? make sure its commented out


Code:
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: 7 years 6 months ago by rodw.

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

More
7 years 6 months ago #132238 by JTknives
OK i can feel i'm getting closer but i could not find a duplicate of the "pid.x.enable" but i noticed its calling 2 .hal's. one is machine.hal and the other is plasmac.hal
could that be the problem?
Code:
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 ./machine.hal twopass:found ./plasmac.hal twopass:found ./plasmac.hal twopass:found ./custom.hal Note: Using POSIX realtime 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 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: 10.10.10.10: Hardware address: 00:60:1b:10:80:32 hm2_eth: discovered 7I76E-16 hm2/hm2_7i76e.0: Smart Serial Firmware Version 43 Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv hm2/hm2_7i76e.0: 51 I/O Pins used: hm2/hm2_7i76e.0: IO Pin 000 (P1-01): StepGen #0, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 001 (P1-14): StepGen #0, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 002 (P1-02): StepGen #1, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 003 (P1-15): StepGen #1, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 004 (P1-03): StepGen #2, pin Direction (Output) hm2/hm2_7i76e.0: IO Pin 005 (P1-16): StepGen #2, pin Step (Output) hm2/hm2_7i76e.0: IO Pin 006 (P1-04): IOPort hm2/hm2_7i76e.0: IO Pin 007 (P1-17): IOPort hm2/hm2_7i76e.0: IO Pin 008 (P1-05): IOPort hm2/hm2_7i76e.0: IO Pin 009 (P1-06): IOPort hm2/hm2_7i76e.0: IO Pin 010 (P1-07): Smart Serial Interface #0, pin TxData0 (Output) hm2/hm2_7i76e.0: IO Pin 011 (P1-08): Smart Serial Interface #0, pin RxData0 (Input) hm2/hm2_7i76e.0: IO Pin 012 (P1-09): IOPort hm2/hm2_7i76e.0: IO Pin 013 (P1-10): IOPort hm2/hm2_7i76e.0: IO Pin 014 (P1-11): Encoder #0, pin Index (Input) hm2/hm2_7i76e.0: IO Pin 015 (P1-12): Encoder #0, pin B (Input) hm2/hm2_7i76e.0: IO Pin 016 (P1-13): Encoder #0, pin A (Input) hm2/hm2_7i76e.0: IO Pin 017 (P2-01): IOPort hm2/hm2_7i76e.0: IO Pin 018 (P2-14): IOPort hm2/hm2_7i76e.0: IO Pin 019 (P2-02): IOPort hm2/hm2_7i76e.0: IO Pin 020 (P2-15): IOPort hm2/hm2_7i76e.0: IO Pin 021 (P2-03): IOPort hm2/hm2_7i76e.0: IO Pin 022 (P2-16): IOPort hm2/hm2_7i76e.0: IO Pin 023 (P2-04): IOPort hm2/hm2_7i76e.0: IO Pin 024 (P2-17): IOPort hm2/hm2_7i76e.0: IO Pin 025 (P2-05): IOPort hm2/hm2_7i76e.0: IO Pin 026 (P2-06): IOPort hm2/hm2_7i76e.0: IO Pin 027 (P2-07): IOPort hm2/hm2_7i76e.0: IO Pin 028 (P2-08): IOPort hm2/hm2_7i76e.0: IO Pin 029 (P2-09): IOPort hm2/hm2_7i76e.0: IO Pin 030 (P2-10): IOPort hm2/hm2_7i76e.0: IO Pin 031 (P2-11): IOPort hm2/hm2_7i76e.0: IO Pin 032 (P2-12): IOPort hm2/hm2_7i76e.0: IO Pin 033 (P2-13): IOPort hm2/hm2_7i76e.0: IO Pin 034 (P3-01): IOPort hm2/hm2_7i76e.0: IO Pin 035 (P3-14): IOPort hm2/hm2_7i76e.0: IO Pin 036 (P3-02): IOPort hm2/hm2_7i76e.0: IO Pin 037 (P3-15): IOPort hm2/hm2_7i76e.0: IO Pin 038 (P3-03): IOPort hm2/hm2_7i76e.0: IO Pin 039 (P3-16): IOPort hm2/hm2_7i76e.0: IO Pin 040 (P3-04): IOPort hm2/hm2_7i76e.0: IO Pin 041 (P3-17): IOPort hm2/hm2_7i76e.0: IO Pin 042 (P3-05): IOPort hm2/hm2_7i76e.0: IO Pin 043 (P3-06): IOPort hm2/hm2_7i76e.0: IO Pin 044 (P3-07): IOPort hm2/hm2_7i76e.0: IO Pin 045 (P3-08): IOPort hm2/hm2_7i76e.0: IO Pin 046 (P3-09): IOPort hm2/hm2_7i76e.0: IO Pin 047 (P3-10): IOPort hm2/hm2_7i76e.0: IO Pin 048 (P3-11): IOPort hm2/hm2_7i76e.0: IO Pin 049 (P3-12): IOPort hm2/hm2_7i76e.0: IO Pin 050 (P3-13): IOPort hm2/hm2_7i76e.0: registered HAL: ERROR: duplicate variable 'pid.x.enable' PID: ERROR: loop 4 var export failed pid: rtapi_app_main: Operation not permitted (-1) twopass: load_the_modules cmd=<orig_loadrt pid names=pid.x,pid.y,pid.z,pid.s,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 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:~$

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

More
7 years 6 months ago - 7 years 6 months ago #132254 by rodw
Calling plasmac.hal and machine.hal is correct.

This seems to be the error.
Code:
HAL: ERROR: duplicate variable 'pid.x.enable' PID: ERROR: loop 4 var export failed pid: rtapi_app_main: Operation not permitted (-1) twopass: load_the_modules cmd=<orig_loadrt pid names=pid.x,pid.y,pid.z,pid.s,pid.x,pid.y,pid.z,pid.s,pid.x,pid.y,pid.z,pid.s>

At a guess you have a line that says:
Code:
loadrt pid names=pid.x,pid.y,pid.z,pid.s,pid.x,pid.y,pid.z,pid.s,pid.x,pid.y,pid.z,pid.s

It should be
Code:
loadrt pid names=pid.x,pid.y,pid.z,pid.s

If not, check that this line is commented out with a '#" or deleted
Code:
#HALFILE = LIB:basic_sim.tcl

Failing that, post up your Hal file and I'll have Tommylight review it on the night shift :woohoo: :woohoo: :evil: :evil: :woohoo: :woohoo:
Last edit: 7 years 6 months ago by rodw.
The following user(s) said Thank You: tommylight

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

More
7 years 6 months ago #132263 by phillc54
Code:
insmod for otmod failed, returned -1
Should be:
Code:
loadrt motmod ....

Cheers, Phill.
The following user(s) said Thank You: rodw

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

More
7 years 6 months ago #132306 by JTknives
i have looked through the ini and both hal files and i dont see anything. im going to load up my ini and both hal here and if you dont mind giving them a scan that would be amazing. if i need to start a new thread for this let me know and i will delete these posts.

File Attachment:

File Name: plasmac.hal
File Size:14.01 KB

File Attachment:

File Name: machine.hal
File Size:14.01 KB

File Attachment:

File Name: mymachine.ini
File Size:11.91 KB

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

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