限位开关#
介绍#
限位开关是一种小型数字传感器,用于检测与物体的物理接触。

以下是可用模块列表:
Limit Switch pressed – Returns whether the specified Limit Switch is currently pressed.
当限位开关 – 当指定的限位开关被按下或释放时,运行所连接的程序块堆栈。
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] 按下了?>
范围 |
描述 |
|---|---|
设备 |
Which Limit Switch to use, configured in the Devices window. |
限位开关#
The when Limit Switch hat block runs the attached stack of blocks when the selected Limit Switch is pressed or released.
当 [LimitSwitchA v] [pressed v] :: hat events
范围 |
描述 |
|---|---|
设备 |
Which Limit Switch to use, configured in the Devices window. |
状态 |
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. |