On 8/16/2013 9:15 AM, Troy Jacobson wrote:
> Hi,
> I've started a Python module to control heaters for extruders and build
> platforms.  Right now, it does two things:
> 1) Bypasses the PID controller during the initial heating period.  When the
> heater temperature is below the set temperature by some value
> (configurable), a constant value (configurable) will be sent to the PWM
> controller.  When the heater temperature is within range, the PID
> controller will be enabled and its output is forwarded to the PWM.
> 2) Monitors the heater temperature, and when it is within a range
> (configurable) of the set temperature for a period of time (configurable),
> it will set a bit indicating that the heater is ready.  This bit is used by
> the "set temp and wait" M codes.
> 
> What I want to do next is add some fault protection.  Here are my ideas.
>  Comments welcome.
> 1) When the machine power is off, set the PWM output to 0.  The set
> temperature will probably remain set where it is.

Provide an enable bit as an input to your module, and it can be wired to
the axis enable or machine power signals in HAL.

> 2) The Marlin firmware has code to prevent cold extrusion.  I am thinking
> about adding something similar with an extruder disable/enable pin.  This
> pin would also be used to disable the extruder if a fault is detected.
>  What happens if a motion command is sent to a motor that is disabled?

I _think_ this is "spindle hold" in "conventional" LinuxCNC usage, where
you don't want to start moving until the spindle is up to cutting speed.
 Can anyone point to an overview of how to use the spindle signals in
HAL, and/or comments on if this would be applicable to use to prevent
motion on *SOME* axis (ie: the extruder) but not others (ie: X, Y, Z)?

Is there maybe something else that would work better?

-- 
Charles Steinkuehler
[email protected]

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to