Comments (2)
For now I'm using this method, I set the material type as the ID number of the spool instead of setting PLA etc.
Then in ercf_software.cfg
[gcode_macro _ERCF_ACTION_CHANGED]
description: Called when an action has changed.
gcode:
# This occurs when the ERCF action status changes. `printer.ercf.action` will contain
# the current action string. See Happy Hare README for full list
#
# This could be a place to set LED status or similar. The logic here
# demonstrates the three major action states
{% set ACTION = printer.ercf.action|string %}
{% if ACTION|string == "Idle" %}
# Add your logic here
# _STATUS_STANDBY
{% if printer.ercf.tool|int > -1 %}
#if material loaded is a number, then it should be a Spoolman ID
{% if printer.ercf.material|int > 0 %}
#if material loaded is a number, then it should be a Spoolman ID
{% if printer.ercf.filament == "Loaded" %}
{% set id = printer.ercf.material|int %}
#set the spool ID
{action_call_remote_method("spoolman_set_active_spool",spool_id=id)}
{% else %}
#clear spool ID as filament is not loaded
{action_call_remote_method("spoolman_set_active_spool",spool_id=None)}
{% endif %}
#clear spool ID as it's invalid
{% else %}
{action_call_remote_method("spoolman_set_active_spool",spool_id=None)}
{% endif %}
{% endif %}
{% endif %}
{% if ACTION|string == "Loading" %}
# Add your logic here
# _STATUS_LOADING
{% endif %}
{% if ACTION|string == "Unloading" %}
# Add your logic here
# _STATUS_UNLOADING
{action_call_remote_method("spoolman_set_active_spool",spool_id=None)}
{% endif %}
For now it's working quite well
from ercf-software-v3.
Thanks. This is on the intended feature list for Happy Hare v2. Soon....
from ercf-software-v3.
Related Issues (20)
- Stallguard homing position? HOT 2
- Extruder doesn't heat up when switching filaments after print HOT 1
- Sensorless homing (selector) and travel delta when moving. HOT 3
- Sync extrusion problem: the gear motor current setting seemed do not work reliably HOT 1
- Multiple Klipper Installations on One Pi HOT 8
- Moonraker.conf Creates INVALID HOT 6
- Fatal error when changing extruder HOT 4
- The value 'encoder_sensor' is not valid for SENSOR HOT 1
- Feature Request - Add support for Mellow Fly ERCF Can board HOT 1
- Feature Request(?): Is it possible to have two klipper instances HOT 2
- Latches HOT 1
- Fwature Request: Retry on load failure HOT 2
- Misleading line comments HOT 1
- Feature Request: change endless spool mechanism HOT 5
- False trigger of "gate empty" HOT 3
- Resume Temperature Issue HOT 6
- MCU 'ercf' shutdown: Timer too close HOT 3
- Feature request: Allow using extruder gears as filament sensor HOT 2
- variable mmu diseapear after update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ercf-software-v3.