Element / Gcode Data

This is a list of Gcode commands.

HTML

<script src="http://www.chilipeppr.com/js/require.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">

JavaScript

// Test this element. This code is auto-removed by the chilipeppr.load()
cprequire_test(["inline:com-chilipeppr-elem-gcodedata"], function (gcd) {
    console.log("test running of " + gcd.id);
    $.each(gcd.gcode, function (indx, val) {
        $.each(val, function (i, d) {
            $('body').append(i + " : " + d + ", ");
        });
        $('body').append("<br/><br/>");
    });
    //gcd.init();

} /*end_test*/ );

cpdefine("inline:com-chilipeppr-elem-gcodedata", ["chilipeppr_ready"], function () {
    return {
        id: "inline:com-chilipeppr-elem-gcodedata",
        url: "http://fiddle.jshell.net/jlauer/gY2pf/show/light/",
        fiddleurl: "http://jsfiddle.net/jlauer/gY2pf/",
        name: "Element / Gcode Data",
        desc: "List of Gcode commands from Wikipedia",
        publish: null,
        subscribe: null,
        init: function () {
            //console.log("init called");
            console.log("Element / Gcode Data done loading.");
        },
        gcode: [{
            code: "G00",
            desc: "Rapid positioning",
            m: "M",
            t: "T",
            info: "On 2- or 3-axis moves, G00 (unlike <a href=\"#G01\">G01</a>) traditionally does not necessarily move in a single straight line between start point and end point. It moves each axis at its max speed until its vector is achieved. Shorter vector usually finishes first (given similar axis speeds). This matters because it may yield a dog-leg or hockey-stick motion, which the programmer needs to consider depending on what obstacles are nearby, to avoid a crash. Some machines offer interpolated rapids as a feature for ease of programming (safe to assume a straight line)."
        }, {
            code: "G01",
            desc: "<a href=\"/wiki/Linear_interpolation\" title=\"Linear interpolation\">Linear interpolation</a>",
            m: "M",
            t: "T",
            info: "The most common workhorse code for feeding during a cut. The program specs the start and...