linuxcnc remap g88.6 using python

More
25 Nov 2015 05:07 #65765 by crazyboywang
ini setting
[DISPLAY]
PROGRAM_PREFIX=/home/wzc/linuxcnc/nc_files
[RS274NGC]
REMAP=G88.6 modalgroup=1 argspec=XYZp python=g886



put the "g886.py" to the directory "/home/wzc/linuxcnc/nc_files"
chmod +x g886.py

g886.py code is

from interpreter import INTERP_OK
from emccanon import MESSAGE
def g886(self, **words):
for key in words:
MESSAGE("word ’%s’ = %f" % (key, words[key]))
if words.has_key(’p’):
MESSAGE("the P word was present")
MESSAGE("comment on this line: ’%s’" % (self.blocks[self.remap_level].comment))
return INTERP_OK


when run the linuxcnc , promoted " 'g886' is not a python callable function -81 REMAP=g886........ "

Please Log in or Create an account to join the conversation.

More
25 Nov 2015 07:17 #65767 by ArcEye
I see you have posted all over the Machinekit forum with this too.

It is no good telling us what is in the file, you need to attach it.
What you have posted would not run, need to see the actual file header, indentations etc etc

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum