Probe Device
probe_deviceProbe PLC communication and identify failure layer: connection refused, timeout, no reply, or exception response. Diagnose why a device returns no data and decide next step.
Instructions
测试能否连上 PLC 并通信, 失败时给出层级归因。
reachable = 传输层可达 (TCP 已建立; 设备回异常响应也算在线)。 failure_class 取:
connection_refused: 端口没人监听/网络不可达 (查网络与端口)
timeout: 连接超时 (查网络路由/防火墙)
connected_but_no_reply: TCP 通了但设备不回话 (查协议配置)
exception_response: 设备回异常码 (查 unit/寄存器配置, 带 exception_code) 典型用法: 设备"读不到数据"时先调本工具分层定位, 再决定下一步。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | Yes | ||
| unit | No | ||
| protocol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reachable | Yes | ||
| layer_hint | No | application | |
| failure_class | No | ||
| exception_code | No |