- Posts: 19899
- Thank you received: 4655
Schaublin 125-CNC retrofit.
- andypugh
- Offline
- Moderator
-
Less
More
6 months 4 weeks ago #345081
by andypugh
Pressing the hardware "go" button was running the lathe macro even when the MDI window or Auto (G-code) window were at the front.
This might not happen with Gmoccapy.
It was previously prevented by code in the GUI telling the Glade panel when it had focus, but the signalling method used is't available in GTK3.
Also, the problem went away after a restart, so I haven't been able to work out the cause.
I may be the only one using the macros with Touchy...
Replied by andypugh on topic Schaublin 125-CNC retrofit.
Be a bit careful with them, I found a bug with my system (which uses Touchy, so may be different).I got the Schaublin updated to Trixie and 2.9.8.
I really like the update you did to the look and button layout of Lathe macros. Thanks.
Pressing the hardware "go" button was running the lathe macro even when the MDI window or Auto (G-code) window were at the front.
This might not happen with Gmoccapy.
It was previously prevented by code in the GUI telling the Glade panel when it had focus, but the signalling method used is't available in GTK3.
Also, the problem went away after a restart, so I haven't been able to work out the cause.
I may be the only one using the macros with Touchy...
The following user(s) said Thank You: RotarySMP
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 months 4 weeks ago #345084
by RotarySMP
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.
Thanks Andy, I'll test that tomorrow to see if it happens in other screens.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
6 months 4 weeks ago #345090
by andypugh
Replied by andypugh on topic Schaublin 125-CNC retrofit.
Unhelpfully, it works for me...hal:turret:1: character unknown ' '
Code:
andypugh@Boookworm:~/linuxcnc-dev$ halcompile --install ../turret.comp
Compiling realtime turret.c
Linking turret.so
cp turret.so /home/andypugh/linuxcnc-dev/rtlib/
The following user(s) said Thank You: RotarySMP
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 months 4 weeks ago - 6 months 4 weeks ago #345093
by RotarySMP
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.
Thanks Andy, It compiles for me as well. I get the error when I have linuxnc load it.
Last edit: 6 months 4 weeks ago by RotarySMP.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
6 months 4 weeks ago #345101
by andypugh
I have taken the liberty of changing the function name to "_" so that the addf line is "addf turret.0" not "addf turret.0.turret"
Replied by andypugh on topic Schaublin 125-CNC retrofit.
That's working for me too:Thanks Andy, It compiles for me as well. I get the error when I have linuxnc load it.
Code:
andypugh@Boookworm:~/linuxcnc-dev$ halrun
halcmd: show pin
Component Pins:
Owner Type Dir Value Name
halcmd: loadrt turret
Note: Using POSIX realtime
halcmd: show pin
Component Pins:
Owner Type Dir Value Name
4 bit OUT FALSE turret.0.busy
4 bit OUT FALSE turret.0.done
4 bit OUT FALSE turret.0.error
4 s32 OUT 0 turret.0.position
4 bit IN FALSE turret.0.sensor0
4 bit IN FALSE turret.0.sensor1
4 bit IN FALSE turret.0.sensor2
4 bit IN FALSE turret.0.sensor3
4 bit IN FALSE turret.0.start
4 s32 IN 0 turret.0.target
4 s32 OUT 0 turret.0.time
4 bit OUT FALSE turret.0.valve
I have taken the liberty of changing the function name to "_" so that the addf line is "addf turret.0" not "addf turret.0.turret"
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 months 4 weeks ago - 6 months 4 weeks ago #345105
by RotarySMP
Replied by RotarySMP on topic Schaublin 125-CNC retrofit.
Thanks a lot for trying that Andy. I'll compile your correction this evening. I will probably have to put the 2.8.2 SSD back in the machine, and I can also see if this works there without error.
If I fall back on somehing like 2.8.4 buster ISO, do I loose your latest macros layout?
If I fall back on somehing like 2.8.4 buster ISO, do I loose your latest macros layout?
Last edit: 6 months 4 weeks ago by RotarySMP.
Moderators: piasdom
Time to create page: 0.372 seconds