<p>It sounds like you have "Origin at center" checked in your slicer's printer definition. That is generally only used with delta printers. Most Cartesian printers have the origin at the front-left corner of the build plate. Uncheck "Origin at center" and re-slice.</p>

<p>Providing that you have set up your slicer with the build plate dimensions and origin correctly defined, your models will be printed where the slicer shows them in the preview. You can rearrange the models before you slice, of course.</p>

CC BY-SA 4.0
2019-10-23T20:30:24.573Z
Not sure you addressed the questions I asked. Revision?
zipzit
CC BY-SA 4.0
2019-10-23T20:40:43.310Z
@zipzit I was going to post a comment asking you if you had the origin set at the center of the build plate. That is the usual reason for getting prints at the corner of a build plate.
Mick
CC BY-SA 4.0
2019-10-26T05:55:58.723Z
see update above. Any ideas on what’s going on?  Thx.
zipzit
CC BY-SA 4.0
2019-10-23T19:19:20.127Z
2019-10-23T20:43:57.260Z
2019-10-23T20:43:57.260Z
Mick
<p>First of all, the firmware determines where your origin of the printer is. This implies that you need to properly set bed dimensions and offset values from the end stop switches in the firmware (usually not necessary out-of-the-box, but important when a newer or different firmware version is uploaded). These offsets determine where the origin of the bed plate is located. For Marlin firmware it is very common to have the origin specified at the front left corner (when facing the printer). From the <a href="https://github.com/MarlinFirmware/Marlin/blob/1.1.x/Marlin/Configuration.h#L765" rel="nofollow noreferrer">configuration of Marlin</a> we find that by definition the origin is in the front-left corner (note that this can be rotated 180 degrees in certain printers, so the aft-right):</p>

<pre>
 *      +-- BACK ---+
 *      |           |
 *    L |    (+) P  | R
 *    E |           | I
 *    F | (-) N (+) | G
 *    T |           | H
 *      |    (-)    | T
 *      |           |
 *      O-- FRONT --+
 *    (0,0)
</pre>

<p><strong>How do I find the physical origin of the printer?</strong><br>
This can be tested by instructing the head/nozzle to go to e.g. (0, 0, 15) using a <a href="/q/10573">terminal/console</a> or a simple G-code file with a move to that coordinate that you print from SD card (e.g. <code>G1 X0 Y0 Z15 F500</code>); <em>note a Z of 15 is chosen for safety!</em>. When this is performed, the nozzle should be at the (elevated, so X, Y) origin as defined by your firmware. Usually this is at the left front corner of your build plate (there may be clips there, so therefore the elevated value), but this may be different depending on the firmware settings or firmware brand.</p>

<p>Next step is to configure the slicer as such that this coincides with the actual origin. Incorrect slicer settings can cause the slicer to assume the origin is at a different position than your actual position. In Ultimaker Cura, the "Origin at center" is notoriously known for this when the physical origin is not in the center, but in a corner.</p>

CC BY-SA 4.0
2019-10-26T13:07:13.097Z
Any comment on the randomization factor? As far as I know there are no random number generators in Gcode. That points me to printer firmware. Does any machine print in random locations by default? (I guess that would be 'conserve your hairspray' setting :^)
zipzit
CC BY-SA 4.0
2019-10-29T11:24:00.020Z
@zipzit The answer was generic but heavily leaning to a corner origin. On second thoughts, the origin can be everywhere, the G-code test proves where it is. I have updated the answer to make that more explicit, this way it does not matter which firmware you have, through a test you determine where it is and adjust the slicer afterwards. Thanks for pointing out that different firmwares may treat the origin differently!
0scar
CC BY-SA 4.0
2019-10-26T10:16:19.733Z
2019-10-29T12:35:08.187Z
2019-10-29T12:35:08.187Z
0scar
<p>STL files contain an origin. However, this is totally ignored when generating G-code, the slicer chooses the origin based on settings. </p>

<p>G-code itself is a string of commands. One of these <code>G28</code> calls for the origin of the machine to be found by moving mechanically to this position. Usually, it is all formatted to take this or the power-up position as 0 and then moves relative to that. It always moves in reference to the last position, or this 0 (absolute mode).</p>

