Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

iec61131iec61131 命令行

Agent Skill

iec61131 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

685

周安装

28

GitHub Stars

12

下载量

222
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:iec61131(iec61131 命令行)
来源仓库:https://github.com/claude-dev-suite/claude-dev-suite
仓库路径:skills/iec61131
安装命令:
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill iec61131
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill iec61131

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合围绕仓库状态或代码变更进行整理。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装命令:npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill iec61131
  • 安装前建议确认权限范围和维护状态。

SKILL.md

IEC 61131-3 Programming Languages Reference

Overview

IEC 61131-3 defines 5 programming languages for PLCs, all interchangeable:

LanguageTypeBest ForStatus
LD (Ladder Diagram)GraphicalDiscrete logic, motor interlocksActive
FBD (Function Block Diagram)GraphicalContinuous control, PID, analogActive (DCS primary)
ST (Structured Text)TextualComplex calculations, algorithmsActive (most expressive)
IL (Instruction List)TextualLow-level, assembly-likeDeprecated (3rd ed. 2013)
SFC (Sequential Function Chart)GraphicalSequences, batch, state machinesActive

Program Organization Units (POUs)

PROGRAM

Top-level executable, associated with a task (scan cycle).

FUNCTION_BLOCK (FB)

Reusable block with persistent internal state (memory between calls). Used for motors, PID, timers, counters.

FUNCTION_BLOCK MotorControl
VAR_INPUT
    StartCmd : BOOL;
    StopCmd  : BOOL;
    FbkRun   : BOOL;
    Interlock: BOOL;
END_VAR
VAR_OUTPUT
    StartOut : BOOL;
    Running  : BOOL;
    Fault    : BOOL;
END_VAR
VAR
    MonTimer : TON;
    State    : INT;
END_VAR

FUNCTION (FC)

Stateless, no memory. Always returns same output for same input.

Data Types

Elementary

BOOL, BYTE, WORD, DWORD, LWORD, SINT, INT, DINT, LINT, USINT, UINT, UDINT, ULINT, REAL, LREAL, TIME, DATE, TIME_OF_DAY, DATE_AND_TIME, STRING, WSTRING

Derived (User-Defined)

TYPE MotorData :
STRUCT
    Running  : BOOL;
    Fault    : BOOL;
    Speed    : REAL;
    Runtime  : TIME;
END_STRUCT
END_TYPE

Variable Scopes

ScopeKeywordDescription
LocalVARInternal to POU
InputVAR_INPUTRead-only input parameter
OutputVAR_OUTPUTOutput parameter
In/OutVAR_IN_OUTBidirectional parameter
GlobalVAR_GLOBALAccessible by all POUs
ExternalVAR_EXTERNALReference to global
TempVAR_TEMPNo persistence
ConfigVAR_CONFIGSet at download
ConstantCONSTANTNamed constant

Language Details

ST (Structured Text) - Most Relevant for Code Generation

IF Motor.FbkRunning AND NOT Motor.Fault THEN
    Motor.Status := RUNNING;
    Motor.Runtime := Motor.Runtime + T#1s;
ELSIF Motor.Fault THEN
    Motor.Status := FAULTED;
    Motor.AlarmActive := TRUE;
END_IF;

CASE State OF
    0: (* IDLE *)
        IF StartCmd AND NOT Interlock THEN State := 1; END_IF;
    1: (* STARTING *)
        StartOut := TRUE;
        MonTimer(IN:=TRUE, PT:=T#10s);
        IF FbkRun THEN State := 2; END_IF;
        IF MonTimer.Q THEN State := 99; END_IF;
    2: (* RUNNING *)
        IF StopCmd THEN State := 3; END_IF;
    3: (* STOPPING *)
        StartOut := FALSE;
    99: (* FAULT *)
        StartOut := FALSE;
        Fault := TRUE;
END_CASE;

SFC (Sequential Function Chart)

Elements: Steps, Transitions, Actions

  • Steps contain actions (in any language)
  • Transitions are boolean conditions
  • Action qualifiers: N (non-stored), S (set), R (reset), L (time limited), D (delayed), P (pulse)
  • Parallel branches (simultaneous), Alternative branches (selective)

FBD (Function Block Diagram)

Signal flow left-to-right. Blocks represent functions. Wires connect outputs to inputs. Primary language in DCS (PCS 7 CFC, DeltaV Control Studio, ABB Freelance).

LD (Ladder Diagram)

Based on relay logic. Contacts (NO/NC), coils, timers, counters. Left/right power rails. Rungs top-to-bottom.

PLCopen Standards

TCTopicDescription
TC1StandardsIEC 61131-3 compliance testing
TC2Motion ControlMC_MoveAbsolute, MC_Stop, MC_Home, etc.
TC3Software EngineeringCoding guidelines
TC4CommunicationsOPC UA mapping
TC5SafetyIEC 61508 extensions
TC6XML ExchangeVendor-neutral program interchange format

PLCopen XML Format (TC6)

<project xmlns="http://www.plcopen.org/xml/tc6_0201">
  <types>
    <pous>
      <pou name="MotorControl" pouType="functionBlock">
        <interface>
          <inputVars>
            <variable name="Start"><type><BOOL/></type></variable>
          </inputVars>
          <outputVars>
            <variable name="Running"><type><BOOL/></type></variable>
          </outputVars>
        </interface>
        <body>
          <ST><xhtml><!-- Structured Text --></xhtml></ST>
        </body>
      </pou>
    </pous>
  </types>
</project>

Supported by: CODESYS, ABB AC500, Schneider, Beckhoff, B&R. NOT supported by: ABB Freelance (uses PRT), Emerson DeltaV (uses FHX), Siemens (uses SimaticML).

Other Exchange Formats

FormatStandardUsed By
PLCopen XMLIEC 61131-10CODESYS, Schneider, Beckhoff
SimaticMLSiemens proprietaryTIA Portal
AutomationMLIEC 62714Siemens PCS 7 V9+, multi-vendor
FHXEmerson proprietaryDeltaV
PRT/CSVABB proprietaryFreelance
DEXPIISO 15926P&ID exchange

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.72%
按下载量换算75

Claude

26.95%
按下载量换算60

Cursor

20.77%
按下载量换算46

Gemini CLI

9.3%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills