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
SUBROUTINE_PATH = nc_subroutines

...

[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
---

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


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




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