Py3 - Probe Basic Config Conversion Doc Lcnc 2.9+

More
3 years 1 week ago - 3 years 1 week ago #283671 by nighteagle
Hello and thank you for the help,

warnings are cleared now by me - because some setting testing - i had double entries.
But this one problem:
Pin 'halui.program.is-idle' was already linked to signal 'pdnt.program.is-idle'

So have found the pendant in chinahandrad.hal - for an usb JOG i have installed.
Have to merge something - but how is the right way?

here the ini and hals:
 

File Attachment:

File Name: chinahandrad_hal.txt
File Size:9.74 KB

 

File Attachment:

File Name: basic7i97_hal.txt
File Size:11.77 KB

 

File Attachment:

File Name: basic7i97_ini.txt
File Size:7.26 KB
Last edit: 3 years 1 week ago by nighteagle.

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

More
3 years 1 week ago - 3 years 1 week ago #283674 by nighteagle
Here the linked signals in chinahandrad.hal
Code:
# program related signals net pdnt.program.is-idle whb.halui.program.is-idle halui.program.is-idle

So can i outcomment it - because it is in the other hal also?
Last edit: 3 years 1 week ago by nighteagle.

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

More
2 years 11 months ago #286536 by dpslwk
in probe_basic_postgui.hal try replacing
Code:
net prog-running not.0.in <= halui.program.is-idle net prog-paused halui.program.is-paused

with
Code:
net pdnt.program.is-idle => not.0.in net pdnt.program.is-paused => time.0.pause

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

More
2 years 10 months ago - 2 years 10 months ago #287437 by Unlogic
I think it might be a good idea to update the first post in this thread with a comment after the following the line mentioning that metric users need to change from G20 to G21.

[RS274NGC]
RS274NGC_STARTUP_CODE = F10 S300 G20 G17 G40 G49 G54 G64 P0.001 G80 G90 G91.1 G92.1 G94 G97 G98

It's mentioned in other threads here on the forum but it's easy to miss for rookies (like me) following this guide.
Last edit: 2 years 10 months ago by Unlogic.

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

More
2 years 10 months ago #287454 by Unlogic
I followed this guide today and came across the following error on startup:

2023-12-07 16:20:11,555 - qtpyvcp.app.launcher - CRITICAL - Unhandled exception in probe_basic line 8
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 228, in loadWindows
    window = _initialize_object_from_dict(window_dict)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/qtpyvcp/app/launcher.py", line 208, in _initialize_object_from_dict
    return obj(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/probe_basic/probe_basic.py", line 56, in __init__
    self.load_programmable_coolant_cannon_settings()
  File "/usr/lib/python3/dist-packages/probe_basic/probe_basic.py", line 93, in load_programmable_coolant_cannon_settings
    self.activate_programmable_coolant.setValue(int(INIFILE.find("COOLANT_CANNON", "ACTIVATE")) or 0)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'


I found no documentation about this error but after reading through the source code /usr/lib/python3/dist-packages/probe_basic/probe_basic.py in added the following lines to my INI file which solved the problem.

[COOLANT_CANNON]
ACTIVATE = 0
HORIZONTAL_SPINDLE_NOZZLE_DIST = 0
VERTICAL_SPINDLE_NOZZLE_DIST = 0
PC_ANGLE_OFFSET = 0


Though I'd mention this here in case anyone else runs into the same problem.
 
The following user(s) said Thank You: mra7768

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

More
2 years 10 months ago #287459 by dpslwk
apologies, a fix for that has just been pushed

anyone using the programable coolant cannon does need to add the new ini section and set there setting

however if not using the cannon the new ini section is not required
The following user(s) said Thank You: Unlogic

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

Moderators: KCJ, Lcvette
Time to create page: 0.435 seconds
Powered by Kunena Forum