I would just focus on the one input and one output.
one output to turn the penumatics enclosure on (likely be 2 commands), and one input for the motor to tell the controller that its opened or closed (pick your poison) then have it report if its not in an optimal configuration.
The only way I see it even being possible is if you were to load up 4 tool locations, and tell it to go to them sequentially. start off with 1, do its thing, come back drop off 1 pick up 2, do its thing, drop of 2 pick up 3, do its thing, drop off 3 pick up 4.
Anything more than that you’re again trying to get a square peg into a round hole, but even the above is a tall order, but I’m sure its possible in the post processor. then again maybe not because you would need to dictate the different motions. I’m pretty sure it’s not possible with variables at least since you’re talking about different locations. Thats assuming you keep the carbide controller. Masso has this functionality built in, and I only need to tell it what tool is in what slot, and that slot is located “here”, as well as minimum/maximum clearances, and direction of travel.
Why couldn’t you use a rotary with shapeoko? Will need a new (different motor) but I don’t see a reason you couldn’t, now you would have to disconnect a motor from the board to use it, but I don’t know what design software you use. Vectric can only do 3 axis anyways so my Y axis didn’t move at all when carving these. It does it by wrapping the design around the X or Y axis. Vectric is not very strong when it comes to rotary work though.
If you only want 0, 90, 180, and 270… check this out.