Skip to content

GCodeProjects/GCodeWorkShop

Repository files navigation

GCodeWorkShop

This is a fork of EdytorNC, a text editor for CNC programmers.

Some features

  • Code colourizing.
  • Sessions - to save/restore open file list
  • Send/receive through serial port with automatic file saving and Serial port file server - possibility to download new CNC program directly from machine.
  • Find in files
  • Find/Replace can be used to addition, subtraction, multiplication, division on numbers or highlighting text.
    in Find: Y$$ in Replace $$*2 will multiply by 2 all numbers found with Y
    in Find: Y$100$10 in Replace $$*2 will multiply by 2 only numbers between 10 and 100 found with Y
    Find can be used also to highlight specific program blocks
  • Simple project management - you can keep links to (almost) all files related to your part program in one place.
  • First comment in program is displayed in title bar. In first comment you can write part name.
  • Comment with date will be replaced with current date on file save. Comment format: (dd-/.mm-/.yyyy) or ;dd-/.mm-/.yyyy - now system localization settings are used.
  • Block renumbering - whole program or selection
  • Conversion inch/mm, mm/inch. You can write inches in format 1.3/4 1/4 ...
  • Speed, feed calculation
  • Bolt holes calculation
  • Solutions of triangles calculation

Some shotcuts

  • Ctrl+; Comments/uncomments selected text with semicolon ;
  • Ctrl+9 Comments/uncomments selected text with parentheses ()
  • Ctrl+2 Adds Block Skip (/) and/or increments it
  • Ctrl+3 Adds Block Skip (/) and/or decrements it
  • Ctrl+1 Removes Block Skip (/)
  • Ctrl+0 or Ctrl+Double Click In line calculator, you can do some math operations directly in editor. You can select address (eg X123.45) before pressing Ctrl+0 (Ctrl+Double Click will do the same), value will be entered in the calc.
    After presing Enter (and if no error) result will be pasted in cursor position. Supported operators: + - * / SIN(x) COS(x) TAN(x) SQRT(x) SQR(x) ABS(x) TRUNC(x) PI

Command line options

  • open file -> gcodeworkshop file.nc
  • diff two files -> gcodeworkshop -diff file1.nc file2.nc

Compile GCodeWorkShop

Ubuntu

run terminal

sudo apt install qt5-default qtbase5-dev-tools qt5-qmake
cd ~
git clone https://github.com/GCodeProjects/GCodeWorkShop
cd GCodeWorkShop
qmake -r [CONFIG+=debug] [PREFIX=/usr/ | PREFIX=~/.local/bin/]
make
make lrelease

Windows

  • Install Qt5
  • download latest version of GCodeWorkShop source files
  • unzip downloaded file
  • open gcodeworkshop.pro in Qt Creator
  • press Ctrl+R