- Posts: 104
- Thank you received: 0
After installing linuxcnc 2.8.4, my spindle speed increases
2 years 11 months ago #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
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
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
2 years 11 months ago #286774
by jarcysgru
Replied by jarcysgru on topic After installing linuxcnc 2.8.4, my spindle speed increases
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.
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.
Please Log in to join the conversation.
2 years 10 months ago #287109
by jarcysgru
Replied by jarcysgru on topic After installing linuxcnc 2.8.4, my spindle speed increases
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 ?
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 to join the conversation.
2 years 10 months ago #287116
by Aciera
Replied by Aciera on topic After installing linuxcnc 2.8.4, my spindle speed increases
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
net spindle-at-speed => spindle.0.at-speed
Please Log in to join the conversation.
2 years 10 months ago #287120
by jarcysgru
Replied by jarcysgru on topic After installing linuxcnc 2.8.4, my spindle speed increases
How should I understand this, please explain to me.
What am I missing and where?
What am I missing and where?
Please Log in to join the conversation.
2 years 10 months ago #287127
by Aciera
#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
Replied by Aciera on topic After installing linuxcnc 2.8.4, my spindle speed increases
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 to join the conversation.
2 years 10 months ago #287128
by jarcysgru
Replied by jarcysgru on topic After installing linuxcnc 2.8.4, my spindle speed increases
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
#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
Attachment not found
Please Log in to join the conversation.
2 years 10 months ago #287133
by Aciera
Please compress your machine config folder and post it here so I can see all the files you are using.
Replied by Aciera on topic After installing linuxcnc 2.8.4, my spindle speed increases
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 to join the conversation.
2 years 10 months ago #287134
by jarcysgru
Replied by jarcysgru on topic After installing linuxcnc 2.8.4, my spindle speed increases
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
# 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 to join the conversation.
2 years 10 months ago #287136
by Aciera
Replied by Aciera on topic After installing linuxcnc 2.8.4, my spindle speed increases
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
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 to join the conversation.
Time to create page: 0.064 seconds
