Claudiosp wrote: ↑Sat Jul 30, 2022 9:53 am
this.toolHeader = [];
Means that the header for a tool is defined as an empty array ...
... In other words nothing is exported to the G-code as tool header.
From what I can make up of your reply, that would be the case for drilling.
The function
BIESSE.prototype.writeBlock is called every time something is being written.
Remark that this function is declared twice In the
BIESSE.js of your post above.
You initialy reported that
this.firstPointMoveZ doesn't work ....
... Simply because the
writeBlock function is overwritten by the second duplicate.
In the second one
this.toolHeader is in both cases set to
"[N] PAN=1 ST1=\"[T]\" L=PCUA" ...
... and
this.firstPointMoveZ does not occur at all.
In the other topic Andrew remarked that you do not move all the code to the
BIESSE.prototype.writeBlock ...
... For example, register all your variables in the main class and surely not only once in an if-else clause.
Regards,
CVH