Question 3: Where did You get that M200 a valid M word for LinuxCNC? Question 4: Why do You not use user-definable custom M words in M100-M199 range? Those have been available long before Michael Haberler came up with remapping: http://linuxcnc.org/docs/html/gcode/m-code.html#_m100_to_m199_user_defined_commands_a_id_sec_m100_to_m199_a
-- Viesturs If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto 2012/10/22 David Raila <[email protected]>: > > I am trying to accomplish the following, using 2.6.0-pre. > I have a basic 3-axis machine that has a sensor mounted, and I > am pretty darn close to having linuxcnc do the position and capture from > it, but could use a little help. I have remapped M200 - initialize the > sensor software, M201 - store data from the sensor, and M202 - close it > down. > > I have the following remappings: > REMAP=M200 python=m200 modalgroup=10 > REMAP=M201 python=m201 argspec=p modalgroup=10 > REMAP=M202 python=m202 modalgroup=10 > > Gcode to move/process/move/process..... looks like > > M200 > G0 X 6.000 Y 2.000 > M201 > G0 X 8.800 Y 2.000 > M201 > ... > > And the python code, which is running, starts as: > def m201(self, **words): > > global _images, _camera > if not self.task: > return INTERP_OK > for (word,value) in words.items(): > MESSAGE("M201: %s: %s" % (word, value)) > > Question 1: If I do "M201 P3" I don't see the P3 come through. Is > there some other initialization that is required or am I making a > different mistake? > > Question 2: The "if not self.task" successfully stops my code from > doing anything for axis preview. However, when I start my program > linuxcnc seems to > run through the code with self.task set before it starts any machine > motion, and then does the motion afterwards, rather than in-line as I > was expecting. > I've tried a number of alternatives, short dwells, etc. but no luck. > The question I suppose really is what is the proper gcode to > move/process/move/process. I suspect that I don't fully understand > code and modal groups. > > Thanks in advance for any advice. > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
