Welcome! Log In Create A New Profile

Advanced

Problem with the result

Posted by lond 
Problem with the result
April 02, 2010 08:50AM
Hi!

I have upgraded my mill with a reprap controller board.
When I test it with a simple job, I get strange results, instead of a square I just get a simple line divided in three parts. The result is attached below.
M3 
G21 (All units in mm)
G00 Z5.0000 
G00 X0.0000 Y0.0000 
G01 Z-1.0000 F200.0000
G01 X15.0000 Y0.0000 F200.0000
G01 X15.0000 Y15.0000
G01 X0.0000 Y15.0000
G01 X0.0000 Y0.0000
G00 Z0.0000
G00 Z0.0000 
G00 X0.0000 Y0.0000 
M5 
(end)

I use ReplicatorG 0013 as host and reprap-gen3-firmware-1.6-r0 with custom config-file to match my controller-board.

It looks like my machine just increments the position value instead of using absolute position when moving.

Have I done something wrong in the firmware-file or in the setup of ReplicatorG?

// Marcus
Attachments:
open | download - orginal.jpg (2.9 KB)
open | download - result_2.jpg (19.6 KB)
Re: Problem with the result
April 02, 2010 09:01AM
lond Wrote:
-------------------------------------------------------
> Hi!
>
> I have upgraded my mill with a reprap controller
> board.
> When I test it with a simple job, I get strange
> results, instead of a square I just get a simple
> line divided in three parts. The result is
> attached below.
>
> M3
> G21 (All units in mm)
> G00 Z5.0000
> G00 X0.0000 Y0.0000
> G01 Z-1.0000 F200.0000
> G01 X15.0000 Y0.0000 F200.0000
> G01 X15.0000 Y15.0000
> G01 X0.0000 Y15.0000
> G01 X0.0000 Y0.0000
> G00 Z0.0000
> G00 Z0.0000
> G00 X0.0000 Y0.0000
> M5
> (end)
>
>
> I use ReplicatorG 0013 as host and
> reprap-gen3-firmware-1.6-r0 with custom
> config-file to match my controller-board.
>
> It looks like my machine just increments the
> position value instead of using absolute position
> when moving.
>
> Have I done something wrong in the firmware-file
> or in the setup of ReplicatorG?
>
> // Marcus

It gives the appearance of being in 'relative' mode. See if adding "G90" to the top of the file helps. Mind if I steal your gcode and include it as one of the tests for the battery of GCode tests I'm compiling? Also, question -- what does M3 and M5 do?
Re: Problem with the result
April 02, 2010 09:44AM
Tanks!

By adding "G90" to the top everything works smiling smiley smiling smiley

Updated code:
(start)
G90 
G21 (All units in mm)
G00 Z5.0000 F200
G00 X0.0000 Y0.0000 
M106 (Mill relay on (fan on)
G01 Z-1.0000 F200.0000
G01 X15.0000 Y0.0000 F200.0000
G01 X15.0000 Y15.0000
G01 X0.0000 Y15.0000
G01 X0.0000 Y0.0000
G00 Z0.0000
G00 Z0.0000 
G00 X0.0000 Y0.0000 
M107 (Mill relay off (fan off)
(end)

The M3 and M5 commands is for controlling a spindle engine but I have replace it with M106 and M107 that control the fan on the extruder board. In my setup the commands control a 230V relay on my custom extruder board for my mill engine.

My CNC mill

// Marcus

Edited 1 time(s). Last edit at 04/02/2010 09:47AM by lond.
Sorry, only registered users may post in this forum.

Click here to login