Advanced Search

Search Results (Searched for: )

  • Doc_emmet
  • Doc_emmet
17 May 2025 16:20
Replied by Doc_emmet on topic Install Probe Basic

Install Probe Basic

Category: QtPyVCP

I've installed everything.

Also:
sudo apt update
sudo apt --fix-broken install
sudo apt install python3-qtpyvcp
sudo apt install python3-probe-basic

cd ~
mkdir dev
cd dev
git clone github.com/Lcvette/qtpyvcp-bookworm-installer.git
cd qtpyvcp-bookworm-installer
./install_for_qtpyvcp.sh
./updater.sh

And yet I still get this error:

Traceback (most recent call last):
File "/usr/bin/probe_basic", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/lib/python3/dist-packages/probe_basic/__init__.py", line 20, in main
qtpyvcp.run_vcp(opts, VCP_CONFIG_FILE)
File "/usr/lib/python3/dist-packages/qtpyvcp/__init__.py", line 26, in run_vcp
run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/qtpyvcp/app/__init__.py", line 129, in run
launch_application(opts, config)
File "/usr/lib/python3/dist-packages/qtpyvcp/app/launcher.py", line 78, in launch_application
loadWindows(config)
File "/usr/lib/python3/dist-packages/qtpyvcp/app/launcher.py", line 230, in loadWindows
window = _initialize_object_from_dict(window_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/qtpyvcp/app/launcher.py", line 210, in _initialize_object_from_dict
return obj(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/probe_basic/probe_basic.py", line 53, in __init__
self.load_user_tabs()
File "/usr/lib/python3/dist-packages/probe_basic/probe_basic.py", line 87, in load_user_tabs
user_tab_folders = os.listdir(user_tabs_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Error 2] File or directory not found: 'user_tabs/ # REQUIRED Setting for Probe Basic'


Where is the 'user_tabs/' folder supposed to be? I've moved it to:
linux/configs and, just to be on the safe side, to linux/configs/My_Machine
  • Aciera
  • Aciera's Avatar
17 May 2025 16:13 - 17 May 2025 16:14
Replied by Aciera on topic Python - find out if HAL pin exist

Python - find out if HAL pin exist

Category: General LinuxCNC Questions

Try this:
try:
    value = hal.get_value("halui.halui-mdi-is-running")
    exists = True
except Exception:
    exists = False
print(exists)

 
  • PCW
  • PCW's Avatar
17 May 2025 15:38

Two switches/sensors for tool length and 3d touching into motion-probe-in? Howto

Category: General LinuxCNC Questions

Something like:

loadrt or2
addf or2.0 servo-thread

net probe-wzl  <= hm2_7i76e.0.7i76.0.0.input-08-not => or2.0.in0
net probe-3d   <= hm2_7i76e.0.7i76.0.0.input-09-not => or2.0.in1
net probe-in     =>  motion.probe-input <= or2.0.out

Notes:

This assumes the "or2" is not already used

(if its already used, you need to add a new instance with the names or count stanza)

Also not sure of the individual 3d and wzl polarities
  • zz912
  • zz912's Avatar
17 May 2025 15:33
Python - find out if HAL pin exist was created by zz912

Python - find out if HAL pin exist

Category: General LinuxCNC Questions

Hello,

I need read HAL pin in Python. It is not problem for me:
        value = hal.get_value("halui.halui-mdi-is-running")
        print(value)

If the "HAL pin" exists, there is no problem:
The problem occurs when the "HAL pin" does not exist:
[Gmoccapy][ERROR]  Found an error!
The following information may be useful in troubleshooting:

Traceback (most recent call last):
  File "/home/zdenek/linuxcnc/linuxcnc-zz912/bin/gmoccapy", line 4220, in on_tbtn_flood_toggled
    value = hal.get_value("halui.halui-mdi-is-running")
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Can't set value: pin / param halui.halui-mdi-is-running not found
 (gmoccapy:62)

I would first need to find out if this "HAL pin" exists and then find out its value.
But I dont know How.

1)
Python HAL interface can check only component, not only "HAL pin".
www.linuxcnc.org/docs/html/config/python-hal-interface.html
 component_exists

    Does the specified component exist at this time.

Example

hal.component_exists("testpanel")

2)
Maybe I could use Python's "Try:"
But I don't know how. I would need to check in initialization if the pin exists and store it in a variable:
halui_cmd_exist = True
or
halui_cmd_exist = False
  • DonatasO
  • DonatasO
17 May 2025 15:17

G53 not ignoring tool length offset after a Python M6 remap

Category: Advanced Configuration

Thanks again!

Looking at the file you linked, I see ways to simplify some parts in my remap.

This is resolved now. Only the tool length sensor's side will remain scarred :D
  • Aciera
  • Aciera's Avatar
17 May 2025 15:10

G53 not ignoring tool length offset after a Python M6 remap

Category: Advanced Configuration

At least my understanding about emccanon.USE_TOOL_LENGTH_OFFSET() is that it's supposed to be the equivalent of G43, as it issues the same EMC_TRAJ_SET_OFFSET message. Apparently, it does not fully update the initial state.


note that 'G43' reads the tool-offset values from the tool table:
github.com/LinuxCNC/linuxcnc/blob/6c4303...erp_convert.cc#L6202

and calls emccanon.USE_TOOL_LENGTH_OFFSET() in line 6280:
  USE_TOOL_LENGTH_OFFSET(tool_offset);


BUT it also sets 'tool-offsets' in line 6299:
 settings->tool_offset = tool_offset;

So it seems that you will have to handle this in the remap.
  • Muftijaja
  • Muftijaja
