The latest 1.2 version of the stepper motor wiring

The new design is to use four stepper motors, Y axis of the two motors are connected to RAMPS Shield board which two interfaces?

Thank you.

Only to see three motor definition.

Now inside the program is to detect the start position with the trip switch?
Does the program with the encoder release?

thank you very much!