Rosettacnc Gcode Language

Rosettacnc Gcode Language

RosettaCNC G-code language Document release 8 1/75 RosettaCNC G-code language RosettaCNC G-code language All rights reserved on this manual. No part of this document can be copied or reproduced in any form without prior written authorisation. RosettaCNC Motion® does not insure or guarantee its contents and explicitly declines all liability related to the guarantee of its suitability for any purpose. The information in this document can be changed without notice. RosettaCNC Motion® shall not be held liable for any error or omission in this document. RosettaCNC Motion® is a registered trademark. Information Document: MDUROSETTACNCSOFTWAREGCODE Description: RosettaCNC G-code language Link: https://wiki.rosettacnc.com/doku.php/software/mdurosettacncsoftwaregcode Release documento Descrizione Note Data 01 First release / 17/01/2018 02 Minor changes / 29/01/2019 03 Update for 1.6 version / 02/09/2019 04 Update for 1.7 version / 29/11/2019 05 Update for 1.7.6 version / 04/02/2020 06 Update for 1.7.7 version / 04/03/2020 07 Update for 1.8.5 version / 01/10/2020 08 Update for 1.9.1 version / 23/04/2021 References This manual explains the control software used by the RosettaCNC software. All the implementation details refer to the software version: 1.9.1. The actual control software version can be identified by open the “Help” menu → “About RosettaCNC”. 2/75 RosettaCNC G-code language Table of Contents RosettaCNC G-code language ..................................................................................................... 2 Information .................................................................................................................................... 2 References ..................................................................................................................................... 2 1. Supported G and M Codes ....................................................................................................... 7 1.1 Supported G Codes ............................................................................................................. 7 1.2 Supported M Codes .......................................................................................................... 10 1.3 Other Codes ....................................................................................................................... 12 “F” for “Feed” .......................................................................................................................... 12 “S” for “Spindle Speed” ........................................................................................................... 12 “T” for “Tool” ........................................................................................................................... 12 Notes ....................................................................................................................................... 12 1.4 G-Code Comments ............................................................................................................ 12 1.5 Block delete ....................................................................................................................... 12 1.6 Go to predefined positions .............................................................................................. 13 1.6.1 G28 and G28.1 ............................................................................................................... 13 Examples ............................................................................................................................. 13 1.6.2 G30 and G30.1 ............................................................................................................... 13 1.6.2.1 Examples ................................................................................................................. 13 1.7 G Code Order of Execution .............................................................................................. 15 1.8 Arcs & Helices .................................................................................................................... 16 1.8.1 Syntax ............................................................................................................................ 16 1.8.2 Center Format Arcs ......................................................................................................... 16 Incremental Arc Distance Mode ........................................................................................... 16 Absolute Arc Distance Mode ................................................................................................ 17 1.8.3 Radius Format Arcs ......................................................................................................... 17 1.8.4 Examples ........................................................................................................................ 17 1.8.5 Center format arcs incremental mode ............................................................................ 17 1.8.6 Full circles and helices .................................................................................................... 18 2. G-Code variables ..................................................................................................................... 19 2.1 System variables description ......................................................................................... 19 2.2 Named variables ............................................................................................................... 21 2.2.1 Global and local scopes .................................................................................................. 21 2.2.2 Indexing support ............................................................................................................. 21 2.2.3 Pre-defined Named Parameters ...................................................................................... 22 2.2.4 Examples ........................................................................................................................ 26 2.3 Position Information ......................................................................................................... 26 2.4 Vacant or Empty Variables .............................................................................................. 27 2.5 Local variables .................................................................................................................. 29 3. Macro programming ............................................................................................................... 30 3.1 Arithmetic Logic & Statements ...................................................................................... 31 3.1.1 Binary Operators ............................................................................................................ 31 About equality and floating-point values ................................................................................. 31 3.1.2 Functions ........................................................................................................................ 31 3.2 Looping & Branching ........................................................................................................ 32 3.2.1 Unconditional Branching ................................................................................................. 32 3.2.2 Conditional Branching .................................................................................................... 32 3.2.3 IF-THEN Option ............................................................................................................... 32 Single line syntax .................................................................................................................... 32 Multi line syntax ...................................................................................................................... 32 3/75 RosettaCNC G-code language Multi line syntax with ELIF ....................................................................................................... 32 3.2.4 While Loop ...................................................................................................................... 32 3.2.5 About unique IDs ............................................................................................................ 33 3.2.6 Example .......................................................................................................................... 33 3.3 Custom Macro calls ........................................................................................................... 35 3.3.1 Non modal Macro calls .................................................................................................... 35 3.3.2 Modal Macro calls ........................................................................................................... 35 Example ................................................................................................................................... 35 3.3.3 Support for encrypted macro files .................................................................................. 36 3.4 Subroutines ....................................................................................................................... 38 3.5 User Tool Change Subprogram ....................................................................................... 39 Examples ................................................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    75 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us