On Thursday 28 November 2013 17:31:26 Frederic RIBLE did opine:

> Le 2013-11-28 22:41, Gene Heskett a écrit :
> > So obviously the SUBROUTINE_PATH isn't working, and the MDI
> > enumeration is screwed.
> 
> Yes, you have the two problems in your config.
> 
> Here are some parts of my CNC-6040.ini file
> 
> ---
> [RS274NGC]
> PARAMETER_FILE = linuxcnc.var

I am not using that file until linuxcnc can encounter a zero length file on 
invoking linuxcnc with crashing the machine from the bellyache an empty 
files gives it.  Yes, like position.txt, its handy when it works but its 
also a PIMA,  I do maybe 5% of the forced reboots without it.

> SUBROUTINE_PATH = nc_subroutines

Can I specify that SUBROUTINE_PATH twice?
 
> ...
> 
> [HALUI]
> MDI_COMMAND=o<_camon>call
> MDI_COMMAND=o<_camoff>call
> MDI_COMMAND=o<_camstore>call
> MDI_COMMAND=o<_camcenter3>call
> MDI_COMMAND=o<_camcenter4>call
> MDI_COMMAND=o<touch-top>call
> MDI_COMMAND=G10 L20 P1 X0
> MDI_COMMAND=G10 L20 P1 Y0
> MDI_COMMAND=G10 L20 P1 Z0
> MDI_COMMAND=o<goto-origin-safe-z>call
> MDI_COMMAND=o<goto-tool-change-position>call
> MDI_COMMAND=o<park>call
These last 3 I have no such function, I alway put the safe z at the end of 
the gcode I write, often 5 or 6 inches up in the air as in changing a tool.  
Tool changes are by hand, and park is where ever I cut the motor power.

My MDI_COMMAND list was edited in as I found the instuctions but no one 
said what order and they are in 2 separate suggestion files, looks like 
this:
HALUI]
MDI_COMMAND=o<align-start>call
MDI_COMMAND=o<align-y>call
MDI_COMMAND=o<align-x>call
MDI_COMMAND=o<clear-offset>call
MDI_COMMAND=o<_camon>call
MDI_COMMAND=o<_camoff>call
MDI_COMMAND=o<_camstore>call
MDI_COMMAND=o<_camcenter3>call
MDI_COMMAND=o<_camcenter4>call
Obviously wrong, but there are lots of other diffs too, like I don't have a 
touch-top call, but I do have a t_autoz abd b_autoz calls which use the 
G38.2 to find board contact to about a .0002 accuracy using the mounted 
bit.

And I have the align calls that you don't.

I re-ordered the MDI_COMMAND files, and now the g43H99 button is calling 
align-x and align-y (which it cannot find) for a click on that button.

> ---
> 
> My campins.hal file
> ---
> #CamView pins
> 
> loadrt oneshot names=forOn,forOff
> addf forOn servo-thread
> addf forOff servo-thread
> setp forOn.width .1
> setp forOff.width .1
> setp forOff.falling 1
> setp forOff.rising 0
> net forOnNet camview.hal_checkbutton1 => forOn.in forOff.in
> net cam1 forOn.out => halui.mdi-command-00
> net cam2 forOff.out => halui.mdi-command-01
> net cam3 camview.hal_button1 => halui.mdi-command-02
> net cam4 camview.hal_button2 => halui.mdi-command-03
> net cam5 camview.hal_button3 => halui.mdi-command-04
> ---
> 
> halui.mdi-command-00 will execute the first MDI_COMMAND line in [HALUI]
> section
> halui.mdi-command-01 the second one, etc ...

Where I seem to be starting with the 3rd one.
My campins.hal:
#CamView pins

loadrt oneshot names=forOn,forOff
addf forOn servo-thread
addf forOff servo-thread
setp forOn.width .1
setp forOff.width .1
setp forOff.falling 1
setp forOff.rising 0
net forOnNet camview.hal_checkbutton1 => forOn.in forOff.in
net cam1 forOn.out => halui.mdi-command-06
net cam2 forOff.out => halui.mdi-command-07
net cam3 camview.hal_button1 => halui.mdi-command-08
#net cam4 camview.hal_button2 => halui.mdi-command-09
#net cam5 camview.hal_button3 => halui.mdi-command-10

The last 2 are commented because they are an error when active.
> 
> And my config directory tree
> ---
> ...
> linuxcnc/configs/CNC-6040/nc_subroutines
> linuxcnc/configs/CNC-6040/nc_subroutines/goto-origin-safe-z.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/_camoff.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/_camon.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/touch-off.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/restore.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/goto-tool-change-position.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/on_abort.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/park.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/_camstore.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/tool_report.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/_camcenter4.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/manual_change.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/reset_state.ngc
> linuxcnc/configs/CNC-6040/nc_subroutines/_camcenter3.ngc
> linuxcnc/configs/CNC-6040/CNC-6040.ini
> ---

I will try moving that tree to match yours when I am alert enough, just had 
ham, yams, enough veggies and a sweet salad.  No clue what my sugar is but 
its safe to say 180+ this quick after eating.

Thanks Frederick.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

The first 90% of a project takes 90% of the time, the last 10% takes the
other 90% of the time.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to