V5气动系统#

介绍#

V5气动系统采用气泵和电磁阀来控制压缩空气,从而驱动气缸运动。它可以通过代码控制气泵的开启和关闭,以及气缸的伸出和缩回。

您需要手动创建类才​​能使其正常工作。

This page uses v5_pneumatic as the example V5 Pneumatics name. Replace it with your own configured name as needed.

以下是可用方法列表:

  • open – Extend a cylinder.

  • close – Retract a cylinder.

构造函数 - 手动初始化和配置 V5 气动电磁阀。

  • Pneumatics – Creates a V5 Pneumatics Solenoid.

行动#

open#

open extends a cylinder.

用法:

v5_pneumatic.open()

参数

描述

此方法没有参数。

close#

close retracts a cylinder.

Usage:
v5_pneumatic.close()

构造函数#

Constructors are used to manually create Pneumatics objects, which are necessary for configuring a V5 Pneumatic Solenoid.

Pneumatics#

Pneumatics creates a V5 Pneumatics Solenoid.

Usage:
Pneumatics(port)

范围

描述

port

The 3-Wire Port that the V5 Pneumatic Solenoid is connected to:

  • On the V5 BrainPorts.PORTx where x is the number of the port.
  • On a 3-Wire Expanderexpander.a where expander is the name of the expander instance.

# Create a V5 Pneumatic Solenoid in Port A
v5_pneumatic = Pneumatics(brain.three_wire_port.a)