Component: 3D Printer (Simulation)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd
Version 1.4 (Release)
Category Simulation


Image 3D Printer component

A simulation only version of a very basic 3D printer such as a standard RepRap.

This component can be used as a base to create child components

Image The component G Code Parser is inherited from this.

Examples

3D Print Using Standard 3D Printer CAD file

A simulated 3D print using an external G code file from an actual 3D printer. The G code file must be placed into the same directory as the Flowcode project to work correctly. FC6 Icon.png G-Code_Parser File:Batman.G

Print1.jpg


3D Maze Generator

A simple 3D maze generator using the 3D printer component to draw the maze. FC6 Icon.png Maze_Builder_3DP Print2.jpg

Downloadable macro reference

This component does not contain any downloadable macros

Simulation macro reference

ClearPrevPrint

Clears all of the content from any previous print cycles.

Parameters

This macro has no parameters


Return value

This call does not return a value


ControlPrintHead

Controls the print extruder which plots the location of the print head as the head moves.

If Enable = 0 then the extruder is disabled

If Enable != 0 then the extruder is enabled

Parameters

BYTE Enable
Controls if the extruder is active or not


Return value

This call does not return a value


MoveByXYZ

Moves the print head by the amount specified in the axis variables using linear interpolation.

Parameters

INT X
INT Y
INT Z


Return value

This call does not return a value


SetMovementSpeed

Allows the movement speed to be set progmatically.

Range 0 - 100

Parameters

BYTE Speed
Speed control (0 - 100)


Return value

This call does not return a value


MoveToHome

Returns the print head to the start position (0,0,0)

Parameters

This macro has no parameters


Return value

This call does not return a value


MoveToXYZ

Moves the print head to the specific location specified in the axis variables using linear interpolation.

Parameters

UINT X
UINT Y
UINT Z


Return value

This call does not return a value


MoveByXYZReal

Moves the print head by the amount specified in the axis variables using linear interpolation.

Parameters

FLOAT X
FLOAT Y
FLOAT Z


Return value

This call does not return a value


SetMovementSpeedReal

Allows the movement speed to be set progmatically.

Range 0.0 - 100.0

Parameters

FLOAT Speed
Speed control (0 - 100)


Return value

This call does not return a value


MoveToXYZReal

Moves the print head to the specific location specified in the axis variables using linear interpolation.

Parameters

FLOAT X
FLOAT Y
FLOAT Z


Return value

This call does not return a value


Initialise

Sets up the 3D printer component by homing, clearing old print data and assigning the movement speed.

Parameters

This macro has no parameters


Return value

This call does not return a value



Property reference

Bed Colour

This property is of type Color picker and can be referenced with the variable name Col_Bed.

Specifies the colour of the print bed.

Print Colour

This property is of type Color picker and can be referenced with the variable name Col_Print.

Specifies the colour of the print output.

Print Speed (0-100)

This property is of type Signed integer and can be referenced with the variable name print_speed.

Specifies the speed of the printer movements.

100 = as fast as possible.

Print Type

This property is of type Fixed list of ints and can be referenced with the variable name PrintType.

Specifies how the print is drawn.

Object based - uses panel primitives to build up the 3D object, useful for simulated interaction e.g. the formula flowcode and the maze solving example.

Point cloud based - uses the point cloud interface to allow complex objects to be built without slowing down the panel interface.

Print Size

This property is of type Floating point and can be referenced with the variable name print_size.

Specifies the size of a single print object.

Print Shape

This property is of type Fixed list of text and can be referenced with the variable name Shape.

Specifies the shape of the print object.

X Width

This property is of type Signed integer and can be referenced with the variable name X_Width.

Printer dimensions X axis

Y Length

This property is of type Signed integer and can be referenced with the variable name Y_Length.

Printer dimensions Y axis

Z Height

This property is of type Signed integer and can be referenced with the variable name Z_Height.

Printer dimensions Z axis