连接脚踏开关¶
在生产环境中工作时,操作员最好能随时使用双手。使用脚踏开关时,Odoo 的 IoT(物联网) 盒子可以实现这一点。
事实上,有了脚踏开关,操作员就能从一个屏幕切换到另一个屏幕,并用脚执行操作。只需几步就可以在*制造*应用程序的工作中心上进行配置。
連接¶
要将脚控开关连接到 : abbr:IoT(物联网)`盒子,需要通过电缆将两个设备连接起来。通常使用 :abbr:`USB (通用串行总线)
电缆来实现。
如果脚踏开关在 `受支持的设备<https://www.odoo.com/page/iot-hardware>`_中,则无需采取进一步措施,因为连接后会自动检测到。

在 Odoo 制造应用程序中将脚踏开关链接到工作中心¶
To link a footswitch to an action, it first needs to be configured on a work center. Navigate to Work Center in which the footswitch will be used, and add the device in the IoT Triggers tab, under the Device column, by selecting Add a Line. Doing so means the footswitch can be linked to an option in the Action column drop-down, and optionally, a key can be added to trigger it. An example of an Action in the Manufacturing app could be the Validate or Mark as Done buttons on a manufacturing work order.
. From here, go to the desired重要
Triggers are executed in the order they appear, with the first one taking priority. To reorder the triggers, click the (draggable) icon to the left of each trigger, and drag it to the desired position.
小訣竅
To identify the key assigned to each pedal, connect the footswitch to any computer and press the pedals as if typing. Usually, the pedals are mapped by default to the keyboard keys
a
,b
, andc
.The Work Order list includes a status indicator that shows whether the database is successfully connected to the footswitch.
也參考