Pneumatics#

Introduction#

The VEX IQ Brain can control the VEX IQ Pneumatic system using blocks from the Pneumatics category. These blocks allow the Brain to control the pneumatic pump and extend or retract pneumatic cylinders.

Below is a list of all blocks:

set cylinder#

The set cylinder stack block extends or retracts a cylinder.

    set [Pneumatic1 v] [cylinder1 v] to [extend v]

Parameters

Description

pneumatics

Which pneumatics system to use, configured in the Devices window.

cylinder

Which cylinder to extend or retract, configured in the Devices window.

state

The state of the cylinder to set: extend or retract.

Example

    when started
    [Extend and retract the Pneumatic Cylinder.]
    set [Pneumatic1 v] [cylinder1 v] to [extend v]
    wait (2) seconds
    set [Pneumatic1 v] [cylinder1 v] to [retract v]

set pump#

The set pump stack block turns the pneumatic pump on or off.

  set [Pneumatic1 v] pump to [on v]

Parameters

Description

pneumatics

Which pneumatic pump to turn on or off, configured in the Devices window.

state

The state of the pneumatic pump to set: on or off.

Example

    when started
    [Turn off the pneumatic pump after extending and retracting.]
    set [Pneumatic1 v] [cylinder1 v] to [extend v]
    wait (2) seconds
    set [Pneumatic1 v] [cylinder1 v] to [retract v]
    wait (1) seconds
    set [Pneumatic1 v] pump to [off v]