Hi Ed,
For your G540, you will need to break out your DB25(Parallel port) and connect the following pin wires to the following connectors.
X Axis
DB25 Pin 2 → M31 MTR0 S+
DB25 Pin 3 → M31 MTR0 D+
Y Axis
DB25 Pin 4 → M31 MTR1 S+
DB25 Pin 5 → M31 MTR1 D+
Z Axis
DB25 Pin 6 → M31 MTR2 S+
DB25 Pin 7 → M31 MTR2 D+
A Axis
DB25 Pin 8 → M31 MTR3 S+
DB25 Pin 9 → M31 MTR3 D+
Below is your manual for reference:
https://www.geckodrive.com/wp-content/uploads/2023/04/G540-MANUAL-REV8.pdfYou can use a Ohm meter to test continuity on your pins if needed to find which wire is which pin.
Alternatively, they make DB25 Breakout Boards.
Thanks,
Paul