RS

rivie13/studio5000-ai-assistant

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

45 stars 20 forks 质量 64 趋势 0

一个MCP服务器,允许AI模型与Rockwell Automation SDK及下载软件时附带的内部文档交互

概览

请注意,这个仓库只是一个原型,可能不会被维护。如果你愿意,欢迎你自己做这个项目,直接做一个分支,自己做。 这款革命性的MCP(模型上下文协议)服务器通过提供AI驱动的代码生成、L5X例程创建、真实的ACD文件生成以及无缝的Studio 5000集成,彻底改变了PLC编程。将自然语言规范直接转换为工作梯形图逻辑,完成Studio 5000项目! ✅ 如果测试通过,可以跳到Claude桌面设置。 🎯 - 📖 - 完整的工作流程指南及真实示例 - ⚡ - 每日命令和快捷方式 - 🔧 - 常见问题与解决方案 - (不要是3.11或更早版本——SDK无法使用!)- 安装在你的机器上 - (Studio 5000 SDK仅支持Windows) 4. : ✅ 应显示:文档已索引,SDK,测试通过 5.

概述(AI 翻译)

请注意,这个仓库只是一个原型,可能不会被维护。如果你愿意,欢迎你自己做这个项目,直接做一个分支,自己做。

🤖 Studio 5000 AI 驱动的 PLC 编程助理

这款革命性的MCP(模型上下文协议)服务器通过提供AI驱动的代码生成、L5X例程创建、真实的ACD文件生成以及无缝的Studio 5000集成,彻底改变了PLC编程。将自然语言规范直接转换为工作梯形图逻辑,完成Studio 5000项目!

⚡ TL;DR - 给急躁的队友们

就是这样! ✅ 如果测试通过,跳转到Claude桌面设置。

📚 新团队成员资源

🎯 完整团队指南可用:

  • 📖 TEAM_USAGE_GUIDE.md - 完整工作流程指南,含真实示例
  • ⚡ QUICK_REFERENCE_CARD.md - 每日命令和快捷方式
  • 🔧 TEAM_TROUBLESHOOTING_GUIDE.md - 常见问题与解决方案

🚀 队友快速起跑

准备好使用这个工具了吗?请按照以下步骤操作:

先决条件 ⚠️ 关键

  • Python 3.12(非3.11或更早版本——SDK无法使用!)
  • Studio 5000 Logix Designer v36及更新版本已安装在你的机器上

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

NOTICE:

Please note that this repo is strictly a prototype that will probably not be maintained. You are welcome to work on this if you like, just make a fork and do your own thing.

🤖 Studio 5000 AI-Powered PLC Programming Assistant

This revolutionary MCP (Model Context Protocol) server transforms PLC programming by providing AI-powered code generation, L5X routine creation, real .ACD file generation, and seamless Studio 5000 integration. Convert natural language specifications directly into working ladder logic and complete Studio 5000 projects!

⚡ TL;DR - For Impatient Teammates

# 1. Get Python 3.12 (NOT 3.11!) from python.org
python --version  # Must show 3.12.x

# 2. Clone and install
git clone 
cd Studio5000_MCP_Server
pip install -r requirements.txt

# 3. Install SDK (CRITICAL for .ACD files!)
pip install "C:\Users\Public\Documents\Studio 5000\Logix Designer SDK\python\logix_designer_sdk-*-py3-none-any.whl"

# 4. Test it works
python src/mcp_server/studio5000_mcp_server.py --test

That’s it! ✅ Skip to Claude Desktop setup if tests pass.

📚 New Team Member Resources

🎯 Complete Team Guides Available:

🚀 Quick Start for Teammates

Ready to use this tool? Follow these steps:

Prerequisites ⚠️ CRITICAL

  • Python 3.12 (NOT 3.11 or earlier - the SDK will not work!)
  • Studio 5000 Logix Designer v36 or later installed on your machine
  • Windows Operating System (Studio 5000 SDK is Windows-only)

Installation Steps

  1. Verify Python 3.12:

    python --version
    # Must show Python 3.12.x - if not, install Python 3.12 from python.org
    
  2. Clone and Install:

    git clone 
    cd Studio5000_MCP_Server
    pip install -r requirements.txt
    
  3. Install Studio 5000 SDK (for .ACD files):

    pip install "C:\Users\Public\Documents\Studio 5000\Logix Designer SDK\python\logix_designer_sdk-*-py3-none-any.whl"
    
  4. Test the Installation:

    python src/mcp_server/studio5000_mcp_server.py --test
    

    ✅ Should show: Documentation indexed, SDK available, tests passing

  5. Ready to Use! - The server will auto-detect your Studio 5000 installation paths

Having Issues? See the Troubleshooting section below.

🚀 AI-Powered Features

🧠 Natural Language to PLC Code

  • AI Code Generation: Convert plain English to working ladder logic
    • “Start the motor when the start button is pressed and stop it when the stop button is pressed” → Complete ladder logic with proper start/stop interlocking
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "studio5000-ai-assistant": { "command": "python", "args": [ "C:\\Users\\YourUsername\\Studio5000_MCP_Server\\src\\mcp_server\\studio5000_mcp_server.py" ], "cwd": "C:\\Users\\YourUsername\\Studio5000_MCP_Server", "env": { "STUDIO5000_DOC_PATH": "C:\\Program Files (x86)\\Rockwell Software\\Studio 5000\\Logix Designer\\ENU\\v36\\Bin\\Help\\ENU\\rs5000", "STUDIO5000_SDK_PATH": "C:\\Users\\Public\\Documents\\Studio 5000\\Logix Designer SDK\\python" } } } }