Touchy and Keyboard

More
16 May 2012 16:31 #20150 by VNR
Touchy and Keyboard was created by VNR
Hello,

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.

More
16 May 2012 20:40 #20156 by BigJohnT
Replied by BigJohnT on topic Re:Touchy and Keyboard
IIRC touchy works with a mouse otherwise you can test with Axis until you get your touch screen.

John

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

More
17 May 2012 00:42 #20162 by cmorley
Replied by cmorley on topic Re:Touchy and Keyboard
you could use hal_input to connect a keyboard (like a second one) or any USB HID to connect to touchy.

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.

More
17 May 2012 12:52 - 17 May 2012 12:55 #20171 by VNR
Replied by VNR on topic Re:Touchy and Keyboard
It is working, the solution is:

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.


Attachments:
Last edit: 17 May 2012 12:55 by VNR. Reason: Inserting JPG

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

More
17 May 2012 12:57 #20172 by VNR
Replied by VNR on topic Re:Touchy and Keyboard
100 mm/min is the only value, regardless of G0 or G1 program code.

Attachments:

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

More
17 May 2012 15:29 #20181 by andypugh
Replied by andypugh on topic Re:Touchy and Keyboard
VNR wrote:

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.

More
18 May 2012 18:38 #20213 by VNR
Replied by VNR on topic Re:Touchy and Keyboard

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

I use the same ini file as in Axis GUI, wich is working OK. I only have changed in the ini file:

[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.

Will it move slower than that?

Yes, if the G1 code is slower than 100 mm/min.

What happens if you increase feed-override?

I don't know, but with halmeter i see:
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.

More
18 May 2012 18:53 #20215 by andypugh
Replied by andypugh on topic Re:Touchy and Keyboard
VNR wrote:

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.

More
18 May 2012 21:12 #20216 by VNR
Replied by VNR on topic Re:Touchy and Keyboard

You are right, it doesn't. What is feed override set to? (Should be visible somewhere in HAL)

halui.feed-override.value is set to 1

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.

Time to create page: 0.297 seconds
Powered by Kunena Forum