Probe Basic Config Conversion Doc

More
20 Jan 2022 23:06 - 27 Jan 2022 01:32 #232570 by Lcvette
I am making this doc and adding it as a sticky to help those converting a Pncconf config over to a working Probe Basic Config in step by step follow along, hopefully it helps those who are new!

Step 1:  Successfully install probe basic and be able to open the probe basic simulation without errors.  This guide is for the stable version of Linuxcnc 2.8 and Debian 10 Buster.  Installation instructions can be found here:

kcjengr.github.io/probe_basic/quick_start.html

Step 2:  Create a configuration for your machine using Pncconf from the linuxcnc menu in the applications drop down in the upper menu bar.  It is recommended to use the Axis gui display for this initial build.  You should have your machine's wiring schematic premade to make filling in the required information fast, easy and accurate in Pncconf.

After you have completed the Pncconf configuration builder and have created a new machine configuration that has been saved in the linuxcnc config directory, it is advised that you start linuxcnc using your new config to verify there are no errors.  It is also advisable to test the machine to verify the base functionality is correct, for example, jogging, spindle function, axis motion is as expected and the commanded distance matches the actual distance moved, and any other sort any gremlins prior to making the switch to probe basic.  This will ensure when you transition it goes smoothly.  Once completed and found to function correctly, you can proceed to step 3.

Step 3:  In the Linuxcnc config folder, there should now be a config folder from the output of Pncconf, there should also be the probe_basic config folder.  Both will be used for copying required files over to the new machine config folder.  Open two windows in the file tree, the new Pncconf folder and the probe_basic config folder. Copy the highlighted files shown below from the probe basic config folder to the Pncconf config folder.

 
File Attachment:



Step 4:  In the probe_basic config folder, open the hallib folder.   Copy over the two highlighted files shown in the image below to the new Pncconfig folder.

 
File Attachment:


Your new Pncconf folder should now look like this and have the required files in it:

 
File Attachment:


Step 5:  Editing the ini and hal files for probe basic requirements.  In your text editor, open the new machine config ini file. In the example it is named my_linuxCNC_machine.ini  Save the file attached below and open in a second text editor:

 

File Attachment:

File Name: pncconf_to...nges.ini
File Size:2 KB


This file contains the required ini entries that are missing or different from the Pncconf ini file for running probe basic.  Copy each section or edit the appropriate lines that are there but are different to the appropriate section on the Pncconf ini.  note that there are sections that require editing for paths specific to your machine computer name and your machine configuration folder name.  Be sure to exchange the placeholder text with your unique path information so the files can be found at startup. Once complete save the ini file.  

NOTE***  only copy the ATC Remap section if you have a machine ready to be configured for the atc, otherwise leave it off the new config ini file.

Step 6:  Editing the hal file.   In the text editor, open your Pncconf hal file, show in the example as my_linuxCNC_machine.hal.  Probe basic uses dio and aio for its various subroutines and macros, the count of these needs to be added to the hal file by editing/adding to the line as shown in the below image:

 
File Attachment:


As long as the information you entered in the Pncconf config builder is correct, this should now give you a working probe basic installation that will run your machine.

if you find any issues, please report them so we can make corrections!

Thanks all!

Chris 
Attachments:
Last edit: 27 Jan 2022 01:32 by Lcvette.
The following user(s) said Thank You: TurBoss, tommylight, Masiwood123, spumco, RobertS

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

More
22 Jan 2022 23:14 #232842 by tommylight
Very nice, thank you.
Now if only i could finish my mini mill ... :)
The following user(s) said Thank You: Lcvette

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

Moderators: KCJLcvette
Time to create page: 0.109 seconds
Powered by Kunena Forum