e-plc-ladder

Convert natural-language PLC requirements into MELSEC IL ladder logic tool_calls.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/pjy4617/plc-skill --skill e-plc-ladder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: e-plc-ladder
Source: https://github.com/pjy4617/plc-skill/tree/main
Command: npx skills add https://github.com/pjy4617/plc-skill --skill e-plc-ladder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ws, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates translating natural-language PLC requirements into MELSEC IL ladder programs that run on the OpenPLC-based runtime, dramatically reducing manual drafting and verification time.

Core Features & Use Cases

  • Automatically generates ladder logic from requirements for PLC simulation and runtime execution.
  • Provides web AI mode with 7 ladder tools and a CLI Claude Code mode to support writer, simulator, and reviewer triad.
  • Enforces MELSEC IL opcodes (LD, LDI, AND, ANI, OR, ORI, ORB, ANB, OUT, SET, RST, END) and TMR/CNT timers with 100 ms K1 granularity and grid-based layout rules.
  • Supports common PLC patterns including self-hold, timers, and parallel logic with pseudo-simulation and static checks to guide safe designs.

Quick Start

Generate a self-hold ladder for a motor using natural language and run the pipeline to compile MELSEC IL and simulate.

Frequently Asked Questions about e-plc-ladder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate MELSEC IL ladder logic from natural language?▼

You can generate MELSEC IL ladder logic by providing natural-language PLC requirements. The system transforms them into a tool_call JSON sequence that constructs the ladder program using insert_rung, add_element, and add_connection commands.

What is MELSEC IL and how does it handle PLC simulation?▼

MELSEC IL is an instruction list programming language for PLCs that uses opcodes like LD, AND, OR, and OUT. The system compiles these opcodes into a ladder project and executes runtime simulation to validate the logic design.

Can I use this tool to validate PLC ladder designs before deployment?▼

Yes, you can validate PLC ladder designs before deployment. The system operates writer, simulator, and reviewer sub-agents to enforce MELSEC IL opcodes and runtime constraints, returning fully validated LadderProject and IL outputs.

What is the best way to create a self-hold ladder for a motor using PLC instructions?▼

The best way to create a self-hold ladder is by describing the motor control requirement in natural language. The system generates the appropriate MELSEC IL opcodes, runs pseudo-simulation, and applies static checks to guide safe designs.

Does the ladder generation tool support timers and counters with specific granularity?▼

Yes, the tool supports TMR and CNT timers with 100 ms K1 granularity. It enforces MELSEC IL opcodes and grid-based layout rules to ensure the generated ladder logic meets runtime constraints.

What are the limitations when running PLC simulation in CLI Claude Code mode?▼

In CLI Claude Code mode, the system uses pseudo-simulation and static checks to verify designs. While it enforces MELSEC IL opcodes and runtime constraints, it does not execute on physical PLC hardware, limiting validation to simulated results.