气动#
介绍#
气动模块包含一些模块,用于控制 VEX IQ(第二代)气泵压缩空气,并通过电磁阀将其送至气缸。这些模块可以控制气泵的开关,以及气缸的伸缩。
以下是可用块的列表:
set cylinder – 伸出或缩回气缸。
set pump – 打开或关闭气泵。
设置气缸#
设置气缸块伸出或缩回气缸。
set [Pneumatic1 v] [cylinder1 v] to [extend v]
参数 |
描述 |
---|---|
气动 |
使用哪种气动系统,在设备窗口中配置。 |
圆柱 |
哪个气缸伸出或缩回,在设备窗口中配置。 |
状态 |
需要设置的气缸状态:
|
例子
当开始 :: hat events
[Extend and retract the Pneumatic Cylinder.]
set [Pneumatic1 v] [cylinder1 v] to [extend v]
等待 (2) 秒
set [Pneumatic1 v] [cylinder1 v] to [retract v]
设置泵#
设置泵打开或关闭气泵。
set [Pneumatic1 v] pump to [on v]
参数 |
描述 |
---|---|
气动 |
在设备窗口中配置要打开或关闭的气泵。 |
状态 |
需要设置的气泵状态:
|
例子
当开始 :: hat events
[Turn off the air pump after extending and retracting.]
set [Pneumatic1 v] [cylinder1 v] to [extend v]
等待 (2) 秒
set [Pneumatic1 v] [cylinder1 v] to [retract v]
等待 (1) 秒
set [Pneumatic1 v] pump to [off v]