<p>.x3d is an XML type of file that describes a 3D model. It reformats G-code to be read by different types of machines. It too only moves with reference to the last position, taking the position on powerup as 0 to move against unless homed.</p>

<h2>Convention</h2>

<p>The convention for CNC is, that the front-top-left corner of the workpiece is to be <span class="math-container">$\{0;0;0\}$</span> as the origin for the <a href="https://en.wikipedia.org/wiki/Right-hand_rule" rel="nofollow noreferrer">right-hand-rule</a>. CNC then usually operates in a purely positive XY area and only works in negative Z, which is fitting for cutting. It doesn't preclude negative areas as to achieve cuts, going into the negative room is sometimes mandatory.</p>

<p>Taking this convention to 3D printing puts the front-left(-bottom) corner of the build plate (volume) to be the origin, because of the right-hand rule: The coordinate room is then strictly positive in XYZ (right as X, back for Y, up for Z), all absolute, strictly positive coordinates within the positive build volume can be moved to. However, instead of allowing negative coordinates, 3D printing does not allow any coordinates outside of the build volume that is ranged from 0 to the maxima set in the firmware.</p>

<p>This convention fails for Delta printers, which pretty much extrapolate the heights of the individual steppers via trigonometric calculations from cylinder coordinates <span class="math-container">$\{ r ; \phi ; z\}$</span> - radius, an angle of 0° to 360° and the Z-coordinate. In this coordinate room, math gets much easier putting 0 into the center of the build plate, which is circular; The transformation to cartesian coordinates is <span class="math-container">$\{ r \cos(\phi) ; r\sin(\phi) ; z\}$</span>; the inverse transformation from cartesian to cylinder coordinates is somewhat more complex and <a href="https://en.wikipedia.org/wiki/Polar_coordinate_system#Converting_between_polar_and_Cartesian_coordinates" rel="nofollow noreferrer">uses case differentiation.</a>.</p>

<h2>Error</h2>

<p>Let's say the build plate has dimensions <span class="math-container">$a$</span> and <span class="math-container">$b$</span> and the corner with the green clip is <span class="math-container">$\{0;0;0\}$</span>. The item is sliced to the position <span class="math-container">$\{a/2 ; b/2\}$</span> of the bed. It appears at <span class="math-container">$\{a ; b/2\}$</span> and <span class="math-container">$\{a/2 ; b\}$</span> respectively. This hints that the center of the bed is somehow taken as one of the coordinates.</p>

<p>If the corner without the clip is assumed as <span class="math-container">$\{0;0;0\}$</span>, then X should be to the right, Y to the front following the right-hand-rule. To see if the coordinates might be skewed, the following command snippet would be useful. Please execute them one by one.</p>

<pre><code>G28 ; home
G1 Z5 ; lift off the bed 5 mm to prevent accidental collisions
G1 X50 F500 ; move 50 mm to positive X - in case of back-right corner home this is to the LEFT
G1 Y50 F500 ; move to what ends up 50 50 5 - in case of back-right corner home this is to the FRONT
</code></pre>

<h3>Fixing</h3>

<p>The problem is <em>probably not</em> the slicer but most likely the firmware defining either the movement axis or the home wrong (either the wrong corner is chosen or the movement axis are defined incorrectly) on the printer. It seems to be totally messed up and should be reflashed with a fresh copy.</p>

<p>It would be a good chance to learn by taking a Blanco variant of marlin and adjusting it to the own printer by chucking in the dimensions into <code>configuration.h</code> and starting from there.</p>

CC BY-SA 4.0
2019-10-26T05:54:50.933Z
see update above. Any ideas on what’s going on?
zipzit
CC BY-SA 4.0
2019-10-26T12:15:07.340Z
@zipzit please home and make a photo of that position. 000 should be the corner with the green clip in picture 1. you seem to have "origin at the center" on, as the cube is sliced in the center of the print and moved half a build plate out in real
Trish
CC BY-SA 4.0
2019-10-26T12:51:40.650Z
Home position is the corner without a clip.  That first attempt displayed above is very close to home.  (in fact,when in home position the left hand output nozzle is right at the corner of the glass shown without clip.. that's why the clip has been removed...)  Note that position matches up with the X,Y,Z direction that includes microswitch stops in the hardware.  At this point, I'm debating replacing the firmware with Sailfish, per [this video](https://www.youtube.com/watch?v=2bcyDT4muss)  Oh, and Trish, thx for your update here.
zipzit
CC BY-SA 4.0
2019-10-26T16:51:46.707Z
@zipzit some update about how to test the setup and then a suggestion to start with a [08/15](https://en.wikipedia.org/wiki/MG_08#MG_08/15) blanco copy of marlin (08/15 used as the idiom)
Trish
CC BY-SA 4.0
2019-10-27T01:08:29.000Z
Not sure I'm following you on the whole Blanco and Machine gun stuff.  From what I can see my hardware is NOT compatible with Marlin, as released.  I see Makerbot and Flashforge stuff all over the Sailfish references, not a mention of those printers at all at Marlin.  Sailfish seems to be a variant created specifically for that hardware.  Blanco? I can't find a reference to that anywhere.  Idiom and wiki machine gun thing I don't understand what you are trying to say.
zipzit
CC BY-SA 4.0
2019-10-27T01:24:10.690Z
@zipzit blanco (spanish for blank) means "not specific" or "not filled in", the basic unsetup version before you fill in anything. like a blanco-check has no value that you don't fill in.
Trish
CC BY-SA 4.0
2019-10-24T08:55:01.173Z
2019-10-26T16:49:44.717Z
2019-10-26T16:49:44.717Z
Trish
<p>So it turns out there are elements from each of the previous answers that make sense here, but its not a clear picture.  I've spent a whole lot of time trying to make sense of this. I also upgraded my firmware to <a href="https://www.thingiverse.com/thing:32084" rel="nofollow noreferrer">Sailfish.</a>  </p>

<p>For the MakerBot Replicator (or FastForge Creator) family of 3d printers, the origin of the build plate is NOT at any of the corners, its right in the center of the build plate. Reference <a href="https://www.sailfishfirmware.com/doc/parameters-home-offsets.html#x20-630004.1" rel="nofollow noreferrer">here.</a> </p>

<blockquote>
  <p>4.1 Home Offsets:<br>
  By convention, <strong>the center of the build platform</strong> is assumed to be the point (0,0,0) in XYZ space. The X, Y, and Z <strong>home offsets</strong> tell the printer the location of the X, Y, and Z <strong>endstops</strong> in relation to the build platform’s center.</p>
</blockquote>

<p>Looks like this:</p>

<p><a href="https://i.sstatic.net/c2YlJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/c2YlJ.png" alt="Center of build plate is origin"></a></p>

<p>And it would appear that most other 3D printers are not using this convention. Sigh.   From my testing, the main control of print location is within the G-Code generated by the slicer.  The tool I was using, Slic3r does give one a chance to correct that
adjustment.  You have to go to top menu <code>Settings --&gt; Printer Settings --&gt; Size and Coordinates (Bed Shape) --&gt; Set</code> to get a nice popup visual tool.  See below.</p>

<p>Unfortunately the default setting is accurate for the overall bed size, but is a fail for the origin location on the bed.  The default origin is set at 0,0, in the corner.  Ouch. Big ouch.  The origin needs to be located right in the center of the build plate (to be consistent with the firmware controlling the print for this family of printers).  It <strong>should</strong> look like this:</p>

<p><a href="https://i.sstatic.net/iXV61.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/iXV61.png" alt="print bed origin setup"></a></p>

<p>Note, when you tell the printer to go to 'home' it doesn't go to origin (0,0,0) it goes to the endstops.  </p>

<pre><code> G68 X0 Y0 F500 ; Perform Homing Routine
</code></pre>

<p>So as long as you understand the quirks of these printers things will work out.  You have to ensure offsets are set accurately in firmware config files. (Replicator / Sailfish) And you have to indicate the correct center location to the slicer program.  I will say the advice given here was of some help in understanding this. Many thanks.  I'm posting here in case others using the Replicator or FastForge Creator series of printers is having troubles centering their prints on the build plate.   </p>

<p>Additional info for anybody using a MakerBot Replicator or Flashforge Creator series printer with Slic3r. I wanted to add my custom G-code stuff. The default Slic3r stuff definitely did not work.  </p>

<p>Printer Settings --> Custom G-Code --> Start G-Code</p>

<pre><code>M103 ; Turn all extruders off, Extruder Retraction
G21 ; set units to mm
G90 ; Use absolute coordinates
(**** begin homing ****)
G162 X Y F2500 ; home XY axes to maximum stops
G161 Z F1100 ; home Z axis to minimum stop
G92 Z-5 ; Set Position Z =-5mm
G1 Z0.0 ; move Z to "0"
G161 Z F100 ; home Z axis to minimum stop slowly
M132 X Y Z A B ; Recall stored home offsets for XYZAB axis
               ; Loads the axis offset of the current home position from the EEPROM and waits for the buffer to empty.
G90 ; Use absolute coordinates
G1 X0 Y0 Z50 F3300.0 ; move to waiting position near center of build plate
</code></pre>

<p>Printer Settings --> Custom G-Code --> End G-Code</p>

<pre><code>M109 S0 T0 ; Cool down the build platform
M104 S0 T0 ; Cool down the Right Extruder
M104 S0 T1 ; Cool down the Left Extruder
M73 P100 ; End  build progress
G0 Z150 ; Send Z axis to bottom of machine
M18 ; Disable steppers
G162 X Y F2500 ; Home XY endstops
M18 ; Disable stepper motors
M70 P30 ; We &lt;3 Making Things! Yipee, you made it...
; display message above for 30 seconds
M72 P1 ; Play Ta-Da song
</code></pre>

<p>One other thing I do with Slic3r.  I print a single loop of print on the periphery of a phantom skirt.  I do this as a printer head clean extrude exercise.  </p>

<p>Print Settings --> Skirt and Brim --> Skirt --> Loops (minimum): 1, Distance from object: 6mm, Skirt height: 1   This works well.  I do this in lieu of the G-code startup used in ReplicatorG software (which went to the lower left hand corner, and did this odd 4mm extrude exercise, with odd timing...)  The skirt thing works just fine.    </p>

CC BY-SA 4.0
2019-10-29T11:08:05.633Z
Nice to know Sailfish treats the origin differently then Marlin. Maybe you could add that the clone you are running is using Sailfish firmware, for Marlin it is in the corner. If you would have used Marin firmware, all other answers make sense. Nice to come back and post an answer! Much appreciated!
0scar
CC BY-SA 4.0
2019-10-29T12:54:48.973Z
Marlin uses the CNC definitions, which is the corner.
Trish
CC BY-SA 4.0
2019-10-29T14:35:00.163Z
Thanks for the detailed update. Glad you got it sorted.
Mick
CC BY-SA 4.0
2019-10-29T08:50:48.793Z
2019-11-08T17:56:59.713Z
2019-11-08T17:56:59.713Z
zipzit
<p>I'm working with an older MakerBot Replicator clone, actually a Flashforge Creator 1, with original Creator firmware.</p>
<ul>
<li>I'm able to design objects, using Solidworks, and exporting the file as xxx.stl (ascii)</li>
<li>Then I use Slic3r to generate tool paths with output as xxx.gcode</li>
<li>finally, I use <a href="https://markwal.github.io/GpxUi/" rel="nofollow noreferrer">GPX UI</a> to generate a xxx.x3g file.</li>
</ul>
<p>I don't understand where on the build plate the print starts.  Is that controlled by the 3d printer's firmware values, or something else in the chain from .stl --&gt; .gcode --&gt; x3g ??     Right now my prints start in the corner nearest 0,0.0, instead of in the middle of the build plate.</p>
<p>How do I control where to place the 3d print on the build plate?</p>
<p>edit: Apologies for the delay.  As a result of the answers posted here, I did a whole bunch more testing.  The initial response from @mick, seems to indicate that what you see in the Slicer preview is what you'll see on the print bed. That makes sense, but <strong>that is definitely not what I'm seeing</strong>.  I definitely don't see anywhere anything that remotely looks like a check the box [] center.  Here's what I do see:</p>
<p>When I drop the object into Slic3r, it goes to middle of build plate.</p>
<p><a href="https://i.sstatic.net/kNiWQ.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/kNiWQ.jpg" alt="Slicer Preview" /></a></p>
<p><a href="https://i.sstatic.net/JFgvU.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JFgvU.jpg" alt="Slic3r Settings" /></a></p>
<p><a href="https://i.sstatic.net/LLqrd.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/LLqrd.jpg" alt="GPX UI" /></a></p>
<p>Unfortunately here's what gets printed.</p>
<h1>Attempt #1, off in space</h1>
<p><a href="https://i.sstatic.net/IkzsV.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/IkzsV.jpg" alt="print fail #1" /></a></p>
<h1>Attempt #2, Right Hand Margin</h1>
<p><a href="https://i.sstatic.net/mJATD.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mJATD.jpg" alt="print fail #2" /></a></p>
<h1>Attempt #3, Near the front.</h1>
<p><a href="https://i.sstatic.net/v3aLM.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/v3aLM.jpg" alt="print #3" /></a></p>
<p>I tried moving the print head to center of build plate, thinking that might be a logical start point. No go.  Print start moves head to home (rear right corner of print bed) then after elements heat up to temp, it seems to select a random spot on the build plate to start.  I never touched the .x3g file between these attempts.  So I'm right back to where I started, per the title of this posting &quot;What determines print start location on the build plate?&quot;</p>

<slic3r><flashforge-creator>
What determines print start location on the build plate?
zipzit
# What determines print start location on the build plate?

(Asked by: username_0 on 2019-10-23)

I'm working with an older MakerBot Replicator clone, actually a Flashforge Creator 1, with original Creator firmware.

* I'm able to design objects, using Solidworks, and exporting the file as xxx.stl (ascii)
* Then I use Slic3r to generate tool paths with output as xxx.gcode
* finally, I use [GPX UI](https://markwal.github.io/GpxUi/) to generate a xxx.x3g file.

I don't understand where on the build plate the print starts. Is that controlled by the 3d printer's firmware values, or something else in the chain from .stl --> .gcode --> x3g ?? Right now my prints start in the corner nearest 0,0.0, instead of in the middle of the build plate.

How do I control where to place the 3d print on the build plate?

edit: Apologies for the delay. As a result of the answers posted here, I did a whole bunch more testing. The initial response from @mick, seems to indicate that what you see in the Slicer preview is what you'll see on the print bed. That makes sense, but **that is definitely not what I'm seeing**. I definitely don't see anywhere anything that remotely looks like a check the box [] center. Here's what I do see:

When I drop the object into Slic3r, it goes to middle of build plate.

[![Slicer Preview](https://i.sstatic.net/kNiWQ.jpg)](https://i.sstatic.net/kNiWQ.jpg)

[![Slic3r Settings](https://i.sstatic.net/JFgvU.jpg)](https://i.sstatic.net/JFgvU.jpg)

[![GPX UI](https://i.sstatic.net/LLqrd.jpg)](https://i.sstatic.net/LLqrd.jpg)

Unfortunately here's what gets printed.

# Attempt #1, off in space

[![print fail #1](https://i.sstatic.net/IkzsV.jpg)](https://i.sstatic.net/IkzsV.jpg)

# Attempt #2, Right Hand Margin

[![print fail #2](https://i.sstatic.net/mJATD.jpg)](https://i.sstatic.net/mJATD.jpg)

# Attempt #3, Near the front.

[![print #3](https://i.sstatic.net/v3aLM.jpg)](https://i.sstatic.net/v3aLM.jpg)

I tried moving the print head to center of build plate, thinking that might be a logical start point. No go. Print start moves head to home (rear right corner of print bed) then after elements heat up to temp, it seems to select a random spot on the build plate to start. I never touched the .x3g file between these attempts. So I'm right back to where I started, per the title of this posting "What determines print start location on the build plate?"

**Tags:** slic3r, flashforge-creator

---

## 4 answers

### Answer by username_0 on 2019-10-29. Score: 5 | Accepted answer

So it turns out there are elements from each of the previous answers that make sense here, but its not a clear picture.  I've spent a whole lot of time trying to make sense of this. I also upgraded my firmware to Sailfish. 
For the MakerBot Replicator (or FastForge Creator) family of 3d printers, the origin of the build plate is NOT at any of the corners, its right in the center of the build plate. Reference here. 

4.1 Home Offsets:
  By convention, the center of the build platform is assumed to be the point (0,0,0) in XYZ space. The X, Y, and Z home offsets tell the printer the location of the X, Y, and Z endstops in relation to the build platform’s center.

Looks like this:

And it would appear that most other 3D printers are not using this convention. Sigh.   From my testing, the main control of print location is within the G-Code generated by the slicer.  The tool I was using, Slic3r does give one a chance to correct that
adjustment.  You have to go to top menu Settings --> Printer Settings --> Size and Coordinates (Bed Shape) --> Set to get a nice popup visual tool.  See below.
Unfortunately the default setting is accurate for the overall bed size, but is a fail for the origin location on the bed.  The default origin is set at 0,0, in the corner.  Ouch. Big ouch.  The origin needs to be located right in the center of the build plate (to be consistent with the firmware controlling the print for this family of printers).  It should look like this:

Note, when you tell the printer to go to 'home' it doesn't go to origin (0,0,0) it goes to the endstops.  
 G68 X0 Y0 F500 ; Perform Homing Routine

So as long as you understand the quirks of these printers things will work out.  You have to ensure offsets are set accurately in firmware config files. (Replicator / Sailfish) And you have to indicate the correct center location to the slicer program.  I will say the advice given here was of some help in understanding this. Many thanks.  I'm posting here in case others using the Replicator or FastForge Creator series of printers is having troubles centering their prints on the build plate.   
Additional info for anybody using a MakerBot Replicator or Flashforge Creator series printer with Slic3r. I wanted to add my custom G-code stuff. The default Slic3r stuff definitely did not work.  
Printer Settings --> Custom G-Code --> Start G-Code
M103 ; Turn all extruders off, Extruder Retraction
G21 ; set units to mm
G90 ; Use absolute coordinates
(**** begin homing ****)
G162 X Y F2500 ; home XY axes to maximum stops
G161 Z F1100 ; home Z axis to minimum stop
G92 Z-5 ; Set Position Z =-5mm
G1 Z0.0 ; move Z to "0"
G161 Z F100 ; home Z axis to minimum stop slowly
M132 X Y Z A B ; Recall stored home offsets for XYZAB axis
               ; Loads the axis offset of the current home position from the EEPROM and waits for the buffer to empty.
G90 ; Use absolute coordinates
G1 X0 Y0 Z50 F3300.0 ; move to waiting position near center of build plate

Printer Settings --> Custom G-Code --> End G-Code
M109 S0 T0 ; Cool down the build platform
M104 S0 T0 ; Cool down the Right Extruder
M104 S0 T1 ; Cool down the Left Extruder
M73 P100 ; End  build progress
G0 Z150 ; Send Z axis to bottom of machine
M18 ; Disable steppers
G162 X Y F2500 ; Home XY endstops
M18 ; Disable stepper motors
M70 P30 ; We <3 Making Things! Yipee, you made it...
; display message above for 30 seconds
M72 P1 ; Play Ta-Da song

One other thing I do with Slic3r.  I print a single loop of print on the periphery of a phantom skirt.  I do this as a printer head clean extrude exercise.  
Print Settings --> Skirt and Brim --> Skirt --> Loops (minimum): 1, Distance from object: 6mm, Skirt height: 1   This works well.  I do this in lieu of the G-code startup used in ReplicatorG software (which went to the lower left hand corner, and did this odd 4mm extrude exercise, with odd timing...)  The skirt thing works just fine.

> **Comments:**
> **username_2**: Nice to know Sailfish treats the origin differently then Marlin. Maybe you could add that the clone you are running is using Sailfish firmware, for Marlin it is in the corner. If you would have used Marin firmware, all other answers make sense. Nice to come back and post an answer! Much appreciated!  
> **username_3**: Marlin uses the CNC definitions, which is the corner.  
> **username_1**: Thanks for the detailed update. Glad you got it sorted.  

---

### Answer by username_1 on 2019-10-23. Score: 3

It sounds like you have "Origin at center" checked in your slicer's printer definition. That is generally only used with delta printers. Most Cartesian printers have the origin at the front-left corner of the build plate. Uncheck "Origin at center" and re-slice.

Providing that you have set up your slicer with the build plate dimensions and origin correctly defined, your models will be printed where the slicer shows them in the preview. You can rearrange the models before you slice, of course.

> **Comments:**
> **username_0**: Not sure you addressed the questions I asked. Revision?  
> **username_1**: @zipzit I was going to post a comment asking you if you had the origin set at the center of the build plate. That is the usual reason for getting prints at the corner of a build plate.  
> **username_0**: see update above. Any ideas on what’s going on?  Thx.  

---

### Answer by username_2 on 2019-10-26. Score: 2

First of all, the firmware determines where your origin of the printer is. This implies that you need to properly set bed dimensions and offset values from the end stop switches in the firmware (usually not necessary out-of-the-box, but important when a newer or different firmware version is uploaded). These offsets determine where the origin of the bed plate is located. For Marlin firmware it is very common to have the origin specified at the front left corner (when facing the printer). From the configuration of Marlin we find that by definition the origin is in the front-left corner (note that this can be rotated 180 degrees in certain printers, so the aft-right):

 *      +-- BACK ---+
 *      |           |
 *    L |    (+) P  | R
 *    E |           | I
 *    F | (-) N (+) | G
 *    T |           | H
 *      |    (-)    | T
 *      |           |
 *      O-- FRONT --+
 *    (0,0)

How do I find the physical origin of the printer?
This can be tested by instructing the head/nozzle to go to e.g. (0, 0, 15) using a terminal/console or a simple G-code file with a move to that coordinate that you print from SD card (e.g. G1 X0 Y0 Z15 F500); note a Z of 15 is chosen for safety!. When this is performed, the nozzle should be at the (elevated, so X, Y) origin as defined by your firmware. Usually this is at the left front corner of your build plate (there may be clips there, so therefore the elevated value), but this may be different depending on the firmware settings or firmware brand.
Next step is to configure the slicer as such that this coincides with the actual origin. Incorrect slicer settings can cause the slicer to assume the origin is at a different position than your actual position. In Ultimaker Cura, the "Origin at center" is notoriously known for this when the physical origin is not in the center, but in a corner.

> **Comments:**
> **username_0**: Any comment on the randomization factor? As far as I know there are no random number generators in Gcode. That points me to printer firmware. Does any machine print in random locations by default? (I guess that would be 'conserve your hairspray' setting :^)  
> **username_2**: @zipzit The answer was generic but heavily leaning to a corner origin. On second thoughts, the origin can be everywhere, the G-code test proves where it is. I have updated the answer to make that more explicit, this way it does not matter which firmware you have, through a test you determine where it is and adjust the slicer afterwards. Thanks for pointing out that different firmwares may treat the origin differently!  

---

### Answer by username_3 on 2019-10-24. Score: 2

STL files contain an origin. However, this is totally ignored when generating G-code, the slicer chooses the origin based on settings. 
G-code itself is a string of commands. One of these G28 calls for the origin of the machine to be found by moving mechanically to this position. Usually, it is all formatted to take this or the power-up position as 0 and then moves relative to that. It always moves in reference to the last position, or this 0 (absolute mode).
.x3d is an XML type of file that describes a 3D model. It reformats G-code to be read by different types of machines. It too only moves with reference to the last position, taking the position on powerup as 0 to move against unless homed.
Convention
The convention for CNC is, that the front-top-left corner of the workpiece is to be $\{0;0;0\}$ as the origin for the right-hand-rule. CNC then usually operates in a purely positive XY area and only works in negative Z, which is fitting for cutting. It doesn't preclude negative areas as to achieve cuts, going into the negative room is sometimes mandatory.
Taking this convention to 3D printing puts the front-left(-bottom) corner of the build plate (volume) to be the origin, because of the right-hand rule: The coordinate room is then strictly positive in XYZ (right as X, back for Y, up for Z), all absolute, strictly positive coordinates within the positive build volume can be moved to. However, instead of allowing negative coordinates, 3D printing does not allow any coordinates outside of the build volume that is ranged from 0 to the maxima set in the firmware.
This convention fails for Delta printers, which pretty much extrapolate the heights of the individual steppers via trigonometric calculations from cylinder coordinates $\{ r ; \phi ; z\}$ - radius, an angle of 0° to 360° and the Z-coordinate. In this coordinate room, math gets much easier putting 0 into the center of the build plate, which is circular; The transformation to cartesian coordinates is $\{ r \cos(\phi) ; r\sin(\phi) ; z\}$; the inverse transformation from cartesian to cylinder coordinates is somewhat more complex and uses case differentiation..
Error
Let's say the build plate has dimensions $a$ and $b$ and the corner with the green clip is $\{0;0;0\}$. The item is sliced to the position $\{a/2 ; b/2\}$ of the bed. It appears at $\{a ; b/2\}$ and $\{a/2 ; b\}$ respectively. This hints that the center of the bed is somehow taken as one of the coordinates.
If the corner without the clip is assumed as $\{0;0;0\}$, then X should be to the right, Y to the front following the right-hand-rule. To see if the coordinates might be skewed, the following command snippet would be useful. Please execute them one by one.
G28 ; home
G1 Z5 ; lift off the bed 5 mm to prevent accidental collisions
G1 X50 F500 ; move 50 mm to positive X - in case of back-right corner home this is to the LEFT
G1 Y50 F500 ; move to what ends up 50 50 5 - in case of back-right corner home this is to the FRONT

Fixing
The problem is probably not the slicer but most likely the firmware defining either the movement axis or the home wrong (either the wrong corner is chosen or the movement axis are defined incorrectly) on the printer. It seems to be totally messed up and should be reflashed with a fresh copy.
It would be a good chance to learn by taking a Blanco variant of marlin and adjusting it to the own printer by chucking in the dimensions into configuration.h and starting from there.

> **Comments:**
> **username_0**: see update above. Any ideas on what’s going on?  
> **username_3**: @zipzit please home and make a photo of that position. 000 should be the corner with the green clip in picture 1. you seem to have "origin at the center" on, as the cube is sliced in the center of the print and moved half a build plate out in real  
> **username_0**: Home position is the corner without a clip.  That first attempt displayed above is very close to home.  (in fact,when in home position the left hand output nozzle is right at the corner of the glass shown without clip.. that's why the clip has been removed...)  Note that position matches up with the X,Y,Z direction that includes microswitch stops in the hardware.  At this point, I'm debating replacing the firmware with Sailfish, per [this video](https://www.youtube.com/watch?v=2bcyDT4muss)  Oh, and Trish, thx for your update here.  
> **username_3**: @zipzit some update about how to test the setup and then a suggestion to start with a [08/15](https://en.wikipedia.org/wiki/MG_08#MG_08/15) blanco copy of marlin (08/15 used as the idiom)  
> **username_0**: Not sure I'm following you on the whole Blanco and Machine gun stuff.  From what I can see my hardware is NOT compatible with Marlin, as released.  I see Makerbot and Flashforge stuff all over the Sailfish references, not a mention of those printers at all at Marlin.  Sailfish seems to be a variant created specifically for that hardware.  Blanco? I can't find a reference to that anywhere.  Idiom and wiki machine gun thing I don't understand what you are trying to say.  
> **username_3**: @zipzit blanco (spanish for blank) means "not specific" or "not filled in", the basic unsetup version before you fill in anything. like a blanco-check has no value that you don't fill in.  

---

