Talk:G-code: Difference between revisions

Content deleted Content added
 
(24 intermediate revisions by 7 users not shown)
Line 1:
{{WikiProject metalworkingbanner shell|class=C|importance=Mid}}
{{WikiProject Metalworking|importance=Mid}}
}}
==Someone deleted important information!==
Please restore: The section "List of G-codes commonly found on FANUC and similarly designed controls for milling and turning" as well as the section "Letter addresses", and "specific codes", and the "example program". They were deleted around July to August of 2023. The article is next to useless without the substance of example G, and M codes. Those sections make the article much more educational. Keep in mind machining is a technical trade, You can only dumb it down so much before you are saying nothing. <!-- Template:Unsigned IP --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/98.127.21.16|98.127.21.16]] ([[User talk:98.127.21.16#top|talk]]) 02:11, 29 January 2024 (UTC)</small> <!--Autosigned by SineBot-->
 
:There could have been a more gentle way to redirect or explain common commands and such, but the editor did make a valid point, wikipedia is not a textbook/instruction book nor cheatsheet:
:https://en.wikipedia.org/w/index.php?title=G-code&oldid=1168186120 is the particular edit you refer to.
:you can still see the commands in the old page: https://en.wikipedia.org/w/index.php?title=G-code&oldid=1166786829#List_of_G-codes_commonly_found_on_FANUC_and_similarly_designed_controls_for_milling_and_turning or source the original book. (for the 27th edition, page 1272, pdf page 1593) its the first book in the bibliography section.
:Tons of other resources seem to be dead, or unreachable from europe, this wiki page is very outdated and a mess anyway [[User:CodeAsm|CodeAsm]] ([[User talk:CodeAsm|talk]]) 13:41, 25 November 2024 (UTC)
 
==Typo?==
Can someone fix this "a post"? I'm not sure exactly what they mean:
Line 197 ⟶ 207:
 
:: So the trail from EIA RS-274 to X-code to MIT is as follows:
:: RS-274-C, which was approved in April 1974, unified two different EIA standard: RS-273 (Straight Cut) and RS-274 (Contour Cut), both of which had initial publication in January 1963 (see Library of Congress listingscopyright filings).
:: The EIA RS standards, which governed members of the EIA, were essentially copies of earlier AIA National Aerospace Standards: NAS 943 (Straight Cut) and NAS 955 (Contour Cut). NAS 943 was approved in 1960 (as per the AIA Annual Report, available online). The EIA governed Electronics manufacturers, while the AIA governed Aerospace manufacturers.
:: Those standards are predominately based on the two leading Numerically Controlled mills during the APT work: the Giddings & Lewis mill (trademarked as the Numericord) which used a combination of General Electric and Concord Controls controllers. The second system was the Kearney & Trecker mill, which used a Bendix controller. Both machines had detailed papers published at the Eastern Joint Computer Conference in December 1957 (proceedings available online). The Bendix solution used "R-codes" to describe operational modes (essentially G-codes) and another set to describe auxiliary on/off functions (essentially M-codes). The Giddings & Lewis system used "X-codes" which also described operational modes and auxiliary on/off functions. These are the X-codes described in the APT flowcharts. The assertion that these were the two leading NC mills in the mid-50s can be found in <i>Forces of Production</i> by David F. Noble. The same book contains significant content as to why Bendix became the preferred solution during the standardization process, which was driven as a requirement by the US Air Force.
:: The X-codes are better documented in US patent 2963137 "Controls for a typewriter and associated apparatus" (the patent title is somewhat misleading - this is a numerical control patent). The patent assignee is Giddings & Lewis, but the four inventors (McDonough, Susskind, Grossimon, and Lee) were all MIT staff attached to the Servo Lab. Giddings & Lewis poached the entire MIT numerical control staff (with the exception of Susskind) to form Concord Controls at the beginning of 1956. Note that the same team worked on the original MIT NC Mill, which was finalized in 1952. Bendix licensed the two patents that were generated from the 1952 mill. It's unknown if the idea for X-Code occurred while the group was at Concord Controls or while at MIT. They would have been influenced by activities in the field of Automatic Programming occurring on the MIT Whirlwind computer in 1954 (Susskind was on the Whirlwind staff). Two Automatic Programming activities, well-known in Whirlwind circles, were the "CS" and "SS" programs, which both utilized labels that were called "mnemonic alphadecimals", which consisted of a single alphabetic character, followed by up to 3 decimal digits, the same as the X-Code format. (documented in MIT Report R-233, "The MIT Systems of Automatic Coding", C.W. Adams, available online)
:: The Bendix R-codes were encoded on punch tape in their own special block, so there was never an appearance of an alphanumeric code, such as "R00", although the codes were labeled "R" on the part programming sheets (see the 1957 paper). The Giddings & Lewis X-Code, however, appeared exactly as G-Code would later be used. There is no relationship between the operational code numbers between X-Code and the later G-code. It's unknown if the same can be said for the auxiliary functions, as they are deliberately not documented in the 1957 paper, nor the 1956 patent - other than the Program End function which was encoded as "X00", the same as the later "M00". (see the part programming sheet, Figure 5, of the G&L patent).
::[[User:Alvonruff|Alvonruff]] ([[User talk:Alvonruff|talk]]) 15:17, 16 September 2021 (UTC)
 
Line 211 ⟶ 221:
== GRBL chapter ==
I miss an article or other description of GRBL in the Wikipedia, so I propose a sub-chapter 'GRBL' under 'implementations'. Okay? --[[User:Edoe|Edoe]] ([[User talk:Edoe|talk]]) 11:02, 14 February 2021 (UTC)
 
== RfC: Partially Reversing Thumperward's deletions ==
 
{{divbox|1=grey|3=
{{diff|prev|1168186349|label=1168186349}} - ''«in fact that applies to this whole section»''<br>
{{diff|prev|1168186303|label=1168186303}} - ''«tidy endnotes, rm unreferenced commentary on the general state of CNC»''<br>
{{diff|prev|1168186120|label=1168186120}} - ''«[[WP:NOTMANUAL]]»''
}}
 
I suggest to ''partially'' amend the above edits (by {{u|Thumperward}}) and partially restore [[Special:permalink/1166786829| August 1, 2023 [1168186120]]] revision of the article.<br/>The edits were justified by [[WP:NOTMANUAL]] policy without specifying exact provision violated, which makes deletion questionable.<br/>
Due to this article's complex subject covered (there are various unwieldy standards and a whole rainbow of G-code implementations)I suggest the following to be done to the following subsections:
 
{| class="wikitable"
! № !! Subsection !! What to do
|-
|{{anchor|RFC51325_1}} [[#RFC51325_1|#1]] || [[Special:permalink/1166786829#Specific_codes|#Specific codes]] || RESTORE SUMMARY of the subsection entirely
|-
|{{anchor|RFC51325_2}} [[#RFC51325_2|#2]] || [[Special:permalink/1166786829#Specific_codes|#Letter addresses]] || RESTORE table of LETTER prefixes entirely; the table is small and letter prefixes are basically key part of this article; without them this article is useless; they should serve as an introductory overview; replace LINKS to [[WP:ANCHOR]]s to the FANUC codes to Wikibooks article counterparts
|-
|{{anchor|RFC51325_3}} [[#RFC51325_3|#3]] || [[Special:permalink/1166786829#List_of_G-codes_commonly_found_on_FANUC_and_similarly_designed_controls_for_milling_and_turning|#FANUC G-Codes]] || MOVE Entirely to [[:Wikibooks:G-Code]]
|-
|{{anchor|RFC51325_4}} [[#RFC51325_4|#4]] || [[Special:permalink/1166786829#List_of_M-codes_commonly_found_on_FANUC_and_similarly_designed_controls_for_milling_and_turning|#FANUC M-Codes]] || MOVE Entirely to [[:Wikibooks:G-Code]]
|-
|{{anchor|RFC51325_5}} [[#RFC51325_5|#5]] || [[Special:permalink/1166786829#Example_program|#Example program]] || RESTORE EXAMPLE entirely; this neither falls under [[WP:NOTMANUAL]]/'''1.Instruction manuals and cookbooks''', nor Wikipedia would be full without clear examples
|} <span style="font-weight: bold" >[[User:Alexander_Davronov|<span style="color:#a8a8a8;">AXO</span><span style="color:#000">NOV</span>]] [[User talk:Alexander_Davronov|(talk)]] [[Special:Contributions/Alexander_Davronov|⚑]]</span> 11:21, 13 May 2025 (UTC)
 
: I'm fine with the summary of the "specific codes" section being re-added. The rest is still purely implementational detail which provides no reader value in helping them understand the subject. It is sufficient to say that the language provides opcodes to perform specific functions without having to exhaustively list them. Likewise, I've never encountered a sample program on here beyond hello-world length which can even be followed by an inexpert reader, and a page-long listing with another full page of annotations (none of it sourced of course) is a perfect case of that. Obviously I have no opposition whatsoever to any and all of it being moved to Wikibooks, which accepts reference implementational content like this. [[User:Thumperward|Chris Cunningham (user:thumperward)]] ([[User talk:Thumperward|talk]]) 07:04, 15 May 2025 (UTC)
::The long listings of codes are actually FANUC-related. Opcodes details from any manufacturer should be kept out of scope of this article and moved elsewhere. <span style="font-weight: bold" >[[User:Alexander_Davronov|<span style="color:#a8a8a8;">AXO</span><span style="color:#000">NOV</span>]] [[User talk:Alexander_Davronov|(talk)]] [[Special:Contributions/Alexander_Davronov|⚑]]</span> 08:01, 15 May 2025 (UTC)
 
::: That doesn't matter. What individual opcodes do is not relevant to understanding the subject matter: it is solely relevant to operating it. I'm loathe to point at other programming language articles (wikipedia being subject to rapid change, article quality wildly fluctuating across both space and time, etc) but an exhaustive list of keywords is not a feature of any high-quality counterpart to this article. [[User:Thumperward|Chris Cunningham (user:thumperward)]] ([[User talk:Thumperward|talk]]) 23:03, 15 May 2025 (UTC)