Touchy and Keyboard
I am working in a manual lathe conversion to CNC using LinuxCNC V2.5.0. Currently it is working with Axis, but i want to switch to Touchy. Before i make the CNC panel and buy a touch screen monitor i want to test it with the PC keyboard.
Do you have any example how to connect the Touchy button's (Abort/Start/Single block/Wheel counts) to the PC keyboard ?
Thanks you in advance,
Victor
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
I can't see any formal description in the manual on hal_input but there are man pages.
Please Log in or Create an account to join the conversation.
INI File:
[DISPLAY]
EMBED_TAB_NAME=GladeVCP demo
EMBED_TAB_COMMAND=gladevcp -c gladevcp -x {XID} -u hitcounter.py -H gladevcp-touchy.hal manual-example.ui
gladevcp-touchy.hal file:
#Program Stop
net cb1 gladevcp.check => gladevcp.led1
#net cb1 => halui.program.stop
net cb1 => touchy.abort
#Program Run
net b1 gladevcp.button => gladevcp.led2
#net b1 => halui.mode.auto halui.program.run
net b1 => touchy.cycle-start
But now I HAVE A NEW PROBLEM:
In Touchy GUI the X and Z axis moves only at 100 mm/min regardless of G0 or G1 program code. That does not happen with Axis GUI.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
100 mm/min is the only value, regardless of G0 or G1 program code.
Will it move slower than that? What happens if you increase feed-override?
Did you create a whole new config, or just change the GUI line in the INI file?
The first place I would look would be in the INI file in the [TRAJ] and {AXIS_N] sections.
Please Log in or Create an account to join the conversation.
I use the same ini file as in Axis GUI, wich is working OK. I only have changed in the ini file:Did you create a whole new config, or just change the GUI line in the INI file?
The first place I would look would be in the INI file in the [TRAJ] and {AXIS_N] sections
[DISPLAY]
#DISPLAY = axis
DISPLAY = touchy
and i have uncommented an EMBED_TAB_NAME and an EMBED_TAB_COMMAND in order to use Start and Stop buttons in a new GladeVcp tab panel.
Yes, if the G1 code is slower than 100 mm/min.Will it move slower than that?
I don't know, but with halmeter i see:What happens if you increase feed-override?
motion.requested-vel 133.3333 (velocity mode, equals to 8000 mm/min)
motion.currente-vel 1.6666 (velocity mode, equals to 100 mm/min)
motion.requested-vel OUT FLOAT The requested velocity with no adjustments for feed override
motion.current-vel OUT FLOAT Current cartesian velocity
it doesn't make sense.
Victor
Please Log in or Create an account to join the conversation.
motion.requested-vel OUT FLOAT The requested velocity with no adjustments for feed override
motion.current-vel OUT FLOAT Current cartesian velocity
it doesn't make sense.
You are right, it doesn't. What is feed override set to? (Should be visible somewhere in HAL)
Please Log in or Create an account to join the conversation.
halui.feed-override.value is set to 1You are right, it doesn't. What is feed override set to? (Should be visible somewhere in HAL)
but thanks to your idea i have found halui.max-velocity.value set to 1.6666 (i don't know why) (x60 = 100 mm/min)
(halui.max-velocity.value float out Current value for maximum velocity)
so i set in hal:
setp halui.max-velocity.scale 50
and connect a "pulse" button to it:
net halui-pulses-maxvel touchy-buttons.hal_button_pulses_maxvel => halui.max-velocity.increase
the problem now is that the maximum value allowed for halui.max-velocity.value is 125 (7,5 mts/min) half the X and Z axis as is configured in the ini file (250 = 15 mts/min)
Any idea ? Is it a touchy bug ?
Victor
Please Log in or Create an account to join the conversation.