{"id":1026,"date":"2023-01-31T12:41:03","date_gmt":"2023-01-31T12:41:03","guid":{"rendered":"https:\/\/www.fastseal.eu\/blog\/?p=1026"},"modified":"2024-10-02T17:58:20","modified_gmt":"2024-10-02T16:58:20","slug":"machine-settings-file-structure","status":"publish","type":"post","link":"https:\/\/fastseal.eu\/blog\/machine-settings-file-structure\/","title":{"rendered":"Machine settings &#8211; File structure"},"content":{"rendered":"\n<p>File name and formatting are set on this section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">File name<\/h3>\n\n\n\n<p>The file name template will produce the file name based on this setting. Note that several reserved words can be used and they are accessed using the right mouse key. The file extension can also be set here.<\/p>\n\n\n\n<p>There is also the option to limit the filename size. Leaving this option with 0, means that no limitation will occur and the file size can be of any size.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"177\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-64.png\" alt=\"\" class=\"wp-image-1027\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-64.png 1005w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-64-300x53.png 300w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-64-768x135.png 768w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/figure>\n<\/div>\n\n\n<p>Finally, there is also a option to replace invalid characters. The option used a regular expression (more information <a href=\"https:\/\/en.wikipedia.org\/wiki\/Regular_expression\" data-type=\"URL\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Regular_expression\">here<\/a>). All characters (or sub strings) that match this regular expression will be replaced with the contents of the second textbox.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">File formatting<\/h3>\n\n\n\n<p>The file formatting options contains several useful options. Some are mandatory to controllers.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1003\" height=\"321\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-65.png\" alt=\"\" class=\"wp-image-1028\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-65.png 1003w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-65-300x96.png 300w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-65-768x246.png 768w\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" \/><\/figure>\n<\/div>\n\n\n<p>If the output file should have their contents only with uppercase letters, the first option should be selected. If not, the output will have a mixture of lower and uppercase letter.<\/p>\n\n\n\n<p>The second option will add line number to the output file. The following options are related with it, and will only be editable if the first option is selected.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First number value: It will be the first number to appear on the file. Any value can be selected<\/li>\n\n\n\n<li>Increment value: All lines after the first one will be incremented. This value sets the increment value.<\/li>\n\n\n\n<li>Numbering should start in line number: Sets the line number to start to use the line numbering. Setting this, for example with a value as 4, means that the first 3 lines will not contain a line number<\/li>\n\n\n\n<li>Do not number empty lines: This will skip adding line numbers to empty lines<\/li>\n\n\n\n<li>Do not add line numbers on lines starting with: If the output file have lines that start with any of the characters set here (separated by a space), those lines will not be numbered.<\/li>\n<\/ul>\n\n\n\n<p>The settings on the example will result in the following example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>%\nN10 O0121 (RS21C 40.000\/48.000\/65.000\/4.000\/13.000)\nN20 (PROFILE: RS21C)\nN30 (MEASURES: 40.000\/48.000\/65.000\/4.000\/13.000)\nN40 (MATERIAL: HPU RED PREMIUM 30.000\/70.000 - TUBE 29.000\/71.000)\nN50 (STANDARD: YES)\n\nN60 (DATE OF FILE: 31\/01\/2023 @ 12:39:24)\nN70 (FAST SEAL CREATOR VERSION: 5.3.0.9 BUILD 20230131)\nN80 (NUMBER OF PARTS:1)\n\nN90 (FASTSEALCREATOR - MASTOR, LDA)\nN100 (FANUC SYSTEM CODE A TO 0I MATE TC )\nN110 (LICENSED TO UNLICENSED - EVALUATION MODE )\nN120 (********************)\nN130 ( INIT STRINGS       )\nN140 (********************)\nN150 G21\nN160 G99 (FEED PER REVOLUTION)\nN170 G21\nN180 G50 S2500\nN190 G00 G40 W50.\n\nN200 ( ******* )\nN210 ( FACING DOWN )<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Reduce file size<\/h4>\n\n\n\n<p>Although modern machines do not have a low amount of memory or a limitation on the transmission speed that makes relevant the size of the GCode file, some older machines do. Therefor a few options were introduced in version 5.4.6.2 (september 2024) so that the final file is reduced in size:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"278\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-79.png\" alt=\"\" class=\"wp-image-1700\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-79.png 680w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-79-300x123.png 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/figure>\n<\/div>\n\n\n<p>Each of the options affect the automatic generated code <strong>(does not include headers, footers, as those the user have direct control over its content by editing the corresponding template<\/strong>). Each of above option affects the code, attempting to reduce the amount of characters needed to produce the code, and therefor the total size of the file. Lets see with more detail each option, where the original code (without any option on) is on the left side and the resulting code with the corresponding option, on the right side:<\/p>\n\n\n\n<p><strong>Remove all comments except operation information<\/strong><\/p>\n\n\n\n<p>This option will remove all comments but keeping those that inform the type of operation<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"420\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-74.png\" alt=\"\" class=\"wp-image-1688\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-74.png 525w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-74-300x240.png 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Remove all comments<\/strong><\/p>\n\n\n\n<p>This option removes all comments<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"420\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-75.png\" alt=\"\" class=\"wp-image-1689\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-75.png 525w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-75-300x240.png 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Remove <\/strong>empty lines<\/p>\n\n\n\n<p>This option removes all empty lines that might exist on the code (templates or code can leave empty lines that are removed using this option)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Remove insignificant trailing zeros<\/strong><\/p>\n\n\n\n<p>Numbers like 3.200 are transformed into 3.2 (no insignificant zeros are added). Insignificant trailing zeros were added to improve the readability of the code as all elements are presented aligned.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"420\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-76.png\" alt=\"\" class=\"wp-image-1690\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-76.png 525w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-76-300x240.png 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Remove spaces between elements<\/strong><\/p>\n\n\n\n<p>This option removes all spaces between elements. This makes the code harder for the user to read, but it should be clearly understood by the machine on the same way as the original code.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"420\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-77.png\" alt=\"\" class=\"wp-image-1691\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-77.png 525w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-77-300x240.png 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Remove XZ instructions if repeated<\/strong><\/p>\n\n\n\n<p class=\"has-primary-background-color has-background\">This option will remove all X and Z instructions on G01 and G02 movements if the previous movement contains the same values on the respective axis. On version 5.4.6.8 (October 2024) is experimental &#8211; and potentially dangerous to use.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"538\" height=\"443\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-80.png\" alt=\"\" class=\"wp-image-1702\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-80.png 538w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-80-300x247.png 300w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>Example with all options set<\/strong><\/p>\n\n\n\n<p>A significant amount of characters can be removed without affecting the content of the code. Using the same example, with all options turned on, the result is:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"440\" src=\"https:\/\/www.fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-81.png\" alt=\"\" class=\"wp-image-1703\" srcset=\"https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-81.png 510w, https:\/\/fastseal.eu\/blog\/wp-content\/uploads\/2023\/01\/image-81-300x259.png 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/figure>\n<\/div>\n\n\n<p>In this cycle only, from <strong>490<\/strong> characters the output resulted into <strong>309<\/strong> characters, a reduction of about <strong>37%<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>File name and formatting are set on this section. File name The file name template will produce the file name based on this setting. Note that several reserved words can be used and they are accessed using the right mouse key. The file extension can also be set here. There is also the option to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/fastseal.eu\/blog\/machine-settings-file-structure\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Machine settings &#8211; File structure&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[67,58],"class_list":["post-1026","post","type-post","status-publish","format-standard","hentry","category-settings","tag-filename","tag-settings","entry"],"_links":{"self":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts\/1026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/comments?post=1026"}],"version-history":[{"count":7,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts\/1026\/revisions"}],"predecessor-version":[{"id":1705,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/posts\/1026\/revisions\/1705"}],"wp:attachment":[{"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/media?parent=1026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/categories?post=1026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastseal.eu\/blog\/wp-json\/wp\/v2\/tags?post=1026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}