Mill atc configuration

More
01 Sep 2023 12:13 #279568 by Aciera
Replied by Aciera on topic Mill atc configuration

growing to next index pulse and set to 0.

Yes but does 'orient.pid-.feedback' grow from 0 to 1 in one revolution? Theoretically it should get to 1.0 and then go to 0.0 but that may be difficult to do by hand.
The following user(s) said Thank You: Artur_1617

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

More
01 Sep 2023 12:51 #279570 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Before we make scale orient.pid-feedback going from 0 to 1 and set to 0
Now with scale go from 0 to 0.00434782 and set to 0

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

More
01 Sep 2023 13:37 #279571 by Aciera
Replied by Aciera on topic Mill atc configuration

Now with scale go from 0 to 0.00434782 and set to 0

so there is clearly a problem but I'm a bit confused now.

If you look at 'hm2_5i25.0.encoder.04.position', what value does it count to in one revolution of the spindle?

 
The following user(s) said Thank You: Artur_1617

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

More
01 Sep 2023 14:07 - 01 Sep 2023 14:25 #279574 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Encoder.04.position go from 0 to 1 and on index is set to 0
Last edit: 01 Sep 2023 14:25 by Artur_1617.

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

More
01 Sep 2023 14:39 - 01 Sep 2023 14:40 #279577 by Aciera
Replied by Aciera on topic Mill atc configuration
Ah ok, thanks for the edit, because that had me really confused
 
Last edit: 01 Sep 2023 14:40 by Aciera.

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

More
01 Sep 2023 14:46 #279578 by Aciera
Replied by Aciera on topic Mill atc configuration
I'm sorry there seems to have been a misunderstanding at some time because
if your hm2_5i25.0.encoder.04.position already counts from 0..1 we don't want the
'scale.orient' component.

So in your hal file change this:

# Encoder position into orient component and orient pid
setp scale.orient.gain 0.004347826
net spindle-revs scale.orient.in
net spindle-revs-scaled <= scale.orient.out orient.position orient-pid.feedback


to this:

# Encoder position into orient component and orient pid
net spindle-revs orient.position orient-pid.feedback

You can also remove the 'loadrt' and 'addf' for scale.orient.

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

More
01 Sep 2023 15:10 #279583 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
I make the changes.
Today I try this before:)
But still orient want to go to index.
orient-pid.command and orient command is still 0 
Screen with orient on
 
 

File Attachment:

File Name: Frezarka_z...9-01.hal
File Size:17 KB
Attachments:

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

More
01 Sep 2023 15:54 #279586 by Aciera
Replied by Aciera on topic Mill atc configuration
Hm, not sure, could you add 'orient.poserr' to the halshow?

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

More
01 Sep 2023 16:02 #279587 by Aciera
Replied by Aciera on topic Mill atc configuration
Ok, it's taken me a long time but I think I found the problem:

Try and add this to all the 'addf' lines in your ini:

addf orient servo-thread

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

More
01 Sep 2023 16:03 #279588 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
With orient on or off is still 0 
 
Attachments:

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

Time to create page: 0.198 seconds
Powered by Kunena Forum