I have an example
here for a push button solenoid and the rest of the required pneumatic system.
Here is a relay example for when you have a motor driven by a Spike. This does forward and reverse, but you can change "reverse" to "off" if you like.
Did you want a motor example that uses a speed controller?
I don't know what "the magnetic digital input for the pneumatic" means...