Help with my plasma config
- vladilinsky
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
03 May 2012 16:09 - 03 May 2012 16:10 #19767
by vladilinsky
Help with my plasma config was created by vladilinsky
Hello,
What I have done is use pncconf to generate a basic config that with it I can use the arrow keys on my keyboard to drive around the plasma head.
Then I took the configs from gnipsel.com/shop/plasma/plasma.xhtml and attempted to modify them by comparing them to what pncconf made.
The important part (i think) of the error when I try to start linux cnc is
Debug file information:
plasma.hal:270: Pin 'thc.torch-on' does not exist
2165
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
The relevant area around line 270 of my plasma.hal is
# spindle on starts the arc
net spindle-on motion.spindle-on => parport.0.pin-16-out
net spindle-on thc.torch-on
# starts the motion when the plasma arc has transfered to the work
net start-motion-input thc.arc-ok <= motion.digital-in-00 <= parport.0.pin-15-in
What file should I put the thc.torch-on pin in, and how should I parse it?
Thanks
What I have done is use pncconf to generate a basic config that with it I can use the arrow keys on my keyboard to drive around the plasma head.
Then I took the configs from gnipsel.com/shop/plasma/plasma.xhtml and attempted to modify them by comparing them to what pncconf made.
The important part (i think) of the error when I try to start linux cnc is
Debug file information:
plasma.hal:270: Pin 'thc.torch-on' does not exist
2165
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
The relevant area around line 270 of my plasma.hal is
# spindle on starts the arc
net spindle-on motion.spindle-on => parport.0.pin-16-out
net spindle-on thc.torch-on
# starts the motion when the plasma arc has transfered to the work
net start-motion-input thc.arc-ok <= motion.digital-in-00 <= parport.0.pin-15-in
What file should I put the thc.torch-on pin in, and how should I parse it?
Thanks
Last edit: 03 May 2012 16:10 by vladilinsky.
Please Log in or Create an account to join the conversation.
03 May 2012 16:14 #19768
by BigJohnT
Replied by BigJohnT on topic Re:Help with my plasma config
You missed loading the thc component... look for loadrt thc and addf thc in my plasma.hal file.
John
John
Please Log in or Create an account to join the conversation.
- vladilinsky
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
03 May 2012 16:44 #19771
by vladilinsky
Replied by vladilinsky on topic Re:Help with my plasma config
Thanks.
I am trying really hard to be self sufficient in this endever but it is definitely stretching the limits of my knowledge.
I am now stuck at this error
shop@shop-desktop:~$ emc
EMC2 - 2.5.0-pre2-626-g402b6cd
Machine configuration directory is '/home/shop/emc2/configs/plasma'
Machine configuration file is 'plasma.ini'
Starting EMC2...
emc/iotask/ioControl.cc 751: can't load tool table.
Error: no pyvcp element in file!
Shutting down and cleaning up EMC2...
Cleanup done
shop@shop-desktop:~$
In my ini file I am calling plasma.xml, and the file exists.
# Highest value that will be allowed for feed override, 1.0 = 100%
MAX_FEED_OVERRIDE = 2
MAX_LINEAR_VELOCITY = 1
DEFAULT_LINEAR_VELOCITY = .025
PROGRAM_PREFIX = /home/shop/emc2/nc_files
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
EDITOR = gedit
PYVCP = plasma.xml
[/i]
and the tool table loading part
# tool table file
TOOL_TABLE = tool.tbl
But runing find / tool.tbl showed no results. Do I even need this?
I am trying really hard to be self sufficient in this endever but it is definitely stretching the limits of my knowledge.
I am now stuck at this error
shop@shop-desktop:~$ emc
EMC2 - 2.5.0-pre2-626-g402b6cd
Machine configuration directory is '/home/shop/emc2/configs/plasma'
Machine configuration file is 'plasma.ini'
Starting EMC2...
emc/iotask/ioControl.cc 751: can't load tool table.
Error: no pyvcp element in file!
Shutting down and cleaning up EMC2...
Cleanup done
shop@shop-desktop:~$
In my ini file I am calling plasma.xml, and the file exists.
# Highest value that will be allowed for feed override, 1.0 = 100%
MAX_FEED_OVERRIDE = 2
MAX_LINEAR_VELOCITY = 1
DEFAULT_LINEAR_VELOCITY = .025
PROGRAM_PREFIX = /home/shop/emc2/nc_files
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
EDITOR = gedit
PYVCP = plasma.xml
[/i]
and the tool table loading part
# tool table file
TOOL_TABLE = tool.tbl
But runing find / tool.tbl showed no results. Do I even need this?
Please Log in or Create an account to join the conversation.
03 May 2012 16:49 #19772
by BigJohnT
Replied by BigJohnT on topic Re:Help with my plasma config
You need a text file called tool.tbl in the config directory.
This link
is a sample tool table. Just copy it to start with or and I'm not sure you might just comment out the tool table line and see if it runs. No need for a tool table for a plasma unless your using tool diameter offsets instead of having the cam software create the offset path.
John
John
Please Log in or Create an account to join the conversation.
- vladilinsky
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
03 May 2012 16:50 #19773
by vladilinsky
Replied by vladilinsky on topic Re:Help with my plasma config
the plasma.xml file is unchanged from
gnipsel.com/shop/plasma/plasma.xhtml
<pre>
<pyvcp>
<hbox>
<checkbutton>
<text>"THC Enable"</text>
<halpin>"thc-enable"</halpin>
</checkbutton>
</hbox>
<labelframe text="THC Settings">
<hbox>
<vbox>
<label>
<text>"Vel Tolerance "</text>
<font>("Helvetica",10)</font>
</label>
<label>
<text>"Volts Setting "</text>
<font>("Helvetica",10)</font>
</label>
<label>
<text>"Volts Tolerance"</text>
<font>("Helvetica",10)</font>
</label>
</vbox>
<vbox>
<spinbox>
<width>"5"</width>
<halpin>"vel-tol"</halpin>
<min_>.01</min_>
<max_>1</max_>
<resolution>0.01</resolution>
<initval>0.2</initval>
<format>"1.2f"</format>
<font>("Arial",10)</font>
</spinbox>
<spinbox>
<width>"5"</width>
<halpin>"volts-requested"</halpin>
<min_>0</min_>
<max_>200</max_>
<resolution>1</resolution>
<font>("Helvetica",10)</font>
<format>"1.0f"</format>
<font>("Arial",10)</font>
<initval>1</initval>
</spinbox>
<spinbox>
<width>"5"</width>
<font>("Helvetica",10)</font>
<halpin>"volts-tolerance"</halpin>
<resolution>0.1</resolution>
<initval>1</initval>
<min_>0</min_>
<max_>10</max_>
</spinbox>
</vbox>
</hbox>
</labelframe>
<labelframe text="Arc Volts Status">
<hbox>
<vbox>
<label>
<text>"Under"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"volts-under"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"OK"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"volts-ok"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"Over"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"volts-high"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
</hbox>
</labelframe>
<labelframe text="Status">
<hbox>
<vbox>
<label>
<text>"Velocity"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"vel-status"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"Arc"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"arc-ok"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"Offset"</text>
<font>("Helvetica",10)</font>
</label>
<number>
<halpin>"offset"</halpin>
<font>("Helvetica",10)</font>
<format>"+4.4f"</format>
</number>
</vbox>
</hbox>
</labelframe>
<label text="Actual Volts"/>
<meter>
<halpin>"actual-volts"</halpin>
<text>"Torch"</text>
<subtext>"Volts"</subtext>
<size>150</size>
<min_>0</min_>
<max_>200</max_>
<majorscale>25</majorscale>
<minorscale>5</minorscale>
</meter>
<labelframe text="MDI Commands">
<button>
<halpin>"rapid-to-home"</halpin>
<text>"Rapid to Home"</text>
<font>('Helvetica',10)</font>
</button>
</labelframe>
</pyvcp>
</pre>
1,1 Top
gnipsel.com/shop/plasma/plasma.xhtml
<pre>
<pyvcp>
<hbox>
<checkbutton>
<text>"THC Enable"</text>
<halpin>"thc-enable"</halpin>
</checkbutton>
</hbox>
<labelframe text="THC Settings">
<hbox>
<vbox>
<label>
<text>"Vel Tolerance "</text>
<font>("Helvetica",10)</font>
</label>
<label>
<text>"Volts Setting "</text>
<font>("Helvetica",10)</font>
</label>
<label>
<text>"Volts Tolerance"</text>
<font>("Helvetica",10)</font>
</label>
</vbox>
<vbox>
<spinbox>
<width>"5"</width>
<halpin>"vel-tol"</halpin>
<min_>.01</min_>
<max_>1</max_>
<resolution>0.01</resolution>
<initval>0.2</initval>
<format>"1.2f"</format>
<font>("Arial",10)</font>
</spinbox>
<spinbox>
<width>"5"</width>
<halpin>"volts-requested"</halpin>
<min_>0</min_>
<max_>200</max_>
<resolution>1</resolution>
<font>("Helvetica",10)</font>
<format>"1.0f"</format>
<font>("Arial",10)</font>
<initval>1</initval>
</spinbox>
<spinbox>
<width>"5"</width>
<font>("Helvetica",10)</font>
<halpin>"volts-tolerance"</halpin>
<resolution>0.1</resolution>
<initval>1</initval>
<min_>0</min_>
<max_>10</max_>
</spinbox>
</vbox>
</hbox>
</labelframe>
<labelframe text="Arc Volts Status">
<hbox>
<vbox>
<label>
<text>"Under"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"volts-under"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"OK"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"volts-ok"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"Over"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"volts-high"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
</hbox>
</labelframe>
<labelframe text="Status">
<hbox>
<vbox>
<label>
<text>"Velocity"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"vel-status"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"Arc"</text>
<font>("Helvetica",10)</font>
</label>
<rectled>
<halpin>"arc-ok"</halpin>
<height>"20"</height>
<width>"40"</width>
<on_color>"green"</on_color>
<off_color>"red"</off_color>
</rectled>
</vbox>
<vbox>
<label>
<text>"Offset"</text>
<font>("Helvetica",10)</font>
</label>
<number>
<halpin>"offset"</halpin>
<font>("Helvetica",10)</font>
<format>"+4.4f"</format>
</number>
</vbox>
</hbox>
</labelframe>
<label text="Actual Volts"/>
<meter>
<halpin>"actual-volts"</halpin>
<text>"Torch"</text>
<subtext>"Volts"</subtext>
<size>150</size>
<min_>0</min_>
<max_>200</max_>
<majorscale>25</majorscale>
<minorscale>5</minorscale>
</meter>
<labelframe text="MDI Commands">
<button>
<halpin>"rapid-to-home"</halpin>
<text>"Rapid to Home"</text>
<font>('Helvetica',10)</font>
</button>
</labelframe>
</pyvcp>
</pre>
1,1 Top
Please Log in or Create an account to join the conversation.
03 May 2012 16:52 #19774
by BigJohnT
Replied by BigJohnT on topic Re:Help with my plasma config
I just tested and no complaints if you just delete the tool table line...
John
John
Please Log in or Create an account to join the conversation.
- vladilinsky
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
03 May 2012 16:57 #19775
by vladilinsky
Replied by vladilinsky on topic Re:Help with my plasma config
did you just remove it from the .ini file? I have commented out tool_table and the Tool_change_... and it still complains
Please Log in or Create an account to join the conversation.
03 May 2012 17:01 - 03 May 2012 17:02 #19776
by BigJohnT
Replied by BigJohnT on topic Re:Help with my plasma config
Just another note anything in the postgui.hal file you copied must be in the postgui.hal file. What happens is after the GUI loads then the postgui.hal file is loaded and the pyvcp pins are now available to be used.
linuxcnc.org/docview/html/config/ini_con...id_sub_hal_section_a
John
linuxcnc.org/docview/html/config/ini_con...id_sub_hal_section_a
John
Last edit: 03 May 2012 17:02 by BigJohnT.
Please Log in or Create an account to join the conversation.
03 May 2012 17:03 #19777
by BigJohnT
Replied by BigJohnT on topic Re:Help with my plasma config
I just commented out the tool table.
John
John
Please Log in or Create an account to join the conversation.
- vladilinsky
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
03 May 2012 17:05 #19778
by vladilinsky
Replied by vladilinsky on topic Re:Help with my plasma config
I found some lines in the plasma.hal that needed to be commented out to make the tool.tbl error go away, now I am just working on the pyvcp issue.
Please Log in or Create an account to join the conversation.
Time to create page: 0.289 seconds