Advanced Search

Search Results (Searched for: )

  • thanks for the help
  • thanks for the help
20 Sep 2025 23:49 - 20 Sep 2025 23:51
Tool height setter M6 subroutine question was created by thanks for the help

Tool height setter M6 subroutine question

Category: General LinuxCNC Questions

Hi, This is my first post to this forum.  I just finished a retrofit on a cnc router.  I am working on getting a tool height setter working.  It is a simple Normally closed switch.  So far I have it to where I can type in an M6 in the MDI bar and the machine will move to the specified position set in my toolchange.ngc file, the machine will run the G38.2 until I manually trip the switch, then I get an "Pvalue out of range with G10 L1", which leads me to believe at least my toolchange.ngc file is at least routed correctly. 

It is where I do a T1 M6 command or a T2 M6 command where things get a little funky...When I try to incorporate the T in that line either with or without the M6 or any tool number for that matter the "Begin executing next line" button gets greyed out.  When I hit the "Execute next line" nothing happens.   This seems behave as if linuxcnc sees the T as some kind of program it can't run.  I would like to be able to populate the tool.tbl with the appropriate G43 height off set for a given tool using the height setter.  Thank you taking your time reading this, here is the code I am trying...

O<toolchange> SUB

(MSG, Toolchange subroutine called)
(MSG, Tool number param #2 =  #2)

#<tool_num> = #2
#<safe_z> = -.5       ; safe Z height above tool setter
#<probe_z> = -3.0     ; how far down to probe
#<setter_z> = 0.0     ; Z height of the setter in machine coords

G49                    ; cancel length offset
G53 G90 G01 X1.0 Y0 F50. Z[#<safe_z>]    ; move above setter

; Begin probing
G38.2 Z[#<probe_z>] F1.0
(If probe failed, LinuxCNC will stop here)

#<measured_z> = #5063  ; captured machine Z from probe

(MSG, 5063)

; Compute tool length

(MSG, Compute tool length)

#<tool_length> = [#<measured_z> - #<setter_z>]

; Store to tool table
(--- Optional: print value to operator ---)
(MSG, Tool length = #<tool_length>

G10 L1 P#<tool_num> Z#<tool_length>

; Done
O<toolchange> ENDSUB
M2
  • MaHa
  • MaHa
20 Sep 2025 23:45
Replied by MaHa on topic FlexGui -Touch off

FlexGui -Touch off

Category: Other User Interfaces

I start linuxcnc from terminal, then select the ui to start. I just tested again. Running a program with subroutine or without.
after finish, use the jog buttons to move xyz position. Then touch off button shuts down linuxcnc with this error.
This happens only when jog to another position and trying to touch off,after a gcode was running. On a new started ui  is no problem
  • unknown
  • unknown
20 Sep 2025 23:32

Mesa hm2/hm2_7i96: error finishing read - Dell 3050 Realtek NIC r8168

Category: Installing LinuxCNC

sudo lspci -vv

Supplies the drivers currently loaded for each device.
  • PCW
  • PCW's Avatar
20 Sep 2025 23:26

Mesa hm2/hm2_7i96: error finishing read - Dell 3050 Realtek NIC r8168

Category: Installing LinuxCNC

You can try this script:

 

File Attachment:

File Name: edrivers_2...9-20.txt
File Size:0 KB


first

chmod +x edrivers.txt

then

./edrivers.txt

 
  • upplib
  • upplib
20 Sep 2025 23:07

Mesa hm2/hm2_7i96: error finishing read - Dell 3050 Realtek NIC r8168

Category: Installing LinuxCNC

Thanks. I think the install of dkms pkg exited with an error code. I added a line in the dkms.conf file to blacklist r8169.

Will try to re-install the whole thing again. What is the cmd to check what driver is installed. Is used lspci and ethtool. Is there a device manager like windows to check the installed driver?
Thanks
  • unknown
  • unknown
20 Sep 2025 22:15
Replied by unknown on topic Update LinuxCNC 2.9.5 on debian 13

Update LinuxCNC 2.9.5 on debian 13

Category: Installing LinuxCNC

One thing I would check is the kernel command line options, did your previous install have any isolated cores ?
Unless the grub config files have not been modified manual editing is required for any extra options.
If the above is not the issue the Debian supplied kernel may require an in depth look at the config.

Or I maybe just barking up the wrong tree and be completely wrong, my apologies if that is the case.
  • PCW
  • PCW's Avatar
20 Sep 2025 21:29
Replied by PCW on topic Update LinuxCNC 2.9.5 on debian 13

Update LinuxCNC 2.9.5 on debian 13

Category: Installing LinuxCNC

Looks like the latency is worse than Debian 12 (if Debian 12 was working)

What does:

sudo chrt 99 ping -i .001 -c 60000 -q [card_ip_address]

report ?

Where [card_ip_address] is the ip address of the 7I76E

(the command will run for 1 minute and then print statistics)
  • Hakan
  • Hakan
20 Sep 2025 21:26
Replied by Hakan on topic Sync Problem LinuxCNC + EL8EC400F

Sync Problem LinuxCNC + EL8EC400F

Category: EtherCAT

Can you test with a negative value for refClockSyncCycles, like refClockSyncCycles="-10"
  • JT
  • JT's Avatar
20 Sep 2025 21:14
Replied by JT on topic FlexGui -Touch off

FlexGui -Touch off

Category: Other User Interfaces

It seems i am attracting 'touch off' troubles. Still working on my UI. After run from terminal,homing,loading a g-code file and then press touch off button (touchoff_selected_pb) , linuxcnc shuts down with an error. At least there is some info printed in the terminal. This is from the flex_examples axis:

Warning: Spoiler!



 

By run from terminal do you mean you launched flexgui from a terminal or linuxcnc?

FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/miller/linuxcnc/configs/flex_examples/touchoff.ui'

That is an installed file not one that is in the configs directory so it makes me think your not running flex from linuxcnc.

JT
  • anli
  • anli's Avatar
20 Sep 2025 20:47
Replied by anli on topic Update LinuxCNC 2.9.5 on debian 13

Update LinuxCNC 2.9.5 on debian 13

Category: Installing LinuxCNC

Yes, I used that thread to do the upgrade. I reinstalled linuxcnc once again, which seems to have fixed the first issue, but now I run into the next one, please see the attachment.
  • PCW
  • PCW's Avatar
20 Sep 2025 20:33

Mesa hm2/hm2_7i96: error finishing read - Dell 3050 Realtek NIC r8168

Category: Installing LinuxCNC

r8169 is the name of the standard (and bad) in-kernel driver

It appears your r8168- dkms driver install failed somehow.

 
  • juergen-home
  • juergen-home
20 Sep 2025 19:58
Replied by juergen-home on topic mux16 is not working for me

mux16 is not working for me

Category: HAL

Thank you for your fast reply  Now it's working.

setp mux_encoder.in00 0        # Increment
...
setp mux_encoder.in12 12    # Jog

net mux-set-increment halui.axis.x.increment mux_encoder.out-f  <-- and I've forgotten the -f .
 
  • Hakan
  • Hakan
20 Sep 2025 19:41
Replied by Hakan on topic mux16 is not working for me

mux16 is not working for me

Category: HAL

Try in00, in01 and so on.
  • juergen-home
  • juergen-home
20 Sep 2025 19:23
mux16 is not working for me was created by juergen-home

mux16 is not working for me

Category: HAL

I'm struggling with mux16, I wanted to implement an decoder for a gamepad.
I although I changed this example code for easy reading and running.

If I use mux8 it is running, if I use mux16 it's not and give me the error: "./mux16.hal:11: parameter or pin 'mux_encoder.in0' not found" . Something there I missed?

mux8
# -----
# selection of incremental values
# -----

loadrt mux8 names=mux_encoder # for  incremental steps
addf mux_encoder servo-thread # add these to the servo-thread so it can be used

net demo_input joint.0.homed

# Set the incremental step values for the mux4 component
setp mux_encoder.in0 0        # Increment
setp mux_encoder.in1 1        # Increment
setp mux_encoder.in2 2        # Increment 
setp mux_encoder.in3 3        # Increment
setp mux_encoder.in4 4        # Increment 
setp mux_encoder.in5 5        # Increment 
setp mux_encoder.in6 6        # Jog
setp mux_encoder.in7 7        # Jog
#setp mux_encoder.in8 8        # Jog
#setp mux_encoder.in9 9        # Jog
#setp mux_encoder.in10 10    # Jog
#setp mux_encoder.in11 11    # Jog
#setp mux_encoder.in12 12    # Jog

net mux-set-increment halui.axis.x.increment mux_encoder.out

# connect the buttons with the multiplexer
net demo_input mux_encoder.sel0
net demo_input mux_encoder.sel1
net demo_input mux_encoder.sel2
#net demo_input mux_encoder.sel3
# -----

mux16
# -----
# selection of incremental values
# -----

loadrt mux16 names=mux_encoder # for  incremental steps
addf mux_encoder servo-thread # add these to the servo-thread so it can be used

net demo_input joint.0.homed

# Set the incremental step values for the mux4 component
setp mux_encoder.in0 0        # Increment
setp mux_encoder.in1 1        # Increment
setp mux_encoder.in2 2        # Increment 
setp mux_encoder.in3 3        # Increment
setp mux_encoder.in4 4        # Increment 
setp mux_encoder.in5 5        # Increment 
setp mux_encoder.in6 6        # Jog
setp mux_encoder.in7 7        # Jog
setp mux_encoder.in8 8        # Jog
setp mux_encoder.in9 9        # Jog
setp mux_encoder.in10 10    # Jog
setp mux_encoder.in11 11    # Jog
setp mux_encoder.in12 12    # Jog

net mux-set-increment halui.axis.x.increment mux_encoder.out

# connect the buttons with the multiplexer
net demo_input mux_encoder.sel0
net demo_input mux_encoder.sel1
net demo_input mux_encoder.sel2
net demo_input mux_encoder.sel3
# -----

error log
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.4
Machine configuration directory is '/home/cnc/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis_mm.ini'
INIFILE=/home/cnc/linuxcnc/configs/sim.axis/axis_mm.ini
VERSION=1.1
PARAMETER_FILE=sim_mm.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(lib): /usr/share/linuxcnc/hallib/core_sim.hal
Found file(lib): /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal
Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Found file(REL): ./mux16.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
Unexpected realtime delay on task 0 with period 1000000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
./mux16.hal:11: parameter or pin 'mux_encoder.in0' not found
103825
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

 
  • michaeln
  • michaeln
Displaying 2341 - 2355 out of 22554 results.
Time to create page: 0.861 seconds
Powered by Kunena Forum