Power supply from 12V or 24V DC at a constant current