Advanced Search

Search Results (Searched for: )

  • thanks for the help
  • thanks for the help
26 Sep 2025 02:29
Replied by thanks for the help on topic Tool height setter M6 subroutine question

Tool height setter M6 subroutine question

Category: General LinuxCNC Questions

Thank you for the response, Based on your idea of the #5400 I tried this code, but no luck: here is the current status of my toolchange.ngc
O<toolchange> SUB

(MSG, Toolchange subroutine called)
(MSG, Tool number param #1 = #1)
#2 = #5400
#<tool_num> = #2
;#<setter_z> = -3.0
#<safe_z> = -.5 ; safe Z height above tool setter
#<probe_z> = -4.0 ; how far down to probe
#<setter_z> = -3.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>

G43 H#<tool_num>

; Done
O<toolchange> ENDSUB
M2

I feel my problem lies in the fact that my tool number is not getting passed to the tool.tbl When I enter (debug #5400) in MDI get 0.0000 after entering in a T1 M6 command in MDI, I assume that I would see a 1 for T1? My tool height seem to be registering. When I enter (debug #5063) the z value from the tool setter shows up as the #5063. I am still getting the Pvalue out of range with G10 L1 error after the probe is tripped when the G38.2 part of my file runs.

I made this change to my hal.io:

loadusr -W hal_manualtoolchange
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-prepare iocontrol.0.tool-prepare => iocontrol.0.tool-prepared

Here are some parts of my ini file:

[RS274NGC]
REMAP = M6 modalgroup=6 ngc=toolchange
SUBROUTINE_PATH = /home/dave/linuxcnc/configs/by_interface.pico.univpwmv/subroutines/
#/home/dave/linuxcnc/configs/by_interface.pico.univpwmv/subroutines/
PARAMETER_FILE = linuxcnc.var
FEATURES = 12


TOOL_TABLE = tool.tbl

RETAIN_TOOL_NO = 1

TOOL_CHANGE = manual
  • PCW
  • PCW's Avatar
26 Sep 2025 00:55 - 26 Sep 2025 00:55

Going from Devian 10 to 12 has created problems

Category: General LinuxCNC Questions

I should note that the the pinirq script runs as expected on the LinuxCNC/Debian 12 image
  • RikoBR
  • RikoBR
25 Sep 2025 22:47
Replied by RikoBR on topic Help with tandem axis Y

Help with tandem axis Y

Category: Basic Configuration

Thank you Tommy and Djdelorie, i appreciate your help so far, i had a few minutes and disconnected probe and assign individual pins and did not work but i did not have much time and I will be away form the shop probably till Tuesday (which sucks because i want to convert this machine so bad) but i like the idea of only using 2 pins this way ill end up opening one output. and ill get back here to report how ever i did not find the option of assigning multiple stepgens to one pin so i assume it will have to be done in .hal and .ini??!! ill include those once i try (if i get a chance ill sneak in the shop on Sunday (fiancé permitting lol)

thank you again for the help
  • kb58
  • kb58
25 Sep 2025 22:23 - 25 Sep 2025 23:27

(Solved) Initialization code for a rintelligent ECT60 fails when run on an ECR60

Category: Driver Boards

Files attached.

File Attachment:

File Name: 2axis-WireEDM.hal
File Size:3 KB
 

File Attachment:

File Name: 2axis-WireEDM.ini
File Size:3 KB

 

File Attachment:

File Name: baxedm_postgui.hal
File Size:8 KB
 

File Attachment:

File Name: ethercat-conf.xml
File Size:7 KB

 

File Attachment:

File Name: sudodmesgf...9-25.txt
File Size:55 KB
  • MaHa
  • MaHa
25 Sep 2025 21:37 - 26 Sep 2025 21:42
Flex Gui Jog after toolchange was created by MaHa

Flex Gui Jog after toolchange

Category: Flex GUI

Coming up with another problem:
When using toolchange with combobox toolselection and pushbutton, Toolchange gets completed.
Trying to jog with jog pushbutton afterwards, this error appears for any axis

Joint jog requested for undefined joint number=-1 (min=0,max=3)


Doing toolchchange Tn M6, jog works without problem
When a MDI command movement of any axis is done, afterwards jog is possible without error
Displaying 13321 - 13325 out of 13325 results.
Time to create page: 0.393 seconds
Powered by Kunena Forum