AI 驱动文档
您想了解什么?
数字 I/O 逻辑:NPN 与 PNP
本页介绍 OV80i 的数字 I/O 配置,以及如何将 NPN 与 PNP 设备正确连接到相机的 M12 A-Coded 12 针连接器。
OV80i 数字 I/O 概览
硬件配置
The OV80i provides 1 trigger input, 2 digital inputs, and 2 digital outputs through the M12 A-Coded 12 Pin Power I/O connector:
OV80i 通过 M12 A-Coded 12 针 Power I/O 连接器提供 1 个触发输入、2 个数字输入和 2 个数字输出:
I/O Distribution:
- 1 Trigger Input - Primary trigger signal input
- 2 Digital Inputs - Additional sensor inputs
- 1 Digital Outputs - Result outputs
电气规格
-
Operating Voltage: 19-24 VDC input
-
Output Current: Max 100mA per output
-
Input Logic: Pull to GND to activate input
-
Output Logic: When active, output sinks to GND (NPN-compatible)
-
Thermal Protection: DIO GND tied through thermal fuse
-
工作电压: 19-24 VDC 输入
-
输出电流: 每个输出最大 100mA
-
输入逻辑: 通过拉到 GND 来激活输入
-
输出逻辑: 有效时,输出下拉至 GND(NPN 兼容)
-
热保护: DIO GND 通过热熔保险丝与 GND 连接
了解 NPN vs PNP 逻辑
NPN (Sinking) 逻辑
NPN 设备在激活时将电流引导至地(GND)。
特性:
- 有源状态: 设备将信号连接到 GND(0 V)
- 无源状态: 信号保持悬浮或拉高
- 电流方向: 从正电源 → 通过负载 → 到设备 → 到地
- 常见用途: 大多数现代工业传感器和 PLC
PNP (Sourcing) 逻辑
PNP 设备在激活时从正电源提供电流。
特性:
- 有源状态: 设备将信号连接到正电源(+24V)
- 无源状态: 信号保持悬浮或拉低
- 电流方向: 从设备 → 通过负载 → 到地
- 常见用途: 某些欧洲工业设备
OV80i 数字输入配置
原生输入逻辑:NPN 兼容
OV80i 输入设计为 NPN(Sinking)设备。
输入激活: 通过拉至 GND 以激活输入
连接 NPN 传感器(直接连接)
NPN 传感器布线:

工作原理:
- 传感器非激活: 输入悬浮在高电平(非激活)
- 传感器激活: 传感器将输入拉至 GND(激活)
连接 PNP 传感器(需要下拉)
下拉电阻: 通常在输入与 GND 之间为 10kΩ
工作原理:
- 传感器非激活: 下拉电阻将输入保持在 GND(非激活)
- 传感器激活: 传感器压制下拉,使输入电压升高(可能无法可靠激活)
PNP 传感器需要额外的接口电路以确保与 OV80i 输入可靠工作。
OV80i 数字输出配置
原生输出逻辑:NPN (Sinking)
OV80i 输出为 NPN 兼容的下沉输出。
输出行为:
- 激活: 输出下沉至 GND(0V)
- 非激活: 输出悬浮(高阻抗)
- 最大电流: 每个输出 100mA
- 需要外部电源: 输出需要外部电源
Digital outputs DO0 / DO1 are NPN open-collector, sinking only. They pull the line to GND when active and cannot source +24 V. An external pull-up or load to +24 V must be provided for proper operation.
连接 PNP 负载(需要接口):

接口选项:
- Relay Module: Use output to drive relay coil, relay contacts switch PNP load
- Transistor Circuit: Use output to control PNP transistor for load switching
接地与公共参考
关键接地要求
DIO GND 必须连接到 GND 才能实现数字输入功能。 DIO GND 通过热熔保险丝与 GND 连接。
多电源系统: 将 OV80i 的数字 I/O 线连接到由不同电源供电的系统时,请使用此引脚将地线连接在一起。
⚠️ 常见布线问题
地回路问题
- 症状: 输入行为不稳定、误触发
- 解决方法: 确保单点接地,正确使用 DIO GND
输出电流不足
- 症状: 负载无法可靠激活
- 解决方法: 验证负载电流 <100mA,对于较高电流负载使用继电器
PNP 传感器不兼容
- 症状: 输入对 PNP 传感器无响应
- 解决方法: 添加下拉电阻或使用接口模块
浮动输入
- 症状: 未连接传感器时出现随机触发
- 解决方法: 通过 10kΩ 电阻将未使用的输入连接到 DIO GND
最佳实践
设计指南
- ✅ 尽可能使用 NPN 设备实现直接兼容性
- ✅ 在通电前验证接地连接
- ✅ 为工业环境增加保护措施(保险丝/浪涌抑制器)
- ✅ 记录布线,以便维护和故障排除
测试程序
- 验证电源电压(19-24 VDC)
- 检查接地连线的连续性
- 在连接传感器之前,使用万用表测试输入
- 使用合适的负载验证输出
- 监控电流消耗,确保每个输出小于 100 mA
Need to build custom logic around your digital I/O signals? The Integration Builder can generate Node-RED flows that combine digital I/O with inspection results, timers, and conditional logic from a plain English description.