You could use a different MCodes for each spindle solenoid - would need an on and off code for each. Might require some special programming...
Is there the ability to pass a P value with an Mcode, That would allow a numerical value with the different bits in the number mapping to a solenoid output. MWhatever with a numerica value of 26 (binary 0001 1010, 16+6+2, solenoid 2,4,5) would turn on those solenoids and MWhatever with a value of 0 would turn them all off. Some coding in LUA?
Is there a way to capture data out of a comment in the code? Like the above - some coding in LUA.
Communication with a modbus device for the actual I/O.