9.1.1.5.2. Config

Module to implement a G-code implementation configuration and an Oriented Object API for the YAML configuration files.

See YAML files for examples and RS-274 G-code Reference.

API implements an array interface or a dictionary interface for a table.

class PythonicGcodeMachine.Gcode.Rs274.Config.Config(execution_order, gcodes, letters, modal_groups, parameters)[source]

Bases: object

Class to register a G-code implementation configuration.

An instance is build from a set of YAML files.

Each argument is a path to the corresponding YAML file.

execution_order

ExecutionOrder instance

gcodes

GcodeSet instance

letters

LetterSet instance

modal_groups

ModalGroupSet instance

parameters

ParameterSet instance

class PythonicGcodeMachine.Gcode.Rs274.Config.MeaningMixin(meaning)[source]

Bases: object

meaning

A comment

class PythonicGcodeMachine.Gcode.Rs274.Config.ExecutionGroup(index, gcodes, raw_gcodes, meaning)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.MeaningMixin

gcodes

G-Codes list

index

Order index (table key)

raw_gcodes

Raw G-Codes list

class PythonicGcodeMachine.Gcode.Rs274.Config.ExecutionOrder(yaml_path, gcode_set)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.YamlMixin, PythonicGcodeMachine.Gcode.Rs274.Config.RstMixin

Class for the execution order table.

to_rst(path)[source]
class PythonicGcodeMachine.Gcode.Rs274.Config.Gcode(gcode, meaning, modal_group=None, execution_order=None, doc=None)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.MeaningMixin

convert_doc(format)[source]
doc
execution_order
execution_order_index
gcode

G-code (table key)

modal_group
class PythonicGcodeMachine.Gcode.Rs274.Config.GcodeSet(yaml_path)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.YamlMixin, PythonicGcodeMachine.Gcode.Rs274.Config.RstMixin

Class for the table of G-codes.

iter_on_slice(start, stop)[source]
sorted_iter()[source]
to_rst(path)[source]
class PythonicGcodeMachine.Gcode.Rs274.Config.LetterSet(yaml_path)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.YamlMixin, PythonicGcodeMachine.Gcode.Rs274.Config.RstMixin

Class for the table of letters.

AXIS_LETTERS = 'XYZABC'
GM_LETTERS = 'GM'
is_axis_letter(letter)[source]
is_axis_word(word)[source]
is_gm_letter(letter)[source]
is_gm_word(word)[source]
to_rst(path)[source]
class PythonicGcodeMachine.Gcode.Rs274.Config.ModalGroup(index, gcodes, meaning)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.MeaningMixin

gcodes

G-Codes list

index

Group id (table key)

class PythonicGcodeMachine.Gcode.Rs274.Config.ModalGroupSet(yaml_path, gcode_set)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.YamlMixin, PythonicGcodeMachine.Gcode.Rs274.Config.RstMixin

Class for the table of modal groups.

sorted_iter()[source]
to_rst(path)[source]
class PythonicGcodeMachine.Gcode.Rs274.Config.Parameter(index, meaning, value)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.MeaningMixin

default_value
index

Parameter’s index (table key)

class PythonicGcodeMachine.Gcode.Rs274.Config.ParameterSet(yaml_path)[source]

Bases: PythonicGcodeMachine.Gcode.Rs274.Config.YamlMixin, PythonicGcodeMachine.Gcode.Rs274.Config.RstMixin

Class for the table of parameters.

to_rst(path)[source]