Pneumatics#
Set Pneumatic Pump#
The Set Pneumatic Pump block is used to set the CTE pneumatic solenoid to turn the pneumatic pump on or off indefinitely, or until another Set Pneumatic Pump block is used. Turning the pump on will refill the attached air tank.
This is a non-waiting command and allows any subsequent commands to execute without delay.
set [Pneumatic1 v] pump to [on v]
Select which Pneumatic system to use.
Select whether to turn the pneumatic pump on or off.
In this example, the pneumatic pump will turn off when the project started and turn on after 2 seconds.
when started :: hat events
[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]
Set Pneumatic Cylinder#
The Set Pneumatic Cylinder block is used to Sets a specified CTE pneumatic cylinder to extend or retract indefinitely, or until another Set Pneumatic Cylinder block is used.
This is a non-waiting command and allows any subsequent commands to execute without delay.
set [Pneumatic1 v] [cylinder1 v] to [extend v]
Select which Pneumatic system to use.
Select which cylinder to use.
Select whether to extend or retract the specified cylinder.
In this example, cylinder 1 will extend for 1 second before retracting.
when started :: hat events
[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]