makerbase-mks / MKS-SGEN_L-V2

MKS SGEN_L V2.0 is powerful 32-bit 3D printer control board. The CPU is LPC1769 120MHZ, SGEN_L V2 hardware Integrated 4KB EEPROM, 5AXIS and dual Z interface, has 2 way FANs and Dc12/24V out interface, support TMC UART and SPI mode...
https://www.aliexpress.com/item/4001283346331.html?spm=a2g0o.store_home.slider_165457030.0
GNU General Public License v3.0
70 stars 28 forks source link

Marlin config probs for MKS_PWC #54

Closed ILGROSSOFA closed 3 years ago

ILGROSSOFA commented 3 years ago

Dear Sirs, you write to modify Configuration.h as follows:

Enable #define PSU_CONTROL Set #define PSU_ACTIVE_HIGH true

But the line Set #define PSU_ACTIVE_HIGH true doesn't exist in Marlin-bugfix-2.0.x.

There is written as follows: #define PSU_ACTIVE_STATE LOW // Set 'LOW' for ATX, 'HIGH' for X-Box

What should I do?

Thanks in davnce, Best regards GROSSO

mks-viva commented 3 years ago

Which version of firmware do you use?

mks-viva commented 3 years ago

The latest version marlin firmware, you can set #define PSU_ACTIVE_STATE HIGH and add it to pins_MKS_SGEN_L_V2.h file

#if ENABLED(PSU_CONTROL)
#ifndef PS_ON_PIN
  #define PS_ON_PIN         P1_23    //PW_OFF, you can change it to other pin
#endif
#ifndef KILL_PIN
  #define KILL_PIN          P1_28    //PW_DET, you can change it to other pin
#endif
#define KILL_PIN_INVERTING  true     //true : HIGH level trigger
#endif