yes, will run, but will it deliver ? should g42 be in the block with the rapid ( code-a ), or with the feed ( code-b ) ? let's compare :
... image 1 : code-a ( left side ), won't move under X61
... image 2 : code-a toolpath is yellow, and code-b toolpath is blue; it can be seen that code-b has more movements, and it delivers the radius, while code-a won't deliver the arc marked with green
code-b, as a type, is osp default
Drop all the extra N lines to save yourself 24 characters on the old girl.
Drop preceding 0's to save 4 more for 28 total characters or about 33% of the total characters in the code.
did you worked a lot of time on machines with limited memory ? just asking ...
let's continue the trend : also spaces may be removed :
Code:
NAT01 G81
G0X61Z61G42
G1X61Z60F0.1
G3X63Z59K-1
G1X63Z-4.5
G40
G80
also duplicate coords :
Code:
NAT01 G81
G0X61Z61G42
G1Z60F0.1
G3X63Z59K-1
G1Z-4.5
G40
G80
now, let's boost the compiling speed, so to reduce execution time, by removing lines without chars, and lines with comments to keep the comments, without reducing the execution time, then they can be written like below :
Code:
NAT01 G81 ( EXT CONTOUR )
G0X61Z61G42
G1Z60F0.1
G3X63Z59K-1
G1Z-4.5
G40
G80
or like this, but it will be a few ms slower
NOEX ( EXT CONTOUR )
NAT01 G81
G0X61Z61G42
G1Z60F0.1
G3X63Z59K-1
G1Z-4.5
G40
G80
and this is only the begining i won't develop futher
yeah, me too / kindly