After installing linuxcnc 2.8.4, my spindle speed increases

More
25 Nov 2023 10:28 - 25 Nov 2023 15:47 #286444 by jarcysgru
Wreszcie po zainstalowaniu linuxcnc 2.8.4 na nowym komputerze mam dobry jitter.
Dodałem wrzeciono
sterowane WHB04B-6-WHB04B-6-RS485-Enconder
Wszystko działa dobrze, z wyjątkiem skoków prędkości wrzeciona, jak pokazano

na filmie.
www.youtube.com/shorts/U-4hW_EWd34

Wreszcie po zainstalowaniu linuxcnc 2.8.4 na nowym komputerze mam dobry jitter.
Dodałem WHB04B-6-WHB04B-6-Wrzeciono sterowane RS485-Enconder

Wszystko działa poprawnie, poza skokami prędkości obrotowej wrzeciona, jak pokazano

na filmie.


www.youtube.com/shorts/U-4hW_EWd34 To są moje pliki


File Attachment:

File Name: custom.hal
File Size:0 KB

File Attachment:

File Name: custom_postgui.hal
File Size:0 KB

File Attachment:

File Name: TEST_TOKAR...ODER.hal
File Size:4 KB

File Attachment:

File Name: TEST_TOKAR...ODER.ini
File Size:3 KB

File Attachment:

File Name: wedkahandrad.hal
File Size:9 KB
Attachments:
Last edit: 25 Nov 2023 15:47 by jarcysgru.

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

More
29 Nov 2023 11:20 - 29 Nov 2023 12:22 #286774 by jarcysgru
Zapomniałem dodać enkoder, zbudowałem go na transoptorach trzygniazdowych, faza A, faza B Index, dysk ma 60 otworów.
Dodaję plik pyvcp_options, bo zapomniałem.

[załącznik=57735]pyvcp_options.hal[/załącznik]


Gdy ustawię np. 600 obrotów to ta wartość nie jest stała na panelu, tak jak pokazałem na filmiku
I checked the lathe spindle rpm with a laser meter and it was constant.
Attachments:
Last edit: 29 Nov 2023 12:22 by jarcysgru.

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

More
03 Dec 2023 17:42 #287109 by jarcysgru
Hello again, this non-constant speed results from my encoder, I tested the threading and the thread is working fine.

I only have one more problem, which is that when I start the program, the axes start moving and do not wait until the set rpm is reached.
How can I fix it ?

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
03 Dec 2023 18:30 #287116 by Aciera
There doesn't seem to be anything driving your spindle-at-speed signal, so I'm not sure how you get any motion at program start at all:
net spindle-at-speed => spindle.0.at-speed

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

More
03 Dec 2023 18:53 #287120 by jarcysgru
How should I understand this, please explain to me.
What am I missing and where?

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
03 Dec 2023 19:06 #287127 by Aciera

I only have one more problem, which is that when I start the program, the axes start moving and do not wait until the set rpm is reached.

Usually motion should not start until the pin 'spindle.0.at-speed' is true. In your custom_postgui.hal you have this line commented out:

#net spindle-at-speed => vfd.spindle-at-speed

While in your TEST_....hal you have this line:
net spindle-at-speed => spindle.0.at-speed
So I do not see how 'spinle.0.at-speed' could ever be True an thus how motion would start at all.

Maybe this helps (see section 6.2):
linuxcnc.org/docs/html/examples/spindle.html

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

More
03 Dec 2023 19:35 #287128 by jarcysgru
In the custom postugi file I put it like this
#net spindle-cmd-rpm-abs => pyvcp.spindle-speed
#net spindle-at-speed => pyvcp.spindle-at-speed-led
net spindle-at-speed => vfd.spindle-at-speed
setp vfd.enable 1

And I have such a report

 

File Attachment:

File Name: BD.txt
File Size:6 KB
Attachments:

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
03 Dec 2023 19:53 #287133 by Aciera

custom_postgui.hal:3: Signal 'spindle-at-speed' can not add OUT pin 'vfd.spindle-at-speed', it already has OUT pin 'near.0.out'

This indicated that you do have the signal 'spindle-at-speed' connected to 'near.0.out' but I cannot find anything like that in the files you have posted.
Please compress your machine config folder and post it here so I can see all the files you are using.

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

More
03 Dec 2023 19:55 #287134 by jarcysgru
How should I understand this, should I place these entries, how and where? I ask for your understanding and thank you for your help.

# load a near component and attach it to a thread
loadrt near
addf near.0 servo-thread

# connect one input to the commanded spindle speed
net spindle-cmd => near.0.in1

# connect one input to the encoder-measured spindle speed
net spindle-velocity => near.0.in2

# connect the output to the spindle-at-speed input
net spindle-at-speed spindle.0.at-speed <= near.0.out

# set the spindle speed inputs to agree if within 1%
setp near.0.scale 1.01

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
03 Dec 2023 20:13 #287136 by Aciera
The main question is where do you get your spindle-at-speed signal from? VFD or an encoder?

You can use the example from my linked docs in your hal file IF you have encoder feedback from your spindle. If you do then connect your encoder velocity value to the signal 'spindle-velocity'

However, IF your VFD provides an 'At-speed' signal than use
net spindle-at-speed => vfd.spindle-at-speed

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

Time to create page: 0.076 seconds
Powered by Kunena Forum