Python Forum
Python code for gcode reader and representation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python code for gcode reader and representation
#1
I am new to Python and I was wondering if someone can give me a few tips how to program in Python a gcode reader and afterwards the respective representation.

I am completly on the start of learning how to program. My goal is to read the gcode, pickup the XYZ coordinates of each line and represent them in a diagram and connect these points with lines, so that it basically generates a tool path.

Any help would be appreciated :)

Best regards,

Rui
Reply
#2
Parsing foreign Languages like GCode is not an easy task for beginners.
You can look at already existing code: https://github.com/fragmuffin/pygcode
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Writing a Linear Search algorithm - malformed string representation Drone4four 10 829 Jan-10-2024, 08:39 AM
Last Post: gulshan212
  xml simple reader kucingkembar 2 1,022 Aug-19-2022, 08:51 PM
Last Post: kucingkembar
  Having strange results from an RFID HID card reader - I'm stuck orbisnz 1 1,431 Mar-28-2022, 08:20 AM
Last Post: Larz60+
  Thoughts on interfacing with a QR code reader that outputs keystrokes? wrybread 1 1,447 Oct-08-2021, 03:44 PM
Last Post: bowlofred
  NFC reader code help johnroberts2k 1 2,512 Jul-02-2021, 08:43 PM
Last Post: deanhystad
  csv.reader(): Limit the number of columns read in Windows Pedroski55 9 5,042 Jan-23-2021, 01:03 AM
Last Post: pjfarley3
  Help moding python script to edit Gcode AntaresSky 13 4,927 Jan-04-2021, 06:29 AM
Last Post: buran
  platform binary representation --- 3 questions Skaperen 4 2,710 Dec-05-2020, 03:50 AM
Last Post: Skaperen
  Why int() cannot pass a string representation of a float into int? majorjohnusa 1 1,846 Jul-09-2020, 05:26 AM
Last Post: Knight18
  Closing Files - CSV Reader/Writer lummers 2 2,560 May-28-2020, 06:36 AM
Last Post: Knight18

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020