EstlCAM Arduino Spindel Question

I’m using 11.245 with an Arduino running grbl 1.1. I have a new engraver project that uses a pneumatic cylinder for z-axis position. The cylinder is controlled by a 24vdc solenoid valve, power to move cutter into workpiece. Will Estlcam be able to control a relay to operate the solenoid valve? I need to have the solenoid powered while the spindle is cutting, but powered off/retracted when moving between positions. Can EstlCAM be configured to do this, and which Arduino pin would control the relay?