#How do I get the name fo my runout sensor
1 messages · Page 1 of 1 (latest)
Ahoi @magic ether!
Welcome to the Mainsail support-forum!
There is a problem with the tags you selected for this post. Please fix them to fit your question.
For further information on tags please check the readme: #readme message
To change the tags of this post:
- Open the
...menu on the top right corner of this post. - Find
Edit tags - Select the checkbox of the correct tags.
Usually you just need to select one tag!
If you still have no idea which one to choose, feel free to ask here.
Note: This is an automated message
Thanks for your cooperation!
Ahoi @magic ether!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message
Use the name the sensor has in the klipper config, i.e. SENSOR=Filament_Runout_Sensor or simmilar
You defined it in your config
Be aware you need everything in the []
So e.g. [filament_motion_sensor this_is_my_runout_sensor_name] detection_length: 7.0 extruder: extruder pause_on_runout: FALSE runout_gcode: {action_respond_info("RUNOUT: Filament runout")} PAUSE insert_gcode: {action_respond_info("RUNOUT: Filament inserted")}
You would use it like SET_FILAMENT_SENSOR SENSOR=this_is_my_runout_sensor_name ENABLE=1 in the gcode
But if you use it in the printer. Variable you need to use printer["filament_motion_sensor this_is_my_ronout_sensor_name"].filament_detected to get the detection state
so, i only want to diable it temporarily using a macro.
would the following macros work? I could just test it, but i would like to make sure first:
Btw, ignore the M412 command, it doesnt work
`############################################
Enables the Filament runout sensor
############################################
[gcode_macro ENABLE_RUNOUT_SENSOR]
gcode:
#M412 S1
SET_FILAMENT_SENSOR SENSOR=Filament_Runout_Sensor ENABLE=[1]
############################################
Disables the Filament runout sensor
############################################
[gcode_macro DISABLE_RUNOUT_SENSOR]
gcode:
#M412 S0
SET_FILAMENT_SENSOR SENSOR=Filament_Runout_Sensor ENABLE=[0]`
Nope see my sample it must be =1 and =0 no brackets