Pneumatics#
Introduction#
Pneumatics allow the VEX IQ Pneumatic Solenoid to control the flow of compressed air to a pneumatic cylinder. These controls can extend or retract the cylinder by setting the solenoid to direct air appropriately.
Below is a list of all blocks:
set cylinder — Extends or retracts a cylinder.
set pump — Turns an air pump on or off.
set cylinder#
The set cylinder block extends or retracts a cylinder.
conjunto [Neumático1 v] [cilindro1 v] a [extender 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:
|
Example
cuando empezó
[Extend and retract the Pneumatic Cylinder.]
conjunto [Neumático1 v] [cilindro1 v] a [extender v]
esperar (2) segundos
conjunto [Neumático1 v] [cilindro1 v] a [retraer v]
set pump#
The set pump turns an air pump on or off.
Establecer la bomba [Neumático1 v] en [encendido v]
Parameters |
Description |
|---|---|
pneumatics |
Which air pump to turn on or off, configured in the Devices window. |
state |
The state of the air pump to set:
|
Example
cuando empezó
[Turn off the air pump after extending and retracting.]
conjunto [Neumático1 v] [cilindro1 v] a [extender v]
esperar (2) segundos
conjunto [Neumático1 v] [cilindro1 v] a [retraer v]
esperar (1) segundos
Establecer la bomba [Neumático1 v] en [apagado v]