Programming Single-Acting Pneumatic Cylinders

How can I program a single acting pneumatic cylinder to only go out for a specified time and then come back in. Our team needs this function and we do not want to pay for double acting. Thanks!

You would write something similar to this.


    // activate pneumatics
    SensorValue dgtl1 ] = 1;
    // wait for 1 second
    wait1Msec( 1000 );
    // deactivate pneumatics
    SensorValue dgtl1 ] = 0;

Once deactivated, the single acting cylinder should return, it has a spring that causes that action.