After installing linuxcnc 2.8.4, my spindle speed increases
- jarcysgru
- Offline
- Premium Member
- Posts: 108
- Thank you received: 5
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
Attachments:
Please Log in or Create an account to join the conversation.
- jarcysgru
- Offline
- Premium Member
- Posts: 108
- Thank you received: 5
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:
Please Log in or Create an account to join the conversation.
- jarcysgru
- Offline
- Premium Member
- Posts: 108
- Thank you received: 5
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
- Away
- Administrator
- Posts: 4001
- Thank you received: 1728
net spindle-at-speed => spindle.0.at-speed
Please Log in or Create an account to join the conversation.
- jarcysgru
- Offline
- Premium Member
- Posts: 108
- Thank you received: 5
What am I missing and where?
Please Log in or Create an account to join the conversation.
- Aciera
- Away
- Administrator
- Posts: 4001
- Thank you received: 1728
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: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.
#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.
- jarcysgru
- Offline
- Premium Member
- Posts: 108
- Thank you received: 5
#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
Attachments:
Please Log in or Create an account to join the conversation.
- Aciera
- Away
- Administrator
- Posts: 4001
- Thank you received: 1728
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.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'
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.
- jarcysgru
- Offline
- Premium Member
- Posts: 108
- Thank you received: 5
# 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
- Away
- Administrator
- Posts: 4001
- Thank you received: 1728
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.