Yes, that would be the basic idea.  I used a hal module to do homing
directly, so I didn't actually have to have any G-code callable code.
In your case, though, I think you need a combination of initiating the
measurement from G-code and then writing the measured values into
parameters from a hal module.

-- Ralph
________________________________________
From: Florian Rist [fr...@fs.tum.de]
Sent: Sunday, July 08, 2012 6:22 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] Rotate Workpiece Coordinate System?

Hi Ralph

 > No need for emcrsh.  You can call python programs directly
 > from g-code and also userspace hal modules.

Ah, right, I think I remember that I once read about his possibility,
but never looked up any details at that time, so I forgot about it again.

 > I think that was the approach I took.  I'll have to dig up my
 > test code tomorrow.  Here is the documentation section on
 > writing python functions for hal:
 >
 > http://linuxcnc.org/docs/html/hal/halmodule.html (corrected link)

Thanks for the link.

So I could write my python program (using opencv), call it from the
g-code program, pass a few parameters (ca. positions of the tracking
marks) and get back some parameters (x/y-offset and angel) and than call
G10L2 using these. Right? Sounds easy....

See you
Flo

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to