Skip to content

Struct SYN_GCode_Block

ClassList > SYN_GCode_Block

Parsed RS-274 G-Code line block.

  • #include <syn_gcode.h>

Public Attributes

Type Name
float f
uint32_t g_code
bool has_f
bool has_g
bool has_i
bool has_j
bool has_k
bool has_m
bool has_p
bool has_s
bool has_t
bool has_x
bool has_y
bool has_z
float i
float j
float k
uint32_t m_code
float p
float s
uint32_t t
float x
float y
float z

Public Attributes Documentation

variable f

float SYN_GCode_Block::f;

Feedrate in units/min or units/sec


variable g_code

uint32_t SYN_GCode_Block::g_code;

Numeric G-code (e.g. 0, 1, 2, 3, 90, 91)


variable has_f

bool SYN_GCode_Block::has_f;

True if F word was present


variable has_g

bool SYN_GCode_Block::has_g;

True if G-code was present


variable has_i

bool SYN_GCode_Block::has_i;

True if I word was present


variable has_j

bool SYN_GCode_Block::has_j;

True if J word was present


variable has_k

bool SYN_GCode_Block::has_k;

True if K word was present


variable has_m

bool SYN_GCode_Block::has_m;

True if M-code was present


variable has_p

bool SYN_GCode_Block::has_p;

True if P word was present


variable has_s

bool SYN_GCode_Block::has_s;

True if S word was present


variable has_t

bool SYN_GCode_Block::has_t;

True if T word was present


variable has_x

bool SYN_GCode_Block::has_x;

True if X word was present


variable has_y

bool SYN_GCode_Block::has_y;

True if Y word was present


variable has_z

bool SYN_GCode_Block::has_z;

True if Z word was present


variable i

float SYN_GCode_Block::i;

Arc center X offset


variable j

float SYN_GCode_Block::j;

Arc center Y offset


variable k

float SYN_GCode_Block::k;

Arc center Z offset


variable m_code

uint32_t SYN_GCode_Block::m_code;

Numeric M-code (e.g. 3, 4, 5, 8, 9, 30)


variable p

float SYN_GCode_Block::p;

Parameter / Dwell seconds


variable s

float SYN_GCode_Block::s;

Spindle speed (RPM)


variable t

uint32_t SYN_GCode_Block::t;

Tool select index


variable x

float SYN_GCode_Block::x;

Target X coordinate


variable y

float SYN_GCode_Block::y;

Target Y coordinate


variable z

float SYN_GCode_Block::z;

Target Z coordinate



The documentation for this class was generated from the following file src/syntropic/motor/syn_gcode.h