Comments in G-Code

Is it possible to put comments in the source that will be added to the G-Code? Eg Drill 5 mm, Mill 6 mm.

Open the operation and go to the ‘notes’ tab. Anything entered there will be added to the G-code as a comment.

I’m using Jet cutting and I have tried the following text in the notes tab.

Drill

// Drill

\ Drill

but none appear in the G-Code file.

It could be that the post is not set up to use notes. What post are you using?

You are correct.

Anilam and it says ‘No comments’

Do I take out the ‘No Comments’ Line to make it work ?

No. It needs some extra code in the post. How does the Anilam specify comments? Also does it allow comments on the same line as G or M-codes?

I’m not actually using Anilam, it was one that I found that uses absolute coordinates for IJ

ok, edit the post and add these lines:

function OnComment()
  post.Text(" (",commentText,")\n")
end

That outputs comments in brackets. If your control doesn’t recognise brackets, let me know and I’ll tell you how to change it.