|
Re: Programming Pneumatics
Search is your friend ... many threads about this ...
Your explanation is a little "off" ... I hope that in actuality, you are hooking up both an INPUT to DIO-1 from the pressure shut-off switch, and an OUTPUT to Relay-1 (the Spike)
The compressor example has everything you need, and a great diagram on the front panel on the details of wiring it up. Copy the OPEN and REF and START stuff from the example's block diagram into your begin VI. Nothing in teleop. It spawns a task that takes care of turning it on/off.
PS: It only operates while the 'bot is ENABLED.
|