g01 gcode confusion????

Discuss your first ever printrbot print

g01 gcode confusion????

Postby arshia » 2014-Jul-Sat-02-Jul

plz help me out ...i have a big confusion about g01 gcode.
if i have this command

G01X02Y02F100

then what does it mean???
i think it means that first tool move 2 inches or mm in x direction by the motor of x axis then tool will move 2 inches or mm in y direction through the motor of y axis and and reach at (2,2)???

or it means that both motors (motor of x and y axis both) move simulatneously and the tool will move in diagonal line at an angle of 45degree and reach at (2,2) ???
  • 0

arshia
Waiting to connect to printer...
 
Posts: 9
Joined: 2014-Jul-Fri-10-Jul
Reputation: 0

g01 gcode confusion????

Sponsor

Sponsor
 

Re: g01 gcode confusion????

Postby thawkins » 2014-Jul-Sat-06-Jul

arshia wrote:plz help me out ...i have a big confusion about g01 gcode.
if i have this command

G01X02Y02F100

then what does it mean???
i think it means that first tool move 2 inches or mm in x direction by the motor of x axis then tool will move 2 inches or mm in y direction through the motor of y axis and and reach at (2,2)???

or it means that both motors (motor of x and y axis both) move simulatneously and the tool will move in diagonal line at an angle of 45degree and reach at (2,2) ???


Both move simultaniously. Its a vector from x.current,y.current to x.current+2,y.current+2
  • 0

Jonbot+
225mm x 200mm - Heated Bed
RAMPS 1.4 running Marlin 1.1.0
Full Graphic display.
-------------------------------
Zen Toolworks CNC/3d printer
230mmx360mm bed
Dual j-head hotends.
Dual heated beds.
RAMPS 1.4 running Marlin 0.98
-------------------------------
Flashforge 3d Creator Pro
Dual Extruder
220x143x150mm
Mightyboard rev e, runnimg Sailfish 7.7r1234
-------------------------------
Photon, self designed printed printer.
User avatar
thawkins
Print winner 2nd
Print winner 2nd
 
Posts: 1636
Joined: 2013-Aug-Sun-10-Aug
Location: Manila, Philippines
Reputation: 172

Re: g01 gcode confusion????

Postby RetireeJay » 2014-Jul-Sat-06-Jul

By the way, units are always in millimeters.
  • 0

Printrbot Plus operational January 2013
Brass threaded rods (5/16" X 18) & nuts for Z axis
GT2 belts & pulleys
Cable chain to reduce probability of fatigue failure in wires
E3D V5 Hot End, 0.4mm nozzle, also 0.8 and 0.25 in use occasionally
PB fan mount + 40mm fan -- using printed mount adapter, not the E3D supplied fan
Injection molded extruder gears
Optical Z "endstop" (custom designed and built)
Have used many pounds of T-Glase filament. Now also doing some work with Ninjaflex SemiFlex
Print on glass with Scotch Craft Stick or other glue stick
"My next printer is..." Prusa i3 MK3, upgraded to MK3S
User avatar
RetireeJay
My next printer is...
 
Posts: 4995
Joined: 2013-Jan-Wed-13-Jan
Location: Greenville, SC
Reputation: 498

Re: g01 gcode confusion????

Postby arshia » 2014-Jul-Sat-07-Jul

thawkins wrote:
arshia wrote:plz help me out ...i have a big confusion about g01 gcode.
if i have this command

G01X02Y02F100

then what does it mean???
i think it means that first tool move 2 inches or mm in x direction by the motor of x axis then tool will move 2 inches or mm in y direction through the motor of y axis and and reach at (2,2)???

or it means that both motors (motor of x and y axis both) move simulatneously and the tool will move in diagonal line at an angle of 45degree and reach at (2,2) ???


Both move simultaniously. Its a vector from x.current,y.current to x.current+2,y.current+2


okay...nd the angle of diagonal will depend on the starting and ending coordinate.right ?????
  • 0

arshia
Waiting to connect to printer...
 
Posts: 9
Joined: 2014-Jul-Fri-10-Jul
Reputation: 0

Re: g01 gcode confusion????

Postby thawkins » 2014-Jul-Sat-11-Jul

arshia wrote:
thawkins wrote:
arshia wrote:plz help me out ...i have a big confusion about g01 gcode.
if i have this command

G01X02Y02F100

then what does it mean???
i think it means that first tool move 2 inches or mm in x direction by the motor of x axis then tool will move 2 inches or mm in y direction through the motor of y axis and and reach at (2,2)???

or it means that both motors (motor of x and y axis both) move simulatneously and the tool will move in diagonal line at an angle of 45degree and reach at (2,2) ???


Both move simultaniously. Its a vector from x.current,y.current to x.current+2,y.current+2


okay...nd the angle of diagonal will depend on the starting and ending coordinate.right ?????


On a g1 move the system sets the speed of movement of the x and y (and z if specified) such that movement is proportionat in each dimension, ie at 50% of the time through the move, the head will have moved 50% of the x distance and 50% of the y distance for example, so the path of the head will describe a staight line from the initial 3d coordibates to the final 3d coordinates.
  • 0

Jonbot+
225mm x 200mm - Heated Bed
RAMPS 1.4 running Marlin 1.1.0
Full Graphic display.
-------------------------------
Zen Toolworks CNC/3d printer
230mmx360mm bed
Dual j-head hotends.
Dual heated beds.
RAMPS 1.4 running Marlin 0.98
-------------------------------
Flashforge 3d Creator Pro
Dual Extruder
220x143x150mm
Mightyboard rev e, runnimg Sailfish 7.7r1234
-------------------------------
Photon, self designed printed printer.
User avatar
thawkins
Print winner 2nd
Print winner 2nd
 
Posts: 1636
Joined: 2013-Aug-Sun-10-Aug
Location: Manila, Philippines
Reputation: 172


Return to My first blob

Who is online

Users browsing this forum: No registered users and 1 guest

cron