M291 R"Attention!" P"Pay attention to the sound of the relay.
You have to hear one click per sec.
Push X or U endstop to stop testing." S2
while !sensors.endstops[0].triggered && !sensors.endstops[3].triggered
M42 P4 S1
G4 S1
M42 P4 S0
G4 S1
M291 R"Did you hear the relay clicking?" P"Please click ""Ok"" if you heard." S3
if input == 1
abort "Error: Relay is not working, please replace it."
M291 R"Attention!" P"Use a 1 m wire: connect one end to the Duex negative terminal, and touch the other to the relay terminal and the probe. A green light means success. Press X or U to exit." S2
M42 P4 S1
while !sensors.endstops[0].triggered && !sensors.endstops[3].triggered
M106 P6 S1
M42 P2 S0
while sensors.probes[1].value[0] == {1000}
M106 P6 S0
M42 P2 S1
G4 P100
M42 P4 S0
M98 P"0:/sys/essential/leds/resume.g"