I've done a first cut for spindle orient support and am looking for feedback if 
that is actually useful or what needs fixing.

The way this works is as follows:

M19  R- P-   (in modal group 7 like m3,m4,m5)
R..orientation angle
P..ccw direction flag (default to 0/cw; integer; non-zero means ccw)

motion has the following additional pins:

spindle-orient-angle    out,float, reflects R word
spindle-orient-fwd      out,bit, default true, false if P==1
spindle-orient          out,bit, becomes true on M19 command
spindle-is-oriented     in,bit, acknowledge pin for spindle-orient
spindle-orient-fault    in,s32, fault code, 0 == ok
spindle-locked          out, bit, 

The M19 command raises spindle-orient.
when spindle-is-oriented becomes true, spindle-locked is asserted and 
spindle-orient is deasserted.
The orient sequence is now complete.

Any of M3,M4,M5 clear spindle-orient and spindle-locked and proceed as normal.
If spindle-orient is true and spindle-orient-faule != 0, an error "fault %d 
during orient in progress" is displayed and the motion queue is flushed.

Other motion during an M19 is possible - you can do an M19 and a G30 and they 
should proceed in parallel.

Code is at: 
http://git.mah.priv.at/gitweb/emc2-dev.git/shortlog/refs/heads/orient-spindle , 
based on master

-Michael


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to