- Posts: 85
- Thank you received: 0
can i make adjustable stepgen.n.maxvel in halpin component
3 years 4 months ago #273006
by phillc54
Replied by phillc54 on topic can i make adjustable stepgen.n.maxvel in halpin component
Please Log in to join the conversation.
3 years 4 months ago #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
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.
3 years 4 months ago #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 to join the conversation.
Time to create page: 2.213 seconds
