Hello, I would like to perform some halui commands while the program is running but I get some errors. For instance I put a M100 program at the beginning of my g-code just to make some checks before starting with the production. Here there is the code of my M100 program that should home my system. The problem is that I gat an error: "Can't do that (EMC_AXIS_HOMING) in auto mode with the interpreter reading." Just for this reason I used halui.mode.manual and halui. program.stop but the error is still on. Am I mistaking something?
Thank you Luigi #!/bin/sh #homing halcmd setp halui.mode.manual True halcmd setp halui.program.stop True halcmd setp halui.joint.0.select True homed=$(halcmd - s show pin halui.joint.0.is-homed|cut -c 17) echo $homed if [ $homed = "F" ]; then halcmd setp halui.joint.selected.home True fi halcmd setp halui.program. run True halcmd setp halui.mode.auto True exit 0 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
