parse_gcode: Read the gcode and translate it as per the dictionary

Description Usage Arguments Examples

Description

Returns a data frame with each row referring to a block of G-code

Usage

1
parse_gcode(gcode_file_path)

Arguments

gcode_file_path

Directory path of the file containing G-code

Examples

1
2
gcode_file_path = "extdata/raw_gcode_sample.NC"
gcode_parsed = parse_gcode(system.file(gcode_file_path,package = "mtconnectR"))

Example output

MOTION_LINEAR  MOTION_RAPID PATH_FEEDRATE      POSITION 
            1             2             2            13 

mtconnectR documentation built on May 1, 2019, 10:38 p.m.