Interaction between UCCNC and Plugin dll

This is where you talk about Plugins. How they are made and how they work, show examples.

Re: Interaction between UCCNC and Plugin dll

Postby A_Camera » Mon May 29, 2017 6:16 am

cnesan wrote:The variation of the surface of one side is 0.3 mm. +/- derived from the sum of variations in the thickness of the support.
When mounted on a basket I did, a basket variation is also added. The sum of the variations is enough to break my engraving cutter.


I don't know what you mean by "When mounted on a basket I did" but if you have a table with so large variation you should fix that table and level the machine properly and mechanically. Using auto leveller is not fixing the problem, just hiding it. If you can't level the table then you should fix a piece of waste material, i.e. MDF, surface that area so that within that are you have almost no variation. After that you can start making PCB without auto levelling.
A_Camera
 
Posts: 639
Joined: Tue Sep 20, 2016 11:37 am

Re: Interaction between UCCNC and Plugin dll

Postby dezsoe » Mon May 29, 2017 6:19 am

A_Camera wrote:When you are ready with your new machine, which I guess will be made of aluminium and will be stiffer, more rigid, you will no longer need auto levelling for PCB. Just surface an area and mill happily with perfect accuracy without auto levelling. Saving a lot of time.

Yes, that's why I wrote it's made of wood. It is terribly inaccurate, but I can make my PCBs with it. :) Yes, the new machine is made of aluminium.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Interaction between UCCNC and Plugin dll

Postby cnesan » Tue May 30, 2017 9:23 pm

Ok, I did not want to use a cutter initially for precaution. I'm on the first experience.

I have experienced several pogopin models and in fact those who end up with needles do not always make contact immediately.
Then I tried a pogopin with a bigger head about 2.5mm. and flat (below is formed by several contact points).

I used AutolevelerCA to generate the probe trajectories.
I have verified the returned values and starting from the Home XY location and doing Z axis Home, all subsequent values are the same as values obtained with a comparator.
I have the same height variations found with the key comparator.
Repeating the whole sequence, I get the same results.

As mentioned earlier, by measuring the double face copper base with the caliber, there are tens of variations as it moves.
In fact it seems that the thickness of the support changes.

I would like to put some photos but I do not know how to do it !!


Ok, developing the dll plugin for UCCNC and Macro is very cool. I am reading the plugininterface.dll functions documentation.
I understand when to use the plugin and when the macro.

I would like to ask you some questions about Macro and Plugin:
When you upload a nc file to the UCCNC, the list .nc where is it located?

I see that AutolevelerCA loads a .nc file, processes it and then transfers it to UCCNC.

I should resume it, replace G31 matches ..... by replacing it with a Macro and transfer new list nc to UCCNC.
cnesan
 
Posts: 16
Joined: Sat May 20, 2017 10:55 am

Re: Interaction between UCCNC and Plugin dll

Postby dezsoe » Wed May 31, 2017 10:54 am

Ok, I did not want to use a cutter initially for precaution.

Normally, I use broken cutters for testing. One of my hands is on the E-Stop button. :) (If you don't have E-Stop, then can use ESC key to stop or define hotkey for Reset.)

I would like to put some photos but I do not know how to do it !!

When you write your post, scroll down and look for "Upload attachment".

When you upload a nc file to the UCCNC, the list .nc where is it located?

As I see, AutolevelerCA saves code to UCCNC folder, file name is "AutoLevelerCA.ACA". You can process it, then save back or to another file. Then you can load it into UCCNC.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Interaction between UCCNC and Plugin dll

Postby cnesan » Sat Jun 03, 2017 4:13 am

Thank you for your suggestion.

I just finished a first version of the plugin that also generates the Macro.

The plugin, in input, is passed this information:
- Macro Name that replaces the G31 command of the nc list
- Condition to apply. A macro that implements the condition will be generated. Used in the previous point.
- AutolevelerCA.ACA File to Replace the G31 Command with the Macro Name of Step 1.

Conditions:
The plugin provides three operating conditions in case a G31 command fails:
1) The CNC machine is stopped.
2) You are asked if you want to repeat the G31 command.
3) The probing for n times defined in the plugin is executed and if there is a further failure it is required to continue or stop.
RE: The plugin generates the macro by entering the selected condition.

Output:
At generation, the plugin takes the AutolevelerCA.ACA file and replaces the G31 commands with the Macro name (Mxxxx) and saves it as AutolevelerCA2.ACA and then uploads it to the UCCNC.

RE: Until now, I've only implemented Stop and Ask.

P.S.:
- The photo is about the first attempt to produce a double side PCB.
- The plugin and macro activity is an exercise to better understand the manual "UCCNC Version 1.2022" and the operation of the UCCNC SW itself. So I will try to use everything to learn. Until now, everything has not gone well. I've had trouble with some exec and etc commands.

Really thanks to everyone
Attachments
IMG_20170530_225505m.jpg
cnesan
 
Posts: 16
Joined: Sat May 20, 2017 10:55 am

Previous

Return to Plugins

Who is online

Users browsing this forum: No registered users and 3 guests