Hi Andrew,
I thought I would try this on my Pi4 to 7i92H to AC Servo Spindle with step/dir 
and Quadrature Encoder.
Given I have step/dir and quad encoder this should be a no brainer.

Using the information from here:
http://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m19
I added the ORIENT_OFFSET under the [RS274NGC] section but if I issue
M19 R180 Q5 P0 $0 all I get is 
"wait for orient complete: TIMED OUT" 
Error.

The problem, as usual for me anyway is the doc link above is like learning a 
new language having only the native language dictionary available.  Doesn't 
help much for grammar or sentence structure.  So although the doc shows what 
spindle.0.___ are used for HAL pins I don't know how to go further with this.  

The spindle.0.orient-angle is set to 180.  Orient-fault is 0, but is-oriented 
is also 0.

Maybe your HAL file can help and then as I try and figure this out it may help 
you?
John




> -----Original Message-----
> From: andrew beck [mailto:andrewbeck0...@gmail.com]
> Sent: July-05-21 11:35 PM
> To: Enhanced Machine Controller (EMC)
> Subject: [Emc-users] spindle orientation help for a 7i77 card looking for 
> configs to study
> 
> hey everyone.
> 
> i have been messing around all day with my cnc mill trying to get spindle
> orientation working so that I can get my toolchanger working
> 
> 
> 
> I found a video on youtube from Tallas83 that showed what  I want to do but
> he used a 5i20 card and 7i33 and I am having trouble converting it to a
> standard 7i77 mesa card set up.
> 
> 
> https://www.youtube.com/watch?v=EoXoOYSFY2Q
> 
> 
> I got it to load the new config eventually had to change all the motion
> pins to spindle.0 stuff but still getting a bit stuck when I issue a m19 r0
> command the spindle locks but doesn't rotate.  and I can see on my vfd that
> the frequency reference is not getting through even though in the hal
> configuration the hm2 analog 05 output is showing a value.  If I switch
> back to my old config it fires right up so hardware is fine.
> 
> 
> 
> does anyone out there have this working that can help.  I don't need too
> much hand holding I think and I have played with linuxcnc for several years
> now.  just getting stuck up against a wall.
> 
> regards
> 
> Andrew
> 
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to