The 24V input from industrial batteries or PSUs is notoriously dirty. The new schematic shows:
(PolySwitch). You can find compatible components at electronic retailers such as , or specialized laptop repair sites like Industrial Parts R Us
Identify zener diode in 24v solenoid buffer circuit? - Facebook
IM-T-11A | Products for Industrial Automation - Banner Engineering