configure touchy

117 views
Skip to first unread message

scala...@free.fr

unread,
May 4, 2019, 11:44:17 AM5/4/19
to Machinekit
Hello everyone,
is there a step by step to configure machinekit with touchy?

@++ Jean Claude

scala...@free.fr

unread,
May 5, 2019, 5:47:46 AM5/5/19
to Machinekit
Machinekit works with gmoccapy and this configuration: What are the things I need to change for touchy to work.

thank you

@++ Jean Claude
 

BBB-CNC-CAPE-4-Axes.hal
BBB-CNC-CAPE-4-Axes.ini
setup.sh

Bas de Bruijn

unread,
May 5, 2019, 5:52:29 AM5/5/19
to scala...@free.fr, Machinekit


On 5 May 2019, at 11:47, scala...@free.fr wrote:

Machinekit works with gmoccapy and this configuration: What are the things I need to change for touchy to work.

thank you

I suggest looking at configurations for examples.


@++ Jean Claude
 

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
<BBB-CNC-CAPE-4-Axes.hal>
<BBB-CNC-CAPE-4-Axes.ini>
<setup.sh>

scala...@free.fr

unread,
May 5, 2019, 6:39:34 AM5/5/19
to Machinekit
I have seen this page, the problem is that in my.ini file I change:

DISPLAY = gmoccapy ==> DISPLAY = touchy

then machinekit doesn't start anymore

@++ Jean Claude

Bas de Bruijn

unread,
May 5, 2019, 6:57:56 AM5/5/19
to scala...@free.fr, Machinekit
I have not used touchy, but reading this:
Tells us that you need to add to your configuration a touchy.hal file.

First try to find in the current configurations for a touchy.hal file. Or maybe there is a simulation which uses touchy.

Bas

Jon Elson

unread,
May 6, 2019, 5:58:57 PM5/6/19
to Machinekit


On Saturday, May 4, 2019 at 10:44:17 AM UTC-5, scala...@free.fr wrote:
Hello everyone,
is there a step by step to configure machinekit with touchy?


Touchy requires an MPG (hand wheel encoder) and a start and stop button available as HAL pins.
You scroll through file lists and a number of other things using the MPG, and you execute G-code programs with the start button.

So, those are hardware requirements.

Jon

Malte Schmidt

unread,
May 7, 2019, 4:00:35 AM5/7/19
to Jon Elson, Machinekit
Attaching a working touchy config from my machine. Key thing here is to understand that touchy is for touchsceen but considers this input as unreliable so start/stop switches and an MPG encoder are required.

I modified touchy slightly (therefore called touchy_ms in the ini file) to:
- get rid of functionality related to switching the single MPG to a specific axis (my machine has a dedicated encoder for each axis)
- enable glasscale inputs

After having used this for a while now I have found two issues with touchy that I have not yet resolved.
- The single-block execution switch is not working (seems to be wired correctly though)
- The message reporting (errors) is poor and mostly broken




--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


--
Robert Hirsch und Malte Schmidt
Adverrun Drives
Fruehlingstr. 41
90537 Feucht

interkrenn.hal
interkrenn.ini
touchy.hal

scala...@free.fr

unread,
May 7, 2019, 4:21:20 AM5/7/19
to Machinekit
I wired my MPG

in my setup.sh file there are

pins hardward MPG
P9_22     in         #IN-ENCODER-B
P9_24     in         #IN-ENCODER-A

pin hardward Abord
P9_28     low     #AUX-05

pin hardward cycle-start
P9_30     low     #AUX-06


then I added in my.hal file

newsig button.abort bit
newsig cycle.start bit

net button.abort <= bb_gpio.p9.28
net cycle.start  <= bb_gpio.p9.30

Is that correct so far?

@++ Jean Claude

Malte Schmidt

unread,
May 7, 2019, 7:05:03 AM5/7/19
to scala...@free.fr, Machinekit
I suggest you start touchy and then you start halmeter to inspect the hal pins to check if things are wired correctly and if your inputs work. That's how I did it.

Touchy exports some hal pins so you need to:
-  set the general hal magic in the main hal file 
- wait for touchy to start
- make some other connections in a postprocess step

Above code may or may not be correct, that depends on your machine. If touchy does not start, please provide the error message.
If other GUIswork then the postprocess step might be missing

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

scala...@free.fr

unread,
May 7, 2019, 8:01:45 AM5/7/19
to Machinekit
I get an error message something like that:
GtkWarning _gtk_drawable_get_source_drawable:

I couldn't make a copy of the message I have my usb hub that doesn't work well, I ordered another one.


@++ Jean Claude

scalaire

unread,
May 9, 2019, 1:37:18 PM5/9/19
to Machinekit
Finally now Touchy starts, the folder "nc_files" was missing in the linuxcnc folder.

As Malte suggests, I'm going to watch with  halmeter.

Thank you

@++ Jean Claude
Reply all
Reply to author
Forward
0 new messages