CTE Pneumatics#

Invoering#

De CTE Pneumatic-commando’s werken alleen met de CTE Pneumatic-onderdelen. U moet de CTE-module handmatig importeren om dit te laten werken:

from cte import *

De VEX V5 Brain kan het CTE Pneumatic-systeem aansturen met behulp van methoden uit de Pneumatic klasse. Deze methoden stellen de Brain in staat de pneumatische pomp te besturen en pneumatische cilinders uit te schuiven of in te trekken.

Op deze pagina wordt cte_pneumatic als voorbeeldnaam voor CTE Pneumatics gebruikt. Vervang dit door uw eigen geconfigureerde naam indien nodig.

Hieronder vindt u een lijst met beschikbare methoden:

Handelingen – Bediening van de pneumatische cilinders en de pneumatische pomp.

  • extend – Verlengt een pneumatische cilinder.

  • retract – Trekt een pneumatische cilinder terug.

  • pump_on – Schakelt de pneumatische pomp in.

  • pump_off – Schakelt de pneumatische pomp uit.

Instellers – Schakel de pneumatische pomp in of uit.

  • pump – Schakelt de pneumatische pomp in of uit.

Constructors – Initialiseer en configureer handmatig de CTE pneumatische solenoïde.

  • Pneumatic – Maak een CTE pneumatische solenoïde aan.

Acties#

extend#

extend verlengt een pneumatische cilinder.

Usage:
cte_pneumatic.extend(cylinder)

Parameters

Beschrijving

cylinder

De cilinder die verlengd moet worden:

  • CYLINDER1
  • CYLINDER2
  • CYLINDER3
  • CYLINDER4
  • CYLINDERALL – Alle 4 cilinders

retract#

retract trekt een pneumatische cilinder in.

Usage:
cte_pneumatic.retract(cylinder)

Parameters

Beschrijving

cylinder

De cilinder die moet worden ingetrokken:

  • CYLINDER1
  • CYLINDER2
  • CYLINDER3
  • CYLINDER4
  • CYLINDERALL – Alle 4 cilinders

pump_on#

pump_on schakelt de pneumatische pomp in.

Usage:
cte_pneumatic.pump_on()

Parameters

Beschrijving

Deze methode heeft geen parameters.

pump_off#

pump_off schakelt de pneumatische pomp uit.

Gebruik:

cte_pneumatic.pump_off()

Parameters

Beschrijving

Deze methode heeft geen parameters.

Setters#

pump#

Pomp pump schakelt de pneumatische pomp in of uit.

Gebruik:

cte_pneumatic.pump(state)

Parameters

Beschrijving

state

De in te stellen status: True schakelt de pneumatische pomp in, en False schakelt de pneumatische pomp uit.

Constructeurs#

Constructors worden gebruikt om handmatig Pneumatic objecten te creëren, die nodig zijn voor het configureren van een CTE Pneumatic Solenoid.

Pneumatic#

Pneumatic creëert een CTE pneumatische solenoïde.

Usage:
Pneumatic(smartport)

Parameter

Beschrijving

smartport

De Smart Port waarop de CTE Pneumatische Solenoïde is aangesloten, wordt weergegeven als Ports.PORTx waarbij x het poortnummer is.

from cte import *

# Create a CTE Pneumatic Solenoid in Port 1
cte_pneumatic = Pneumatic(Ports.PORT1)