GNUOCtave Script GCode->PlanB

For any Plan B specific topics
Post Reply
Posts: 5
Joined: Fri Dec 11, 2020 1:59 pm

GNUOCtave Script GCode->PlanB

Post by crisiM »

I used 3d Slicer for slicing a random *.stl file into a stack of *.tiff images. I used GNUOctave for writing a little script (about 30 rows) for creating the PlanB GCode. But now i need a workaround for using just one feedpiston. I do not want to edit the PlanB Firmware. Does anybody have a simple solution? I tried to add a dummy layer, but i did not work.
User avatar
Site Admin
Posts: 522
Joined: Fri Aug 14, 2015 4:48 pm
Location: The Nethelands

Re: GNUOCtave Script GCode->PlanB

Post by dragonator »

The double feed piston is pretty much hardcoded into Plan B. It is not individual lines of Gcode moving each piston. If I recall correctly the printer adds a layer when it detects a Z change in the positive direction.

In the firmware the movement of the pistons is handles in movements, in the function New_layer. Here the variable "Spreader_position" manages behaviour. There are several while loops with "New_layer_ident". These handle the movement of all stepper motors directly. If you make it so that it resets the position of the spreader to your starting position (by adding a while block moving the spreader back) you can keep Spreader_position constant and it will do the same on every layer.

I am sorry I have no better solution, and I hope this helps. I am still not really a programmer I am afraid and back then I was even less so.
Post Reply