I assume this pin is just pulled high or low depending on the state needed, based on that I'm thinking I could use it to control a Relay board that switches the 12/24V LED style supply on/off as long as I have a separate 5V supply to keep the board powered when the 12/24V supply is off.
I could then use a M42 and some other unused pin to control the lights on the printer.