17 May 2025 15:02

Two switches/sensors for tool length and 3d touching into motion-probe-in? Howto

Category: General LinuxCNC Questions

PCW, thanks a lot for the advice with the smaller resistor! I found one 2.2k with 1W in my boxes and used that today and voilá, it works as it should. Problem solved, I hope. (Don't know if I need noise reduction)Guys, I have no idea how to use sth like mux or mux_generic. I wouldn't even be able to use two inputs - but just out of curiosity , how would you do that in a HAL file if i would use an OR2:
 loadrt or2 count=1
net probe-in     <=  hm2_7i76e.0.7i76.0.0.input-08-not    
net probe-in     =>  motion.probe-input
and the second input hm2_7i76e.0.7i76.0.0.input-09 ? my programming scills are beginner level...
(Yes, I read the example in the LCNC HAL Examples to OR2 but I cannot convert that for my problem.)

Thanks and best regards!
Hanno

 
  • DonatasO
  • DonatasO
17 May 2025 14:53

G53 not ignoring tool length offset after a Python M6 remap

Category: Advanced Configuration

My guess would be that your change of tool-length is possibly not reflected in 'tool_offset.tran.z'.

You're right, it's not updated. Setting `self.tool_offset = pose` manually resolves the issue.

Am I missing some call to auto-update it, or does it have to be handled in the remap?
  • Roguish
  • Roguish's Avatar
17 May 2025 14:46
Replied by Roguish on topic QTDragon and DTG readout

QTDragon and DTG readout

Category: Qtvcp

thanks Chris.
I will try 'em both.
Buildbot2 has a new master deb yesterday.
looks like your changes are included...

* qtvcp -action tool button: add dro/dtg/large font controls
* qtvcp -gcode graphics: add dro on/off view signals
* qtvcp -qt5_graphics: add enable dro functions
* qtvcp -qt_action: fix dro view keyword, add DTG keyword
  • zz912
  • zz912's Avatar
17 May 2025 14:32
Replied by zz912 on topic Gmoccapy 3.5.0 - opinions needed

Gmoccapy 3.5.0 - opinions needed

Category: Gmoccapy

Hello Hans,

I tested 3.5.0
Is there any reason why "G-code properties" is also displayed in manual and mdi mode?
I think it's unnecessary, that "G-code properties" should be displayed in program mode. My opinion.


Wouldn't it be better to name "G-code properties" "Program properties"?
  • DonatasO
  • DonatasO
17 May 2025 14:31

G53 not ignoring tool length offset after a Python M6 remap

Category: Advanced Configuration

Thanks for the reply.

I can't use self.execute() as using INTERP_EXECUTE_FINISH is unavoidable in my procedure, and no MDI commands can be sent after it. I made it possible to switch between ATC and manual tool change (like drop tool, ask to insert a new one).

At least my understanding about emccanon.USE_TOOL_LENGTH_OFFSET() is that it's supposed to be the equivalent of G43, as it issues the same EMC_TRAJ_SET_OFFSET message. Apparently, it does not fully update the initial state.

Calling USE_TOOL_LENGTH_OFFSET() multiple times before moving does not resolve the problem.
  • Aciera
  • Aciera's Avatar
17 May 2025 13:44 - 17 May 2025 13:48

G53 not ignoring tool length offset after a Python M6 remap

Category: Advanced Configuration

Not sure but I think that 'emccanon.USE_TOOL_LENGTH_OFFSET(pose)'
might actually not be a good approach here.

 Note that 'G53' will actually use the 'tool_offset' values to calculate the target coordinates:

if(block->z_flag) {
            *pz = block->z_number - s->origin_offset_z - s->axis_offset_z - s->tool_offset.tran.z;
        } else {
            *pz = s->current_z;
        }
github.com/LinuxCNC/linuxcnc/blob/1b8867.../interp_find.cc#L197
My guess would be that your change of tool-length is possibly not reflected in 'tool_offset.tran.z'.

Generally I've become very cautious about using 'emccanon' commands to manipulate offset values  in remaps. I've had a similar issue setting work offsets this way.
I changed to using 'self.execute(..' instead (although that has its own pitfalls).

See the mentioned issue with work offsets:
forum.linuxcnc.org/20-g-code/48199-chang...-self-execute#264285
  • MarkoPolo
  • MarkoPolo
17 May 2025 13:12
Replied by MarkoPolo on topic Error in tool_offsetview.py

Error in tool_offsetview.py

Category: Qtvcp

I noticed that after starting it doesn't load the 'true' state
in radiobuttons .

I modified this logic a bit and now it works:
rabiobutton with "radiotrue/true/radiofalse/false'
checkbox with 'checktrue/checkfalse'

What do you think about this?
  • epineh
  • epineh
17 May 2025 13:05

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Hmm so I had checked the datasheet earlier, never actually looked at price and availability, I see what you mean.

The main idea was to save pins, they run out quickly on the tang nano. I guess the simplest solution is to step up to the spartan 6.
There is OctoQuad by DigitalChickenLabs for the pi pico that will do a similar thing for 8 encoders via I2C but as you say it would also require a new plugin.

Cheers.
Russell.
  • meister
  • meister
17 May 2025 12:47

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Hi Russell,
the LS7366 are no longer manufactured and you would have to write a new plugin. The ones you can still get are also quite expensive.

can't you just make a plug-in board (on the top) and route all the encoder pins to the top via pin headers?

Cheers, Olli
Displaying 15886 - 15900 out of 16345 results.
Time to create page: 0.350 seconds
Powered by Kunena Forum