--- title: "How to Add Device Triggers" slug: "how-to-add-device-triggers" updated: 2025-01-08T11:38:24Z published: 2025-01-08T11:38:24Z canonical: "support.tulip.co/how-to-add-device-triggers" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 如何添加设备触发器 *了解如何设置触发器来集成生产车间的设备。* ## 目的 "设备触发器 "是当生产现场与 Tulip 连接的传感器发生事件时触发的触发器。 使用触发器,可以将 Tulip[设备列表](/r230/docs/supported-devices)中的外部设备添加到应用程序中。根据从设备收集到的数据,还可以向触发器添加[其他条件](/r230/docs/how-to-add-triggers-with-conditions-ifelse-statements)。 ## 如何添加设备触发器 一般来说,Tulip 可识别三种类型的设备事件来触发操作: - 简单的设备信号(如条形码扫描仪输出) - GPIO 信号(如引脚变化) - 模数转换 (ADC) 事件(如电压变化) 设备输出可存储在变量中,也可启动特定操作,或两者兼而有之。 NOTE A device output might be a single value (e.g. a number) or multiple values (e.g several analog outputs). When you create logical conditions with device outputs, use the variable data and not the variable name. 可以从上下文窗格的步骤选项卡中的""机器和设备 "选项访问它们: ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Add%20Device%20Triggers_192832744.png) ## 设备触发器示例 下面是一个示例: ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Add%20Device%20Triggers_103722056.png) 当 - "设备""条形码扫描仪 "在 "此工作站 "输出 然后 - "数据操作" "存储" "设备输出" "数据" 位置:"新变量 ## 所有设备触发器列表 下面列出了 Tulip 默认的所有设备触发器。这些触发器可在触发器编辑器中的 "何时 "选项下使用: ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Add%20Device%20Triggers_192833022.png) - 模拟电压输入 - 条形码扫描器 - 条码扫描器(Dataman TCP) - 条码扫描器(Dataman 262) - Bobe Box USB - 博世 RFID - 卡尺或深度计 - 康耐视 Insight 2000 - Fluke 28x 万用表 - 脚踏板 - GPIO - 英格索兰 QX - 科尔弗 - 欧米茄 HH806 - 帕姆 CF - 压力 - 秤(Brecknel PS25) - 秤(Brecknel 7010SB) - 秤(奥豪斯) - 隐形开关 - 温度/湿度传感器(Lascar) - 温度/湿度传感器(Phidgets) - 测温枪 - 扭矩开放协议 - USB 按钮 - 分析仪-Q2 - 串行条形码扫描仪 ## 更多阅读 请参阅[奥豪斯衡器指南](/r230/docs/how-to-add-an-ohaus-scale-and-store-output-in-a-variable),获取设备触发器示例。 以下是如何使用["Dataman TCP](https://support.tulip.co/docs/using-the-cognex-dataman-tcp-driver)驱动程序 以下是如何在 Tulip 中使用[Torque 工具开放协议](https://support.tulip.co/docs/using-the-torque-open-protocol-driver)。