¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

PCB-GCODE Version 3.6.2.4 Vector Text Issues #mill


 

Hi All,

I have been using PCB-GCODE 3.6.2.4 with vector text on the milling layer I get some very strange effects.

Delving into the code I noticed that this version of PCB-GCODE the way arcs are drawn has changed. I assume this is to do with arcs on the tracking layers.

Unfortunately this has effected the way text is drawn.

The fix I was able to make was to revert the arcs drawing for vector text back to the old method but with small changes to fix an issue with the letter U

Change I made was to change the code in pcb-gcode.ulp from the directory ulps/pcb-code

The from the line 'case ST_ARC_END:' to the line break change the code to the following:
user_arc_end(rx1, ry1, rx2, ry2);
real cx = rx2;
real cy = ry2;
real end_x = rx1;
real end_y = ry1;
?
if (1 /* USE_IJ_RELATIVE */) {
cx = rx2 - rx1;
cy = ry2 - ry1;
}
?
rz(DEFAULT_Z_UP);
rxy(end_x, end_y);
fzr(z_down_or_radius, FEED_RATE_MILL_Z);
if (g_side == TOP || MIRROR_BOTTOM == YES) {
out(frrrr(CIRCLE_TOP, m_arc_begin_x, m_arc_begin_y, cx, cy));
}
else {
out(frrrr(CIRCLE_BOTTOM, m_arc_begin_x, m_arc_begin_y, cx, cy));
}
rz(DEFAULT_Z_UP);
rxy(m_arc_begin_x, m_arc_begin_y);
break;


Add the following to the end of your .pp file which is held in the directory profiles.
string CIRCLE_TOP? ? ?= ARC_CW + MOVE_XY + IJ_FORMAT + EOL;
string CIRCLE_BOTTOM? = ARC_CCW + MOVE_XY + IJ_FORMAT + EOL;

These changes fix the text engraving on the milling layer.

MPC
?