Can't get lathe to Feed

More
23 Aug 2021 13:52 #218507 by andypugh
Replied by andypugh on topic Can't get lathe to Feed
You might need to update.

But, first, comment-out the line, start linuxcnc, then open a terminal and
halcmd show pin *encoder*
to see if the pin exists.

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

More
15 Sep 2021 17:30 - 15 Sep 2021 18:35 #220720 by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
Well, I've done that , but I'm not sure what I'm looking for. A ton of stuff comes up for 'encoder.0'.
If I'm looking for 'missing-teeth' , then its not there.  Did earlier versions of 2.9 not have this Pin ?
Last edit: 15 Sep 2021 18:35 by rider-83.

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

More
16 Sep 2021 12:41 #220792 by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
I've updated from pre0.3825 to .4616
No the whole thing no longer works at all :(

All sorts of errors relating gmoccapy

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

More
16 Sep 2021 13:51 #220795 by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
Can anyone help ??


Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.0-pre0-4616-g4cca8d4a2
Machine configuration directory is '/home/boxford/linuxcnc/configs/lathe'
Machine configuration file is 'lathe.ini'
INIFILE=/home/boxford/linuxcnc/configs/lathe/lathe.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=
DISPLAY=gmoccapy
COORDINATES=X Z
KINEMATICS=trivkins coordinates=XZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Found file(REL): ./lathe.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: gmoccapy
task: main loop took 0.123324 seconds
Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gladevcp/iconview.py", line 188, in __init__
pixbuf = Gtk.IconTheme.get_default().load_icon("gtk-quit", 48, 0)
gi.repository.GLib.GError: gtk-icon-theme-error-quark: Icon 'gtk-quit' not present in theme Tango (0)

'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'on_btn_jump_to'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
Icon from stock
0 = /usr/bin/gmoccapy
1 = -ini
2 = /home/boxford/linuxcnc/configs/lathe/lathe.ini
Entry = trivkins
Entry = coordinates=XZ
found the following coordinates xz

**** GMOCCAPY GETINIINFO ****
Number of joints = 2
2 COORDINATES found = xz
joint 0 = axis x
joint 1 = axis z
{0: 'x', 1: 'z'}

**** GMOCCAPY GETINIINFO ****

[KINS] KINESTYPE is trivkins
**** GMOCCAPY GETINIINFO ****
No MIN_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 0.1 degree / min
**** GMOCCAPY GETINIINFO ****
No DEFAULT_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 360 degree / min
**** GMOCCAPY GETINIINFO ****
No MAX_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file
Using default value of 3600 degree / min
**** GMOCCAPY GETINIINFO ****
No MAX_RAPID_OVERRIDE entry found in [DISPLAY] of INI file
Default settings 100 % applied!
**** GMOCCAPY GETINIINFO ****
Preference file path: /home/boxford/linuxcnc/configs/lathe/lathe.pref
**** GMOCCAPY GETINIINFO ****
No DEFAULT_SPINDLE_SPEED entry found in [DISPLAY] of INI file
**** GMOCCAPY INFO ****
**** no valid probe config in INI File ****
**** disabled tool measurement ****
**** GMOCCAPY INFO ****
**** Entering make_DRO
axis_list =
**** GMOCCAPY INFO ****
**** Entering make ref axis button
Filepath = /usr/share/gmoccapy/images/ref_all.png
get button with image
Filepath = /usr/share/gmoccapy/images/ref_x.png
get button with image
Filepath = /usr/share/gmoccapy/images/ref_z.png
get button with image
Filepath = /usr/share/gmoccapy/images/unhome.png
get button with image
get button with image
**** GMOCCAPY INFO ****
**** Entering make touch button
get button with image
get button with image
get button with image
**** GMOCCAPY INFO ****
**** Entering make jog increments
**** GMOCCAPY INFO ****
**** Entering make jog button
**** GMOCCAPY INFO ****
**** Entering make macro button
found 0 Macros
get button with image
get button with image
get button with image
**** GMOCCAPY INFO ****
**** we have a lathe here
False
**** GMOCCAPY INFO ****
**** arrange DRO
3
**** GMOCCAPY INFO ****
**** Place in table
**** GMOCCAPY INFO ****
**** get DRO order
**** GMOCCAPY INFO ****
**** arrange JOG button
**** GMOCCAPY INFO ****
**** Invalid embedded tab configuration ****
**** No tabs will be added! ****
**** GMOCCAPY INFO ****
**** no audio available! ****
**** PYGST libray not installed? ****
**** is python-gstX.XX installed? ****
**** GMOCCAPY INFO ****
**** Entering init gremlin ****
Kinematics type changed
_set_enable_tooltips = True
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'store'
'IconFileSelection' object has no attribute 'iconView'
'IconFileSelection' object has no attribute 'on_btn_jump_to'
Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
File "/usr/bin/gmoccapy", line 5299, in <module>
app = gmoccapy(sys.argv)
File "/usr/bin/gmoccapy", line 328, in __init__
self._init_IconFileSelection()
File "/usr/bin/gmoccapy", line 2101, in _init_IconFileSelection
self.widgets.IconFileSelection1.show_filelabel(False)
File "/usr/lib/python3/dist-packages/gladevcp/iconview.py", line 404, in show_filelabel
self.file_label.hide()
AttributeError: 'IconFileSelection' object has no attribute 'file_label'

Jog Pin Changed
x+
Jog Button released = x+
Jog Pin Changed
x-
Jog Button released = x-
Jog Pin Changed
z+
Jog Button released = z+
Jog Pin Changed
z-
Jog Button released = z-
on tool chnage
_kill_dynamic_childs
Shutting down and cleaning up LinuxCNC...
task: 2667 cycles, min=0.000015, max=0.123324, avg=0.010126, 1 latency excursions (> 10x expected cycle time of 0.010000s)
config string '0 out'
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Waiting for component 'inihal' to become ready...

(gmoccapy:760): Gtk-WARNING **: 14:48:04.765: Invalid icon size 48


(gmoccapy:760): Gtk-WARNING **: 14:48:04.779: Invalid icon size 48

/usr/bin/gmoccapy:717: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
lbl = Gtk.Label("")
/usr/bin/gmoccapy:735: DeprecationWarning: Gtk.Image.set_from_stock is deprecated
image.set_from_stock(stock, 48)
/usr/bin/gmoccapy:896: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.ToggleButton(_(" edit\noffsets"))
/usr/bin/gmoccapy:900: DeprecationWarning: Gtk.Widget.modify_bg is deprecated
btn.modify_bg(Gtk.StateFlags.ACTIVE, Gdk.color_parse("#FFFF00"))
/usr/bin/gmoccapy:944: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(_("zero\n G92"))
/usr/bin/gmoccapy:959: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(_(" set\nselected"))
/usr/bin/gmoccapy:1168: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "label" or use a class specific constructor. See: wiki.gnome.org/PyGObject/InitializerDeprecations
btn = Gtk.Button(name.upper())
/usr/bin/gmoccapy:1374: DeprecationWarning: Gtk.Table.resize is deprecated
self.widgets.tbl_jog_btn_axes.resize(3,3)

(gmoccapy:760): Gtk-WARNING **: 14:48:07.020: Invalid icon size 48


(gmoccapy:760): Gtk-WARNING **: 14:48:07.021: Invalid icon size 48

727
757
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime



Info report created by linuxcnc_info:
The file: /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
pastebin.com
in order to provide information about the linuxcnc
system and configuration.

Date: Thu 16 Sep 14:48:58 BST 2021
UTC Date: Thu 16 Sep 13:48:58 UTC 2021
this program: /usr/bin/linuxcnc_info
uptime: 14:48:58 up 2 min, 1 user, load average: 0.65, 0.57, 0.24
lsb_release -sa: Debian Debian GNU/Linux 10 (buster) 10 buster
which linuxcnc: /usr/bin/linuxcnc
pwd: /home/boxford/linuxcnc/configs/lathe
USER: boxford
LOGNAME: boxford
HOME: /home/boxford
EDITOR:
VISUAL:
LANGUAGE: en_GB:en
TERM: dumb
COLORTERM:
DISPLAY: :0.0
DESKTOP: lightdm-xsession
display size: 1024x768 pixels (270x203 millimeters)
PATH: /usr/bin:/home/boxford/linuxcnc/configs/lathe/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

uname items:
nodename -n: debian
kernel-name -s: Linux
kernel-vers -v: #1 SMP PREEMPT RT Debian 4.19.194-3 (2021-07-18)
machine -m: x86_64
processor -p: unknown
platform -i: unknown
oper system -o: GNU/Linux

/proc items:
cmdline: BOOT_IMAGE=/boot/vmlinuz-4.19.0-17-rt-amd64 root=UUID=b6a2426d-e685-4d59-bacc-3bb3bddf73f7 ro initrd=/install/gtk/initrd.gz quiet
model name: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz
cores: 2
cpu MHz: 2018.098
parport: 0000-0000 : parport0 0000-0000 : parport0 0000-0000 : parport1 0000-0000 : parport1
serial: 0000-0000 : serial 0000-0000 : serial

Versions:
gcc: gcc (Debian 8.3.0-6) 8.3.0
python: Python 3.7.3
git: not_in_PATH
git commit: NA
tcl: 8.6
tk: 8.6
glade: glade 3.22.1

linuxcnc_var all:

LINUXCNCVERSION: 2.9.0-pre0-4616-g4cca8d4a2
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
REALTIME: /etc/init.d/realtime
RTS: uspace
HALLIB_DIR: /usr/share/linuxcnc/hallib
PYTHON: /usr/bin/python3.7

dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===================-============================-============-=====================================================================
un linuxcnc <none> <none> (no description available)
un linuxcnc-dev <none> <none> (no description available)
un linuxcnc-doc <none> <none> (no description available)
ii linuxcnc-doc-cn 1:2.9.0~pre0.4616.g4cca8d4a2 all motion controller for CNC machines and robots (Chinese
ii linuxcnc-doc-en 1:2.9.0~pre0.4616.g4cca8d4a2 all motion controller for CNC machines and robots (English documentation)
ii linuxcnc-doc-es 1:2.9.0~pre0.4616.g4cca8d4a2 all controlador de movimiento para máquinas CNC y robots (Español).
ii linuxcnc-doc-fr 1:2.9.0~pre0.4616.g4cca8d4a2 all motion controller for CNC machines and robots (French documentation)
un linuxcnc-sim <none> <none> (no description available)
un linuxcnc-sim-dev <none> <none> (no description available)
ii linuxcnc-uspace 1:2.9.0~pre0.4616.g4cca8d4a2 amd64 motion controller for CNC machines and robots
ii linuxcnc-uspace-dev 1:2.9.0~pre0.4616.g4cca8d4a2 amd64 PC based motion controller for real-time Linux

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

More
19 Sep 2021 13:56 #221087 by rider-83
Replied by rider-83 on topic Can't get lathe to Feed
Andy,
I don't know if you have seen my other thread, but since my latest update in order to obtain 'missing-teeth' I've run into allsorts of frustrating issues with Gmoccapy.
However, that said, I've managed to work out a way to get the system up and test the 'missing-teeth' with a G71 call.
We no longer have the errors reporting missing pins etc, and I can run the CNC program.
The spindle starts but the tool sits there presumably waiting for its strobe signal to start screw cutting. Any ideas?

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

More
05 May 2022 06:41 - 05 May 2022 09:40 #242022 by virencq
Replied by virencq on topic Can't get lathe to Feed
I have weared situation. mine G95 working. But at 1200 spindle speed .3 mm/rev, 20 mm dia at 80 SMM. taking 3 minutes to complete 100 mm.
Theoritacly it should complete in 16.67 sec.
Please correct me if I am wrong
Last edit: 05 May 2022 09:40 by virencq.

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

More
05 May 2022 10:20 - 05 May 2022 14:54 #242029 by virencq
Replied by virencq on topic Can't get lathe to Feed
Mission accomplished in 3 hrs.
Last edit: 05 May 2022 14:54 by virencq.

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

More
05 May 2022 22:45 #242080 by andypugh
Replied by andypugh on topic Can't get lathe to Feed

I have weared situation. mine G95 working. But at 1200 spindle speed .3 mm/rev, 20 mm dia at 80 SMM. taking 3 minutes to complete 100 mm.
Theoritacly it should complete in 16.67 sec.
Please correct me if I am wrong

You are not wrong. 

So, perhaps your spindle encoder scale is wrong?

Of you open a halmeter and look at spindle.0.revs, then manually turn the spindle by 1 turn, does it increase by exactly 1.0? 

 
The following user(s) said Thank You: virencq

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

More
07 May 2022 11:09 #242227 by virencq
Replied by virencq on topic Can't get lathe to Feed
G95 working, feed and finish ok.
Threading not working as it should be. 

File Attachment:

File Name: spindle.hal
File Size:2 KB
Attachments:

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

More
07 May 2022 11:47 - 07 May 2022 14:34 #242229 by virencq
Replied by virencq on topic Can't get lathe to Feed
Andy Sir, as per your suggestions Hal-meter shows 1.05 for 1 complete revolution.
After changing encoder scale 100.000 to 100 now it shows 1 for 1 spindle turn manualy.
From my spindle.hal 

encoder.0.velocity throws fluctuated numbers in halshow. so I used spindle.0.speed-out-rps with spindle.0.speed-in.


that makes my feed mm/rev usable.
But when I run threading macro G76 with 2 mm pitch. threads are very fine.

 
Last edit: 07 May 2022 14:34 by virencq.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum