Hierarchical Carstesian Machine

  • Hi,

    I am writing here looking for tips on how to handle this best.

    But let me explain first what I want to achieve under this perhaps obscure name. Think of any regular cartesian printer and now imagine that your limited X and Y axis happen in a moving frame (red box in the image below). If that frame is located at (0,0) your printhead can reach up to (XM, YM). But your machine has two additional axes (let's call them A & B) that allow you to move the frame to another place, for example to (XM,0) so now the print head could reach from that point up to (2*XM,YM). The basic "small" frame (red box) can be "translated" so it can cover a much larger surface.


    My question here is how something like this would be better handled with the Duet. Let us assume that what we are going to do is to create a lattice of copies of the same part, so each layer at any new location is the same as before.

    I am thinking to create two nested loops to move the red frame to each one of the 16 different locations for the code of each layer. Something like:

    for x in range(3):
        for y in range(3):
            G1 A(x*XM) B(y*YM)
            G28 XY
            all the code of that layer ...

    It does not exactly follow the purple arrow but that's not important.

    Thanks a lot,


Log in to reply