can i make adjustable stepgen.n.maxvel in halpin component
06 Jun 2023 11:05 #273005
by fery15sty
i want to connect pyvcp spinbox to stepgen.n.maxvel value
but i can't find the stepgen.n.maxvel pin in hal components
can anyone help me?
but i can't find the stepgen.n.maxvel pin in hal components
can anyone help me?
Please Log in or Create an account to join the conversation.
07 Jun 2023 01:21 - 07 Jun 2023 01:27 #273049
by fery15sty
Replied by fery15sty on topic can i make adjustable stepgen.n.maxvel in halpin component
I'm using stepgen.3 and stepgen.4 for external eoffset movement. I want speed down can be adjusted with spinbox pyvcp
#speed eoffset up movement
setp stepgen.3.position-scale 1
setp stepgen.3.maxvel 20000
setp stepgen.3.steplen 1
setp stepgen.3.stepspace 0
setp stepgen.3.dirhold 35000
setp stepgen.3.dirsetup 35000
setp stepgen.3.maxaccel 20000
#speed eoffset down movement
setp stepgen.4.position-scale 1
net speed-probe-eoffsetdown stepgen.4.maxvel <= pyvcp.probe-eoffset
setp stepgen.4.steplen 1
setp stepgen.4.stepspace 0
setp stepgen.4.dirhold 35000
setp stepgen.4.dirsetup 35000
setp stepgen.4.maxaccel 20000
Attachments:
Last edit: 07 Jun 2023 01:27 by fery15sty.
Please Log in or Create an account to join the conversation.
10 Jun 2023 19:31 #273286
by andypugh
Replied by andypugh on topic can i make adjustable stepgen.n.maxvel in halpin component
If maxvel is a parameter then it can't be connected in HAL.
It would be possible to make a Python HAL component that watches the spinbox value and issues a "setp" command to change the value.
linuxcnc.org/docs/stable/html/hal/halmodule.html
It would be possible to make a Python HAL component that watches the spinbox value and issues a "setp" command to change the value.
linuxcnc.org/docs/stable/html/hal/halmodule.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.211 seconds