Start Proxy
start_proxyStart a transparent proxy to relay traffic between the host and PLC, capturing bidirectional Modbus, FINS, or MELSEC frames. Use it for on-site debugging to record and analyze all exchanges without altering them.
Instructions
起透明代理: 上位机 → 代理 → 真实 PLC, 透传同时按协议分帧录制双向帧。
现场联调时把上位机目标地址改成本代理, 无需 Wireshark 即可拿到全部 交互帧 (get_proxy_frames), 再喂 parse_frame/diagnose 做在线分析。 protocol 当前支持 modbus/fins/melsec (S7 TPKT 分帧暂不支持); listen_port=0 由系统分配。代理是诊断设施: 只透传与录制, 不改写帧。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | Yes | ||
| listen_host | No | 127.0.0.1 | |
| listen_port | No | ||
| target_host | Yes | ||
| target_port | Yes | ||
| idle_timeout_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||