360 Secure SkillHub
360 安全技能中心

Mc Tap

通过 ot-aiops MCP 服务器与 pymcprotocol 读取三菱 Q/L/QnA/iQ-R/iQ-L PLC 的 CPU 类型、D/W/R 字设备和 M/X/Y/B 位设备,并支持分散随机读取;字写入默认关闭且需审批,仅支持 3E 帧,未经真实 PLC 验证。

zw008
zw008
热度 16.02
最近更新 2026-06-28 14:48:31
分类:自动化依赖:MCP 服务 / 第三方 API应用场景:数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mc-tap
Metadata
name
mc-tap
description
Read Mitsubishi MELSEC PLCs (三菱 Q/L/QnA/iQ-R/iQ-L) over the MC protocol (3E binary, pymcprotocol) — CPU type, word devices (D/W/R), bit devices (M/X/Y/B), and scattered random reads. A governed, MOC-gated word write exists but is OFF by default. Use when the task names Mitsubishi/MELSEC, a D/M/X/Y device, or plctype Q/L/iQ-R. Routes to the ot-aiops MCP server. For OPC-UA/Modbus/Siemens/ MTConnect/MQTT use the sibling *-tap skills; not for IT/network gear, Kubernetes, hypervisors, or backups.

mc-tap

Mitsubishi MC read-first telemetry via the ot-aiops MCP server, using pymcprotocol (pure Python, MELSEC 3E binary). Preview — validated against a mocked client, NOT live PLCs. Only the 3E frame is supported (1E/4E are not).

When to use

  • A Mitsubishi Q/L/iQ-R/iQ-L PLC with an Ethernet module open for MC (host:5007).
  • Read word/bit devices; check CPU type.

When NOT to use (routing)

  • OPC-UA → opcua-tap; Modbus → modbus-tap; Siemens → s7-tap; CNC → mtconnect-tap; MQTT/UNS → sparkplug-tap; cross-protocol triage → industrial-diagnostics. IT/network/Kubernetes/hypervisor/backup → not this tool.

Read tools

Tool Params Returns
mc_cpu_status endpoint? {cpu_type, cpu_code, plctype}
mc_read_words headdevice (e.g. "D100"), endpoint?, count=1 {words:[int,...]}
mc_read_bits headdevice (e.g. "M0"), endpoint?, count=1 {bits:[bool,...]}
mc_read_many endpoint?, word_devices[]?, dword_devices[]? {words:[{device,value}], dwords:[...]}

Example: mc_read_words(headdevice="D100", count=8) → {"headdevice":"D100","count":8,"words":[10,20,30, ...]}

Write tool (HIGH risk · MOC · off by default)

mc_write_words(headdevice, values[], endpoint?, dry_run=true)

  • OT-DANGEROUS. 未经授权勿对生产控制系统写入. Defaults to dry_run=true. Captures BEFORE values (read-back of the range) and records an undo descriptor.
  • Apply: dry_run=false + OPCUA_AUDIT_APPROVED_BY. CLI: ot-aiops mc write-words D100 1 2 3 --apply (double-confirm prompt).
  • Dry-run → {dry_run:true, before, would_write, note}; applied → {applied:true, before, written, _undo_id}.

Setup

ot-aiops init (mc: host/port/plctype) · ot-aiops doctor · ot-aiops mcp. plctype ∈ Q | L | QnA | iQ-R | iQ-L. 缺功能提 issue/PR 欢迎留言.