Interruptor de límite#
Introducción#
El interruptor de límite es un pequeño sensor digital que detecta el contacto físico con un objeto.

A continuación se muestra una lista de bloques disponibles:
Limit Switch pressed – Returns whether the specified Limit Switch is currently pressed.
cuando hay interruptor de límite – Ejecuta la pila de bloques adjunta cuando se presiona o se suelta el interruptor de límite especificado.
Limit Switch pressed#
The Limit Switch pressed Boolean block reports whether or not a Limit Switch is being pressed. This can be used to check if the robot bumps into other objects.
True – The Limit Switch is being pressed.
False – The Limit Switch is not being pressed.
<[LimitSwitchA v] presionado?>
Parámetro |
Descripción |
|---|---|
dispositivo |
Qué interruptor de límite utilizar, configurado en la ventana Dispositivos. |
Cuando el interruptor de límite#
The when Limit Switch hat block runs the attached stack of blocks when the selected Limit Switch is pressed or released.
cuando [LimitSwitchA v] [presionado v] :: hat events
Parámetro |
Descripción |
|---|---|
dispositivo |
Qué interruptor de límite utilizar, configurado en la ventana Dispositivos. |
estado |
When the attached stack of blocks will run: pressed will run when the Limit Switch is pressed down, and released runs when the Limit Switch is released. |