- 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
29 Apr 2019 04:22 #132238
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
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?
could that be the problem?
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.
29 Apr 2019 08:39 - 29 Apr 2019 08:40 #132254
by rodw
Replied by rodw on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Calling plasmac.hal and machine.hal is correct.
This seems to be the error.
At a guess you have a line that says:
It should be
If not, check that this line is commented out with a '#" or deleted
Failing that, post up your Hal file and I'll have Tommylight review it on the night shift
This seems to be the error.
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:
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
loadrt pid names=pid.x,pid.y,pid.z,pid.s
If not, check that this line is commented out with a '#" or deleted
#HALFILE = LIB:basic_sim.tcl
Failing that, post up your Hal file and I'll have Tommylight review it on the night shift
Last edit: 29 Apr 2019 08:40 by rodw.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
29 Apr 2019 10:13 #132263
by phillc54
Should be:
Cheers, Phill.
Replied by phillc54 on topic Configuring Plasmac - a complete THC/plasma config for any hardware
insmod for otmod failed, returned -1
loadrt motmod ....
Cheers, Phill.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
29 Apr 2019 17:41 #132306
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
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.
Attachments:
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
Less
More
- Posts: 757
- Thank you received: 216
29 Apr 2019 18:11 - 29 Apr 2019 18:27 #132308
by islander261
Replied by islander261 on topic Configuring Plasmac - a complete THC/plasma config for any hardware
First of all you posted two copies of the same file with the same name. If this is way your configuration is you will have problems. Second, do not modify the plasmac.hal file, it is still in rapid development and may change. Make all custom connections for your machine in your machine.hal file. I will look at these during lunch. Your .ini is two files merged together too, will not work.
We need to know where you have connected all your limit switches, homingswitches, float switch, ohmic probe, and arc voltage source to get you configuration fixed.
John
We need to know where you have connected all your limit switches, homingswitches, float switch, ohmic probe, and arc voltage source to get you configuration fixed.
John
Last edit: 29 Apr 2019 18:27 by islander261.
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
Less
More
- Posts: 757
- Thank you received: 216
29 Apr 2019 19:39 - 29 Apr 2019 19:44 #132311
by islander261
Replied by islander261 on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Ok, these should be close.
These will not work in their present state because you didn't post working .hal and .ini files for your machine. You will need to add all your limit and homing switches and other I/O. The voltage scaling in the plasmac branch works correctly now so enter your scale and offset values in the GUI. Do not edit the plasmac.hal file.
The branch was updated today so you will need to update your clone of it and fix your .ini to work with the current release.
John
These will not work in their present state because you didn't post working .hal and .ini files for your machine. You will need to add all your limit and homing switches and other I/O. The voltage scaling in the plasmac branch works correctly now so enter your scale and offset values in the GUI. Do not edit the plasmac.hal file.
The branch was updated today so you will need to update your clone of it and fix your .ini to work with the current release.
John
Last edit: 29 Apr 2019 19:44 by islander261.
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
Less
More
- Posts: 757
- Thank you received: 216
29 Apr 2019 19:45 - 29 Apr 2019 19:47 #132312
by islander261
Replied by islander261 on topic Configuring Plasmac - a complete THC/plasma config for any hardware
May be the correct .hal will upload this time.
You will need to rename the file to machine.hal, the the attachment editor keeps adding stuff.
John
You will need to rename the file to machine.hal, the the attachment editor keeps adding stuff.
John
Last edit: 29 Apr 2019 19:47 by islander261.
Please Log in or Create an account to join the conversation.
29 Apr 2019 22:38 #132319
by JTknives
Replied by JTknives on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Thankyou I will try them when I get off work. The plasmac and machine hal are the same as I thought I made the machine version and then copy it to plasmac. So I might need to start over and not mess with the plasmac.hal
Please Log in or Create an account to join the conversation.
29 Apr 2019 23:38 #132320
by rodw
I reviewed my earlier instructions and added a copy of the machne.hal file John created for you as an example on this post.
forum.linuxcnc.org/plasma-laser/36410-in...onent?start=0#131200
Its still a bit of a work in progress.
Replied by rodw on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Thankyou I will try them when I get off work. The plasmac and machine hal are the same as I thought I made the machine version and then copy it to plasmac. So I might need to start over and not mess with the plasmac.hal
I reviewed my earlier instructions and added a copy of the machne.hal file John created for you as an example on this post.
forum.linuxcnc.org/plasma-laser/36410-in...onent?start=0#131200
Its still a bit of a work in progress.
Please Log in or Create an account to join the conversation.
30 Apr 2019 10:21 #132336
by bevins
Replied by bevins on topic Configuring Plasmac - a complete THC/plasma config for any hardware
Is this usable for production?
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.285 seconds