Mill atc configuration

More
20 Aug 2023 06:38 #278523 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Must unlink    #net spindle-orient-output    orient-pid.output  =>  mux2.0.in1   
After link          net orient-pid-output orient-pid.output => wcomp.0.in
With M19.. start on relays cw/cww   dependend of orient-pid.error positive/negative  
How to connect  #net spindle-orient-output    orient-pid.output  =>  mux2.0.in1  and  net orient-pid-output orient-pid.output => wcomp.0.in without error?
 
Attachments:

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

More
20 Aug 2023 07:26 #278528 by Aciera
Replied by Aciera on topic Mill atc configuration
Ah yes. Since you have already connected 'orient-pid.output' to the signal 'spindle-orient-output' with this line:

net spindle-orient-output orient-pid.output => mux2.0.in1

you need to remove the 'orient-pid.output' pin name from the line that reuses the signal name
So change this:

#net orient-pid-output orient-pid.output => wcomp.0.in

To this:

net orient-pid-output => wcomp.0.in
The following user(s) said Thank You: Artur_1617

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

More
20 Aug 2023 08:02 #278530 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
After change this.
Relays stop working.

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

More
20 Aug 2023 08:22 #278531 by Aciera
Replied by Aciera on topic Mill atc configuration
Maybe add all the pins of 'wcomp.0.' to the halshow so you can actually see what is going on.

If you attach your current hal file I can have a look at what you did.
The following user(s) said Thank You: Artur_1617

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

More
20 Aug 2023 09:19 - 20 Aug 2023 09:28 #278532 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Screens 2,3 with net orient-pid-output orient-pid.output => wcopm.0.in  and  #net  spindle-orient-output orient-pid.output => mux2.0.in
Screens 4,5 with net orient-pid-output => wcopm.0.in                                and    net  spindle-orient-output orient-pid.output => mux2.0.in




File Attachment:

File Name: Frezarka_z...8-20.hal
File Size:17 KB
Attachments:
Last edit: 20 Aug 2023 09:28 by Artur_1617.

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

More
20 Aug 2023 09:44 #278533 by Aciera
Replied by Aciera on topic Mill atc configuration
Could you add the wcomp pins to the halshow watchlist you had in this post?
forum.linuxcnc.org/10-advanced-configura...tion?start=50#278523
Otherwise we are just going around in circles.

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

More
20 Aug 2023 09:57 #278536 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
 
Attachments:

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

More
20 Aug 2023 10:22 #278537 by Aciera
Replied by Aciera on topic Mill atc configuration
I'm sorry, I got confused:

1. In your hal file delete this line:
net orient-pid-output => wcomp.0.in

2. then change this line:
net spindle-orient-output orient-pid.output => mux2.0.in1

To this:
net orient-pid-output orient-pid.output => wcomp.0.in => mux2.0.in1
The following user(s) said Thank You: Artur_1617

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

More
20 Aug 2023 11:13 #278539 by Artur_1617
Replied by Artur_1617 on topic Mill atc configuration
Aciera You are the Boss:)
Orient start working only must add next or2 for spinena.
Now one things more for now.
I think orient dont get index becouse if I turn 100time spindle in dir cw orient go 100time in dir cww for orient.

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

More
20 Aug 2023 11:24 - 20 Aug 2023 11:27 #278540 by Aciera
Replied by Aciera on topic Mill atc configuration
I think you may need to scale your spindle encoder position so you get a value from 0 .. 1 per spindle revolution:

Multiply 'hm2_5i25.0.encoder.04.position' by 1/360 and feed that into 'orient-pid.feedback' and 'orint.position'

[edit]

You can use a 'scale' component for this and set the .gain to 1/360
Last edit: 20 Aug 2023 11:27 by Aciera.
The following user(s) said Thank You: Artur_1617

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

Time to create page: 0.176 seconds
Powered by Kunena Forum