-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align types with gcode spec #42
Comments
G-code Letter and Word Address Syntax (common.py)G-code (also RS-274) is the most widely-used computer numerical control (CNC) programming language. A G-code command (word address) is formed by single letter (letter address) followed by 2 digits. Multiple G-code commands on the same line are called command blocks
G-code word addresses are used to configure the machine state and control the motors. The two primary letter addresses are M-codes and G-codes. M-codes are known as machine codes (or more accurately miscellaneous codes) and G-codes are called preparatory codes. M-codes allow for state changes of the machine components and the running program. G-codes control the motion of the motors and the internal configuration of the machine. In addition to the G and M address there are other letter addresses that are used in conjunction with them Below is a comprehensive list of the available letter addresses:
inch: 4 fractional positions G-code commands can be categorized as modal or non-modal. Modal commands remain in effect until they are replaced or cancelled by another command. Non-modal commands execute in their block scope. M-code and G-code are further organized into modal groups G-code Modal Groups:
M-code Modal Groups:
|
G-code Block Syntax (command.py)Letter Address Order: Word Address Groups:
G-code Command Formats:
|
G-code Program Structure (fluent.py)
|
spindle
->speed
common.py
->groups.py
address.py
withXYZ
andIJK
classes moveprint_xyz()
andprint_ijk()
GCodeEnum
->GCodeAddress
GCodeEnum.to_gcode()
->GCodeEnum.__repr__()
andGCodeEnum._str_()
precision
parameter and choose precision based on selected Unit addressclass FeedRate(GCodeEnum)
and createprint_feed()
The text was updated successfully, but these errors were encountered: