[resolved]Ethercat servo spindle orient problem while using M19 ?

More
2 years 3 months ago #304891 by timaer
Thank you,Aciera. I just followed the pin guide map in the following link wiki.linuxcnc.org/uploads/orient.svg , I dont know if I need to net the orient.mode and spindle.orient-mode,because it 's not mentioned in that link.

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

More
2 years 3 months ago #304892 by Aciera
I guess you could verify by checking the value of the 'orient.0.mode' pin.
The following user(s) said Thank You: timaer

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

More
2 years 3 months ago #304956 by timaer
I've checked the 'orient.0.mode' pin value,it is always 0 no matter I executed M3S100 or M19R180, is it normal?

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

More
2 years 3 months ago #305012 by spumco

I've checked the 'orient.0.mode' pin value,it is always 0 no matter I executed M3S100 or M19R180, is it normal?
M19 "P" indicates the direction mode.  The default is '0' (bi-directional).

spindle.n.orient-mode outputs the M19 P-value (default 0) and should be connected to orient.n.mode.

Mine looks like this:
Code:
net SPIN0-ORIENT-MODE       <=  spindle.0.orient-mode net SPIN0-ORIENT-MODE       =>  orient.s0.mode

I think if that connection is left out of HAL orient.n.mode defaults to '0', but it doesn't hurt to have the connection.  Otherwise if for some reason you want to restrict direction with an M19 P-value you won't be able to.

Below is my lathe spindle config with orient stuff that works.  Step/dir servo motor.

The spindle.0.revs pin is necessary to synchronize my sub-spindle to the main spindle and is not required for orient.  None of the 'loadrt' stuff is in there, but the pin names should be self-explanatory.

Warning: Spoiler!
The following user(s) said Thank You: timaer

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

Time to create page: 0.451 seconds
Powered by Kunena Forum