changing max velocity on startup

More
13 Jul 2016 11:10 #77381 by jtc
Hi.

On the current machine that was been retrofited with linuxcnc, it have a selector for the machine max velocity:





how can read and set the max velocity when linuxcnc starts up?


João
Attachments:

Please Log in or Create an account to join the conversation.

More
14 Jul 2016 03:11 #77424 by cmorley
halui.max-velocity
using a switch requires using the direct-value option and a mux or somethimg similar
set the scaling to get percent, then have a mux component out put 25,50,100 % depending on the switch position.

Chris M

Please Log in or Create an account to join the conversation.

More
14 Jul 2016 20:23 #77458 by jtc
that was what I used, but, for example, if I left the machine on 25%, next time I start linuxcnc it will be set at 100%. only if I make a change on the switch it will update.


João

Please Log in or Create an account to join the conversation.

More
14 Jul 2016 21:38 #77465 by BigJohnT
The pin halui.machine.is-on toggles when the power button (F2) is pressed. Maybe you can use this to toggle the logic.

JT
The following user(s) said Thank You: jtc

Please Log in or Create an account to join the conversation.

Time to create page: 0.285 seconds
Powered by Kunena Forum