Mill atc configuration

More
21 Aug 2023 09:28 #278598 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Im back to setup without orient for see index issue.
If spindle turn cw encoder.04.input-index when is out of index is false and on index is true this working ok.
But if spindle turn ccw when is out of index is false but after first past index is set to true and change to false on index
screen1 spindle run cw
screen2 spindle run cww
This is ok?
 
 
Attachments:

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

More
21 Aug 2023 11:45 #278606 by Aciera
Replied by Aciera on topic Mill atc configuration
That is strange. I don't think this can work properly because you have a shift in the positive edge of the signal.
What kind of sensor are you using?

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

More
21 Aug 2023 14:04 #278614 by Artur_1617

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

More
21 Aug 2023 14:49 #278618 by Aciera
Replied by Aciera on topic Mill atc configuration
I'm not really familiar with those hall sensors but looking at the datasheet gives me the impression that the signal inversion with reverse rotation is actually normal behaviour:

This results in the IC output switching from low state
to high state as the leading edge of a tooth (a rising mechanical
edge, as detected by the IC) passes the package face. In this con-
figuration, the device output switches to its high polarity when a
tooth is the target feature nearest to the package. If the direction
of rotation is reversed, so that the gear rotates from the pin 4 side
to the pin 1 side, then the output polarity inverts. That is, the out-
put signal goes high when a falling edge is detected, and a valley
is nearest to the package.

The following user(s) said Thank You: Artur_1617

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

More
22 Aug 2023 07:16 #278675 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
I working with this spindle about two years and linux 2.7 and making lot of rigid tappings but for orient this sensor dont go to work properly.
Ordered new index sensor when arrive we go to finish this setup.

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

More
31 Aug 2023 16:42 #279493 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Index sensor arrived now working ok on both directions.
I see two problems for now;
1 After start linuxcnc and dont turn spindle orient dont start but think this go after solution problem 2
2 After turn spindle and start orient spindle go to encoder.04 count 0 and index and stop but sill is On orient then finish get error time out.
In ini I have orient_offset=115 and in hallshow orient angle is 115 or make command M19 R50 Q10 P0  is 115+50=165 like on 1screenshot
But every time from every position orient.pid-feddback try to go to encoder.04 count 0 and index
First screen is with encoder on index and orient.pid-feddback is 0 but should be some value to go to 165 angle
Second is with encoder count 114 and this is angle 180 and here orient.pid-feddback should be 0 but try to go to index...

 
 
 

File Attachment:

File Name: Frezarka_z...8-31.hal
File Size:18 KB

 

File Attachment:

File Name: Frezarka_z...8-31.ini
File Size:6 KB
Attachments:

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

More
31 Aug 2023 18:40 #279503 by Aciera
Replied by Aciera on topic Mill atc configuration
Does the pin 'orient.is-oriented' ever go high in all your testing?

As for the screenshots, I'm confused because 'orient.enable' is low so I would not expect anything to happen.
The following user(s) said Thank You: Artur_1617

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

More
31 Aug 2023 20:47 #279513 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Pin orient.is-oriented never was high.
On screenshots I dont start orient only turn spindle with hand to positions for showing orient-pid.feedback is wrong and all time go to index.
 

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

More
01 Sep 2023 03:59 #279544 by Aciera
Replied by Aciera on topic Mill atc configuration
Then you will need to go back an find out why orient-pid.feedback is wrong. Turn the spindle by hand, watch encoder.04.position and .counts and verify that those are reset on index then verify that .feedback is also zero on index and counts from 0..1 for 0..360° of rotation.
The following user(s) said Thank You: Artur_1617

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

More
01 Sep 2023 11:12 #279562 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Encoder.04  is reset on index and feedback is 0 and start turn the spindle growing to next index pulse and set to 0.
I think problem is any change in orient-pid.command and orient.command is still 0

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

Time to create page: 0.165 seconds
Powered by Kunena Forum