This document is completely theoretical at this point in time!
Extruder Controller SNAP Protocol Version 1
This is the second version of the thermoplastic extruder protocol. It accepts various commands relating to controlling a single thermoplastic extruder.
API
The following commands are in addition to the globally required commands on the main modules page.
Is Empty?
Parameters:
- 1 byte status (0=full, 1=empty)
Returns:
Set heat
Parameters:
- 1 byte low heat (pwm)
- 1 byte high heat (pwm)
- 2 byte target temp (celsius)
- 2 byte max temp (celsius)
Returns:
Get temperature
Parameters
Returns:
Set cooler
Parameters
Returns:
Free Motor
Parameters:
Returns:
Motion control ideas:
we need to figure out how we want to do motor control in the next version of the protocol. should we use the 'blind' method of a normal DC motor, or should we use something with more precise positioning information like a stepper or servo?
motion control #1 (dc motor):
Move Forward
Parameters:
Returns:
Move Backward
Parameters:
Returns:
motion control #2 (stepper/servo):
Set Speed
Parameters:
Returns:
Get Speed
Parameters:
Returns:
Set Position
Parameters:
Returns:
Get position
Parameters:
Returns:
Set Target
Parameters:
Returns:
Get Target
Parameters:
Returns:
to top