Pneumatic#
Introduction#
The VEX EXP Brain can control the CTE Pneumatic Solenoid 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 pneumatic cylinder — Extends or retracts a pneumatic cylinder.
set pneumatic pump — Turns the pneumatic pump on or off.
set pneumatic cylinder#
The set pneumatic cylinder block extends or retracts a specified pneumatic cylinder in a pneumatic system.
set [Pneumatic1 v] [cylinder1 v] to [extend v]
Parameter |
Description |
|---|---|
device |
Which Pneumatic Solenoid to use, configured in the Devices window. |
cylinder |
Specifies which cylinder to control:
|
state |
Sets the cylinder position:
|
Example
when started
[Extend cylinder 1 at the start of the project.]
set [Pneumatic1 v] [cylinder1 v] to [extend v]
[Retract cylinder 1 after 2 seconds.]
wait (2) seconds
set [Pneumatic1 v] [cylinder1 v] to [retract v]
set pneumatic pump#
The set pneumatic pump block turns the pneumatic pump on or off for a specified pneumatic system.
set [Pneumatic1 v] pump to [on v]
Parameter |
Description |
|---|---|
device |
Which Pneumatic Solenoid to use, configured in the Devices window. |
state |
Sets the air pump’s state:
|
Example
when started
[Turn the pneumatic pump off at the start of the project.]
set [Pneumatic1 v] pump to [off v]
[Wait 2 seconds before turning the pneumatic pump on]
wait (2) seconds
set [Pneumatic1 v] pump to [on v]