can i make adjustable stepgen.n.maxvel in halpin component

More
3 years 4 months ago #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?

Please Log in to join the conversation.

More
More
3 years 4 months ago #273049 by fery15sty
I'm using stepgen.3 and stepgen.4 for external eoffset movement. I want speed down can be adjusted with spinbox pyvcp
Code:
#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

 

Attachment not found

Please Log in to join the conversation.

More
3 years 4 months ago #273286 by andypugh
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

Please Log in to join the conversation.

Time to create page: 2.213 seconds
Powered by Kunena Forum