Welcome! Log In Create A New Profile

Advanced

PSU_CONTROL

Posted by hubsy 
PSU_CONTROL
March 08, 2021 06:49AM
Hi Guys,
Marlin v2 bugfix
Tronxy X5S

Using v1.9 I can control the power supply, Comes on when stepper running, Shuts down after 30s when idle.

I can't get it to do the with v2. Tried different combinations, different pins 66/44/9. for 'PS_ON' 66&44 go to to interface pcb.

Any thoughts.


Quote

#define PSU_CONTROL
#define PSU_NAME "Power Supply"

#if ENABLED(PSU_CONTROL)
#define PSU_ACTIVE_STATE HIGH // Set 'LOW' for ATX, 'HIGH' for X-Box

//#define PSU_DEFAULT_OFF // Keep power off until enabled directly with M80
//#define PSU_POWERUP_DELAY 250 // (ms) Delay for the PSU to warm up to full power

//#define PSU_POWERUP_GCODE "M355 S1" // G-code to run after power-on (e.g., case light on)
//#define PSU_POWEROFF_GCODE "M355 S0" // G-code to run before power-off (e.g., case light off)

#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin
#if ENABLED(AUTO_POWER_CONTROL)
#define AUTO_POWER_FANS // Turn on PSU if fans need power
//#define AUTO_POWER_E_FANS
//#define AUTO_POWER_CONTROLLERFAN
//#define AUTO_POWER_CHAMBER_FAN
//#define AUTO_POWER_E_TEMP 50 // (°C) Turn on PSU if any extruder is over this temperature
//#define AUTO_POWER_CHAMBER_TEMP 30 // (°C) Turn on PSU if the chamber is over this temperature
#define POWER_TIMEOUT 30 // (s) Turn off power if the machine is idle for this duration
//#define POWER_OFF_DELAY 60 // (s) Delay of poweroff after M81 command. Useful to let fans run for extra time.
#endif
#endif
Re: PSU_CONTROL
March 09, 2021 03:05AM
found setting in MKS GEN 14 file...
Sorry, only registered users may post in this forum.

Click here to login