Carousel ATC Setup
+TODO
+ +' + + '' + + _("Hide Search Matches") + + "
" + ) + ); + }, + + /** + * helper function to hide the search marks again + */ + hideSearchWords: () => { + document + .querySelectorAll("#searchbox .highlight-link") + .forEach((el) => el.remove()); + document + .querySelectorAll("span.highlighted") + .forEach((el) => el.classList.remove("highlighted")); + localStorage.removeItem("sphinx_highlight_terms") + }, + + initEscapeListener: () => { + // only install a listener if it is really needed + if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) return; + + document.addEventListener("keydown", (event) => { + // bail for input elements + if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; + // bail with special keys + if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return; + if (DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS && (event.key === "Escape")) { + SphinxHighlight.hideSearchWords(); + event.preventDefault(); + } + }); + }, +}; + +_ready(SphinxHighlight.highlightSearchWords); +_ready(SphinxHighlight.initEscapeListener); diff --git a/atc_setup.html b/atc_setup.html new file mode 100644 index 00000000..9b629164 --- /dev/null +++ b/atc_setup.html @@ -0,0 +1,131 @@ + + + + + + +TODO
+ +It is possible to make a simple customisations to the user interface, like renaming a button, by overriding the main window provider in you custom_config.yml
and a simple python class that extends ProbeBasic
These changes can be achieved with the standard instal of Probe Basic, no need for a Development install. Though you may need to dig into the probe_basic.ui
file in Qt Designer to find the needed widget names (editvcp probe_basic
).
This Dev install method uses an installer script and will install QtPyVCP and Probe Basic into a virtual environment (venv) which is now a requirement for pip installations on systems running python version 3.11 which is what comes on Linux Debian 12 Bookworm. This has been tested to work on a clean install of debian 12 bookworm using the xfce4 option and nonfree firmware cdnetinst iso. Download and install the bookworm iso from the link below for your pc type, typically the amd64 on normal pc’s:
+https://www.debian.org/releases/bookworm/debian-installer/
+Important
+During Linux Bookworm installation, DO NOT set a root password when prompted, just press continue to move to the next section in the visual installer. Once installed, run all of your updating.
++++
+- +
Install linuxcnc from terminal using apt:
+++sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash +- +
Next restart your computer
- +
Ensure git is installed:
+++sudo apt install git +- +
Ensure zenity is installed:
+++sudo apt install zenity +- +
Create a directory and clone the repo to it. Either clone or download a zip file:
+++cd ~ +mkdir dev +cd dev +git clone https://github.com/Lcvette/qtpyvcp-bookworm-installer.git +cd qtpyvcp-bookworm-installer +./install_for_qtpyvcp.sh +
++You should now see a series of icons on your desktop, 3 probe basic mill instances consisting of an inch/metric/atc sim and 1 lathe sim instance. There should also be 2 qtpyvcp icons, one for mill and one for lathe. These icons must be used to enter QTdesigner for your develpment work. To test your edits in QTdesigner you must use the desktop launcher icons provided to start and run your instance of probe basic sim. This is required due to python3 requiring to be run in a VENV (virtual environment). Do not use the application drop down to run linuxcnc or you will not see your changes from your dev efforts. The changes will be saved in the dev folder files. When you have completed your edits and wish to create a .deb build file, you can follow the instructions under creating a .deb installation file in the probe basic instruction docs. (coming soon).
+
++To update QtPyVCP and Probe Basic, from terminal in the installer directory file, run the following script command:
+++./updater.sh +
++To uninstall QtPyVCP and Probe Basic, delete the /dev folder. Since this is a venv run in place install, it is removed once the directory is deleted.
+
++Files that must be executable:
++
+- +
install_for_qtpyvcp.sh
- +
sudo_helper.sh
- +
updater.sh
Probe Basic APT Installation Guide for use with Debian 12 Bookworm and LinuxCNC version 2.9 or Later
++++
+- +
Probe Basic is currently designed for 1920x1080 screen sizes only!
- +
Probe Basic Install by apt is for amd64 only currently!
- +
Probe Basic requires graphics hardware that supports OpenGL 3.2 and OpenGL Shading Language (GLSL) 1.50 or later
- +
Probe Basic is tested on xfce4, during install of Debian 12 ISO:
- +
DO NOT enter a Root password during installation, leave blank and skip this page.
During installation, this screen below will appear, be sure to uncheck gnome and check xfce as pictured below. No other changes on this page are needed.
+ +
++Download from: https://www.debian.org/download
+Select the Linux Debian 12 Bookworm Netinst CD ISO from the above link. You will need to make a bootable DVD or USB thumb drive depending on how you plan to install. The below software is extremely easy and works flawlessly with Linux Debian OS images:
+https://www.balena.io/etcher/?ref=etcher_update
+Once you have created your flash stick for LinuxCNC, proceed to install and boot the system. (Note: It is advised to have an ethernet cable internet connection during install). Select the graphical installation option. Follow the steps on screen to complete installation. When you are greeted by the Linux Desktop Selection Page, uncheck the GNOME option and check the XFCE4 option.
+
++After installation, run the following commands in the main terminal:
+++sudo apt update +sudo apt upgrade +
++If you have not already installed LinuxCNC from apt, use the following command:
+++sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash +Once you have installed LinuxCNC, open it and start the axis sim briefly and then shut it down to ensure the installation was successful.
+
++Run the following commands in the main terminal one at a time:
+++sudo apt install curl +echo 'deb [arch=amd64] https://repository.qtpyvcp.com/apt develop main' | sudo tee /etc/apt/sources.list.d/kcjengr.list +curl -sS https://repository.qtpyvcp.com/repo/kcjengr.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/kcjengr.gpg +gpg --keyserver keys.openpgp.org --recv-key 2DEC041F290DF85A +
++++sudo apt update +
++++sudo apt install python3-qtpyvcp +sudo apt install python3-probe-basic +You are now installed! You should be able to launch the Probe Basic sim from within the LinuxCNC applications dropdown menu.
+
++Updating of Probe Basic and QtPyVCP will occur when you run the normal “sudo apt update, sudo apt upgrade” commands. During updating, the Probe Basic sim configuration files will be overwritten. It is strongly recommended to create your machine configuration files with unique names to avoid having them overwritten during updates.
+
ProbeBasic is a QtPyVCP based user interface +for the LinuxCNC machine control.
+++Probe Basic uses some different methods to offer its feature-rich user experience, which requires customized files and settings inside the HAL and INI files to function properly. Below is a guide to help create a working machine configuration for Probe Basic. This guide assumes a basic installation with manual tool changes. A future document will be available for more complex configurations with ATC and Coolant Cannon functionality.
+
+++
+- +
Create a configuration for your machine using Pncconf or mesact/mesact2 from the LinuxCNC menu in the applications drop-down in the upper menu bar. In this example, we are using Pncconf.
- +
It is recommended to use the Axis GUI display for this initial build.
- +
Have your machine’s wiring schematic premade to make filling in the required information fast, easy, and accurate in Pncconf.
- +
After completing the Pncconf configuration builder and creating a new machine configuration saved in the LinuxCNC config directory, start LinuxCNC using your new config to verify there are no errors.
- +
Test the machine to verify the base functionality is correct (e.g., jogging, spindle function, axis motion).
- +
Once completed and found to function correctly, proceed to step 2.
+++
+- +
In the LinuxCNC config folder, locate your new config folder and the “probe_basic_machine_config_setup_files” folder.
- +
Open two folder windows on the desktop: the new Pncconf folder created for your machine and the probe_basic_machine_config_setup_files folder.
- +
Clean up the Pncconf folder by removing unneeded files (see images below for reference).
- +
Copy the required files from the probe_basic_machine_config_setup_files folder to the Pncconf config folder.
As built pncconfig folder
+ ++++Unneeded pncconfig files highlighted
+ ++++Cleaned up pncconfig folder
+ ++++Files to be Copied from probe_basic_machine_config_setup_files folder
+ ++++Files Copied to pncconfig folder
+ ++++
+++
+- +
Open the Pncconf “my_LinuxCNC_machine.ini” file side by side with the supplied “probe_basic_required_ini_items.ini” file in a text editor.
- +
Integrate the lines from “probe_basic_required_ini_items.ini” into your existing file: +- If a line is present in your machine file, use the Probe Basic settings for that line. +- If a line is not in your machine file, copy it to the appropriate section in “my_LinuxCNC_machine.ini”.
- +
Note that only ONE postgui HAL file can be called. Add any additional items to the existing probe_basic_postgui.hal file.
- +
Save the file and delete the “probe_basic_required_ini_items.ini” file from the folder.
Side by Side ini files for editing
+ ++++
+++
+ +- +
Add digital and analog IO to the HAL file by modifying the following line:
+++loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS +Add this to the end of the line:
+++num_dio=6 num_aio=3 +The finished edit should look like this:
+++loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS num_dio=6 num_aio=3 +++++
+ +- +
Remove the red highlighted manual tool change dialog section from the bottom of the hal file as shown in the image below. Probe basic uses its own built in dialog for manual tool changes which give the user better tool information and matches the ui visual theme more appropriately.
+++
+++
+- +
Under the CNC section of the drop-down applications menu, find your machine configuration and select it to launch.
- +
Check the box at the bottom of the launch window to create a desktop icon for easier starts.
- +
To set the Probe Basic icon: +- Right-click the desktop launcher and select “edit launcher” +- Click the current icon image, this will open the icon folder +- Find and select the icon named “probe_basic_mill”
You should now be ready to use Probe Basic with your machine configuration.
+
Probe basic requires the following parameters be created in the var file
+++ +Probe Basic’s devlop version is now using the var file in the configs folder for storing parameters used in subroutines and other functions throughout linuxcnc. These are callable the same as all other parameters which allows them to be used in remap subroutines. This will allow users a greater degree of flexibility in modifying and using features such as tool touch off during tool changes, programmable coolant, probing etc all while being able to make changes from the from within the probe basic user interfaces entry boxes. Once changes to the entries are made they are recorded to the var file and are available immediately after the changes are made. This allows users the ability to change vital settings to ensure their machines run optimally and reliably without major config modifications.
+The Probe Basic Sim Config Folder contains the sim.var file which has been updated with these now required parameters. please be sure to add them to your machine connfiguration for proper functionality.
+
Probe Basic has number of include probing routines.
+ +To begin probing you fist need to make sure you have connected motion.probe-input
in your HAL file.
Next add an entry in your Tool Table for the probe, including the tip diameter and length offset.
+Note
+TODO: Document best practice for measuring the probe tools length offset. +Post by Lcvette suggesting a good method to setup both a probe and tool setter. +https://forum.linuxcnc.org/qtpyvcp/49102-3d-probe-electric-tool-setter-together-in-pb#271349
+There are also a number of probing parameters that need to be populate as well. The help tab include pointers on some of these entries.
+This area allows you to select a Workpiece Coordinate Offsets (WCO) and if it is to be updated as a result of probing.
+Set the active Workpiece Coordinate Offset, which maybe updated.
+Update the selected WCO system (G54, G55, etc).
+Do not update a WCO, just display the results below.
+This should be set to match the probe entry in you tool table.
+How far the probe will travel in either X or Y before moving down a side.
+Fast feed rate, for first touch when probing.
+Slow feed rate for second touch when probing. If set to 0 (zero) a second touch will not be perform and the result from the fast probe is used.
+Maximum distance to travel in either X or Y before tripping out.
+Retract distance for X and Y probing after touch, this should be at least larger than any backlash in the axis.
+Maximum distance to travel in Z before tripping out.
+Retract distance for Z probing after touch, this should be at least larger than any backlash in the axis.
+Extra distance to move down a side (after probe diameter) before probing in X or Y.
+Distance between test points when probing for Edge Angle’s.
+This shows the results from the last probing run. There are reset button to clear the data if needed.
+The purple dot in each button shows the position at which your probe tip should be approximately placed before starting the probe run. +The Z height above the work piece should be no more than your “MAX Z DISTANCE” parameter.
+As most probes require a small deflection of the tip before tripping, PROBE CALIBRATION OFFSET is used to account for this and can be set using these calibration routines and an accurately measured standard gauge.
+Tip
+Calibration video from Lcvette https://youtu.be/Qr9L6dyXf2A
+Included here for offline reference, though a running PB instance may have more up to date help.
+ + + + + + + +Probe Basic .deb Installation Guide for use with Debian Bookworm and LinuxCNC version 2.9 or Later
++++
+- +
Probe Basic is currently designed for 1920x1080 screen sizes only!
- +
Probe Basic Install by apt is for amd64 only currently!
- +
Probe Basic requires graphics hardware that supports OpenGL 3.2 and OpenGL Shading Language (GLSL) 1.50 or later
- +
Probe Basic is tested on xfce4, during install of Debian 12 ISO:
- +
DO NOT enter a Root password during installation, leave blank and skip this page.
During installation, this screen below will appear, be sure to uncheck gnome and check xfce as pictured below. No other changes on this page are needed.
+ ++++
++Download from: https://www.debian.org/download
+Select the Linux Debian 12 Bookworm Netinst CD ISO from the above link. You will need to make a bootable DVD or USB thumb drive depending on how you plan to install. The software below is extremely easy and works flawlessly with Linux Debian OS images:
+https://www.balena.io/etcher/?ref=etcher_update
+We recommend using a 2-4GB USB drive for quicker flashing.
+
+++
+- +
Create your flash stick for LinuxCNC and proceed to install and boot the system. (Note: It is advised to have an ethernet cable internet connection during install).
- +
Select the graphical installation option.
- +
Follow the steps on screen to complete installation.
- +
When you reach the Linux Desktop Selection Page, uncheck the GNOME option and check the XFCE4 option.
- +
After installation, open the main terminal and run the following commands:
+++sudo apt update +sudo apt upgrade +
++Requirements:
++
+- +
Debian 12 Bookworm
- +
Python 3.11
- +
LinuxCNC 2.9 or higher
- +
xfce4 desktop environment
- +
OpenGL 1.50 or Later graphics support
- +
QtPyVCP
- +
hiyapyco
If you haven’t installed LinuxCNC, use the following command:
+++sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash +After installation, open LinuxCNC and start the axis sim briefly to ensure successful installation.
+Download the following files:
+https://repository.qtpyvcp.com/repo/probe-basic-dev/python3-probe-basic_0.5.4-116.dev_all.deb + +https://repository.qtpyvcp.com/repo/qtpyvcp-dev/python3-qtpyvcp_4.1.2-34.dev_all.deb + +https://repository.qtpyvcp.com/repo/hiyapyco/python3-hiyapyco_0.5.1-1_all.deb+
++Navigate to the download directory, right-click, and select “Open Terminal Here”. Run the following commands:
+++sudo apt install debhelper-compat dh-python python3-setuptools python3-yaml python3-pyqt5.qtmultimedia python3-pyqt5.qtquick qml-module-qtquick-controls libqt5multimedia5-plugins python3-dev python3-docopt python3-qtpy python3-pyudev python3-psutil python3-markupsafe python3-vtk9 python3-pyqtgraph python3-simpleeval python3-jinja2 python3-deepdiff python3-sqlalchemy qttools5-dev-tools python3-serial +++sudo dpkg -i python3-hiyapyco_0.5.1-1_all.deb +sudo dpkg -i python3-qtpyvcp_4.1.2-34.dev_all.deb+sudo dpkg -i python3-probe-basic_0.5.4-116.dev_all.deb+You should now be able to launch the Probe Basic sim from within the LinuxCNC applications dropdown menu.
+Note: When updating/installing the latest .deb files, the Probe Basic sim configuration files will be overwritten. It is strongly recommended to create your machine configuration files with unique names to avoid having them overwritten during updates.
+To build your own machine configuration, please follow the instructions in this document: +https://forum.linuxcnc.org/qtpyvcp/48401-configuration-file-conversion-doc-for-probe-basic-py3
+
++To uninstall, enter the following commands in the main terminal:
+++sudo dpkg -P python3-probe-basic +sudo dpkg -P python3-hiyapyco +sudo dpkg -P python3-qtpyvcp ++++
++Probe Basic now has STABLE and DEVELOP repositories from which users can select for apt updates. You can switch between repositories to test new and upcoming features, but must understand that the development repository will be a testing version. As such, it may be subject to bugs. If you select the develop branch, please be sure to report any bugs either on the forum or on git.
+
++
++
++
++Run the following commands in terminal to uninstall the current installation of Probe Basic:
+++sudo dpkg -P python3-probe-basic +sudo dpkg -P python3-qtpyvcp +
++Run the following commands in terminal to install Probe Basic and QtPyVCP:
+++sudo apt install python3-qtpyvcp +sudo apt install python3-probe-basic +
++Run apt update/upgrade by copying the following commands in the main terminal one line at a time. Select Y for yes if asked at any point during the update:
+++sudo apt update +sudo apt upgrade +
++The development versions will likely require edits, additions or updates to config files. These include but are not limited to the yaml, ini, hal, subroutine, python, and any other supporting configuration files. These changes may not always be fully documented as we test them and are making changes, so we urge users to be aware that the development version should be used in a testing environment only. Those wishing to retain stability in operational use should change to the STABLE version.
+
++For bug reporting, general assistance, or troubleshooting, visit the QtPyVCP section of the LinuxCNC forum:
+ +
Probe Basic APT Installation Guide for use with Debian 12 Bookworm and LinuxCNC version 2.9 or Later
++++
+- +
Probe Basic is currently designed for 1920x1080 screen sizes only!
- +
Probe Basic Install by apt is for amd64 only currently!
- +
Probe Basic requires graphics hardware that supports OpenGL 3.2 and OpenGL Shading Language (GLSL) 1.50 or later
- +
Probe Basic is tested on xfce4, during install of Debian 12 ISO:
- +
DO NOT enter a Root password during installation, leave blank and skip this page.
During installation, this screen below will appear, be sure to uncheck gnome and check xfce as pictured below. No other changes on this page are needed.
+ +
++Download from: https://www.debian.org/download
+Select the Linux Debian 12 Bookworm Netinst CD ISO from the above link. You will need to make a bootable DVD or USB thumb drive depending on how you plan to install. The below software is extremely easy and works flawlessly with Linux Debian OS images:
+https://www.balena.io/etcher/?ref=etcher_update
+Once you have created your flash stick for LinuxCNC, proceed to install and boot the system. (Note: It is advised to have an ethernet cable internet connection during install). Select the graphical installation option. Follow the steps on screen to complete installation. When you are greeted by the Linux Desktop Selection Page, uncheck the GNOME option and check the XFCE4 option.
+
++After installation, run the following commands in the main terminal:
+++sudo apt update +sudo apt upgrade +
++++sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash +Once you have installed LinuxCNC, open it and start the axis sim briefly, then shut it down to ensure the installation was successful.
+
++Run the following commands in the main terminal:
+++sudo apt install curl +echo 'deb [arch=amd64] https://repository.qtpyvcp.com/apt stable main' | sudo tee /etc/apt/sources.list.d/kcjengr.list +curl -sS https://repository.qtpyvcp.com/repo/kcjengr.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/kcjengr.gpg +gpg --keyserver keys.openpgp.org --recv-key 2DEC041F290DF85A +
++++sudo apt update +
++++sudo apt install python3-qtpyvcp +sudo apt install python3-probe-basic +Congratulations! You have now installed Probe Basic. You should be able to launch the Probe Basic sim from within the LinuxCNC applications dropdown menu.
+
++Updating of Probe Basic and QtPyVCP will occur when you run the normal “sudo apt update” and “sudo apt upgrade” commands. During updating, the Probe Basic sim configuration files will be overwritten. It is strongly recommended to create your machine configuration files with unique names to avoid having them overwritten during updates.
+
++We recently updated the tool touch off page and it is now located under a tab on the main probing tab. there are explanations and visual graphics for better understanding on the tool touch off setup and parameter functions. Be sure to review the updated information/explanation tabs. We also have eliminated the need to use G59.3 as a storing location for the probed coordinates used in the length offset calculation. Below is an image of the new toolsetter page for reference.
+ ++++
++++Important
+Tool touch off position (G30), X and Y should be centered on the fixed tool setter platter. Z should always be set to Z Home position Z0.0000
++++1- Setting the tool touch off position, jog the machine to the center point of the tool setter platter and indicate it in or probe it with the touch probe to find exact center point. +2- Next, retract the z axis to the home position Z0.0000 +3- Press the “SET TOOL TOUCH OFF POS” button, this will capture and store the current locating for probing tools from the touch off routine.
+Spindle Zero is the length/distance from the empty spindle nose at the Z home Position Z0.0000 to the top of the tool setter (at the trip point)
+the value for
+Spindle Zero
can be measured by probing the top of the setter using the spindle nose itself to find the distance (spindle empty spindle no holder loaded)
++1- To measure a tool, Load the tool in the spindle using the tool page in the probe basic interface +2- Press the “TOUCH OFF CURRENT TOOL” button, this will initiate the tool touch off routine and move the machine to the tool touch off position and probe the tool length to capture and store the current length of the tool in the tool table.
+ ++++
TODO:
+ +