The Add EOB function appends exactly one End of Block character ; at the end of each line of the program, without affecting comments or the code structure.
This helps bring the program to a uniform format required by certain CNC controllers and postprocessors.
( ... ) (possibly with ; at the edges) — such lines do not receive a ; character.; from the code,
then adds exactly one ; and returns the comment back in place.;: multiple semicolons are reduced to one.trimEnd()).;).(...) and temporarily remove them from the code.; at the end of the code, then add one ; if the line contains code.; Before:
N10 G00 X0 Y0 (Rapid move)
N20 G01 X10 Y10 F100;;
(Technological comment);
N30 G03 X20 Y0 I5 J0
; After:
N10 G00 X0 Y0; (Rapid move)
N20 G01 X10 Y10 F100; (Technological comment)
(Technological comment)
N30 G03 X20 Y0 I5 J0;
; is required as EOB.