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.
conjunto [Neumático1 v] [cilindro1 v] a [extender 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
cuando empezó
[Extend cylinder 1 at the start of the project.]
conjunto [Neumático1 v] [cilindro1 v] a [extender v]
[Retract cylinder 1 after 2 seconds.]
esperar (2) segundos
conjunto [Neumático1 v] [cilindro1 v] a [retraer v]
set pneumatic pump#
The set pneumatic pump block turns the pneumatic pump on or off for a specified pneumatic system.
Establecer la bomba [Neumático1 v] en [encendido v]
Parameter |
Description |
|---|---|
device |
Which Pneumatic Solenoid to use, configured in the Devices window. |
state |
Sets the air pump’s state:
|
Example
cuando empezó
[Turn the pneumatic pump off at the start of the project.]
Establecer la bomba [Neumático1 v] en [apagado v]
[Wait 2 seconds before turning the pneumatic pump on]
esperar (2) segundos
Establecer la bomba [Neumático1 v] en [encendido v]