@laptrinh1986 DLC32 uses an I/O expander so it's not a direct correlation to an ESP32 pin. Instead the ESP32 sends (I2C I think) commands to the expander to control the step controller. You can find schematics but you'll have to dig into the code to be able to control them directly.
I had started to decode their I/O mapping because I wanted to use their off the shelf boards as general-purpose controllers, but it was taking too long so I just designed my own. I think I stopped after I was able to blink an LED. And it took days to get to that point.
That said, if all you need to do is control steppers, why not just use gcode? It is a stepper controller after all...
MKS DLC32 V2.1_001 SCH.pdf (409.7 KB)
On this Schematic , QA15 = XYZ_eN
QB1 = X_Step
QC2 = X_Dir
QD3 = Z_Step
.......
So i want to know QA15, QB1, QC2 can be converted to digital Pin ?