ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที เข้าสู่ระบบด้วย Google เพื่อเขียนรีวิวได้แล้วต้นแบบ · อัปเดตทุก 30 นาที
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · วิธีติดตั้งภาษาไทยทุกตัว เข้าสู่ระบบ

ใช้ทำอะไรได้

ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ

  • ต่อแบบ ติดตั้งในเครื่อง
  • บัญชีหรือคีย์ ไม่ต้องใส่คีย์
  • หมวด อื่น ๆ
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
PLC ladder logic for AI agents: edit over MCP, check on a scan simulator (MELSEC, IEC).

ทำไมอยู่อันดับนี้

หน้ารายการเรียงด้วยคะแนนการใช้งาน (เต็ม 100) จากส่วนเหล่านี้

ความนิยม4/80ดาว GitHub หรือยอดดาวน์โหลดต่อสัปดาห์ ค่ามากนับ 60 ค่าน้อยนับ 20
ความสด12/12ออกรุ่นหรือแก้โค้ดใน 30 วัน ได้เต็ม
ระบบยังตอบ0/8endpoint บนคลาวด์ตอบตอนตรวจล่าสุด
คะแนนการใช้งาน16/100

คุณภาพ: ผลตรวจเบื้องต้นผ่าน 3/3 ข้อ (แสดงให้ดู ไม่ได้ใช้เรียง) · ความมาแรง: ยังไม่มีข้อมูล (ใช้เรียงเฉพาะแท็บมาแรง)

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ผลตรวจผ่าน 3/3 · ทำงานบนเครื่องคุณ

ขั้นแรก: คุณใช้ AI ตัวไหน

เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง

ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน

ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

  1. ดาวน์โหลดไฟล์ติดตั้งของผู้ทำ

    ดาวน์โหลดไฟล์ .mcpb ของผู้ทำ

    ไฟล์ .mcpb มาจากผู้ทำโดยตรง เราไม่ได้แก้ไฟล์

  2. ดับเบิลคลิกไฟล์ แล้วกด Install ในแอป Claude บนคอม

  3. ลองเลย

    ใช้ rungkit บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง

    ✓ ถ้า Claude บอกว่ากำลังใช้ rungkit หรือมีชื่อเครื่องมือของ rungkit ขึ้นในคำตอบ แปลว่าต่อสำเร็จ

ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป

ChatGPT ยังต่อ rungkit ไม่ได้

rungkit ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ rungkit ได้

  • ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

ข · ตัวอื่นในหมวด อื่น ๆ ที่ต่อกับ ChatGPT ได้

เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์

Claude Code ยังต่อ rungkit ไม่ได้

ผู้ทำมีแต่ไฟล์ติดตั้งสำหรับแอป Claude บนคอม

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ rungkit ได้

  • ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

Cursor ยังต่อ rungkit ไม่ได้

ผู้ทำมีแต่ไฟล์ติดตั้งสำหรับแอป Claude บนคอม

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ rungkit ได้

  • ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

VS Code ยังต่อ rungkit ไม่ได้

ผู้ทำมีแต่ไฟล์ติดตั้งสำหรับแอป Claude บนคอม

คุณทำแบบนี้แทนได้

ก · ใช้แอปที่ต่อ rungkit ได้

  • ไม่ต้องใช้คีย์ ไม่ต้องลงโปรแกรม · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ

โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม

ดูโปรแกรมที่ใช้ MCP ทั้งหมด →

ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง

ติดตรงไหน? ถามคนที่ใช้ rungkit อยู่💬 พูดคุย →

สรุป

ชื่อใน registry
io.github.Piyoone3939/rungkit
ดาวน์โหลดต่อสัปดาห์i
ไม่มียอดใน npm/PyPI
licensei
Apache-2.0
การเชื่อมต่อ
รันบนเครื่อง
รุ่นล่าสุดi
0.4.0
หมวดi
อื่น ๆ
ส่งเข้า registryi
26 พ.ย. 2569
แก้โค้ดล่าสุดi
24 พ.ย. 2569
ผู้ทำ
Piyoone3939
แพ็กเกจ
mcpb: …/rungkit-mcp-darwin-amd64.mcpb
mcpb: …/rungkit-mcp-darwin-arm64.mcpb
mcpb: …/rungkit-mcp-linux-amd64.mcpb
เว็บผู้ทำ
piyoone3939.github.io
สถานะใน registry
ใช้งานอยู่

ใช้กับโปรแกรมไหนได้

ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569

ติดตั้งบนเครื่องได้ใน

ClaudeGooseLM StudioMsty StudioCherry StudioVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

ดูโปรแกรมทั้งหมดพร้อมข้อดีข้อเสีย →

คู่มือที่เกี่ยวข้อง

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 26 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub Piyoone3939 ซึ่งเป็นเจ้าของ repo

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด เมื่อวานซืน

  • ✓ ผ่าน

    มีสัญญาอนุญาต (license)

    ใช้ Apache-2.0

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

ช่องโหว่ที่เปิดเผยแล้ว (OSV.dev)

ไม่ได้ตรวจ: ตรวจได้เฉพาะแพ็กเกจ npm และ PyPI ที่ระบุรุ่น

เราตรวจอะไรบ้าง → · JSON

ผู้ทำ: ขอให้ตรวจใหม่ หรือแจ้งข้อมูลผิด
สำหรับผู้ทำ: ติดป้ายใน README

ถ้าคุณเป็นผู้ทำตัวนี้ คัดลอกโค้ดนี้ไปวางใน README ได้เลย ป้ายลิงก์กลับมาที่หน้านี้

[![แนะนำบน PopNx MCP](https://mcp.popnx.com/badge/piyoone3939-rungkit.svg?lang=th)](https://mcp.popnx.com/th/servers/piyoone3939-rungkit)

พูดคุย

ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์

ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย

ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx

เข้าสู่ระบบเพื่อโพสต์

รีวิวจากผู้ใช้

ยังไม่มีรีวิว

เข้าสู่ระบบเพื่อเขียนรีวิว

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 87% ของอีก 22308 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 99% ของอีก 22308 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 99% ของอีก 22308 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

rungkit ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 3 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด เมื่อวานซืน และส่งรุ่นล่าสุด (0.4.0) เข้า registry วันนี้

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี MCPB ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

ตัวอื่นที่ทำงานคล้ายกัน

หมวดเดียวกันจากผู้ทำคนอื่น ผ่านตัวตรวจคำสั่งแล้ว ตัวทางการขึ้นก่อน แล้วเรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

World Monitor

ข่าวกรองโลกแบบเรียลไทม์: ความขัดแย้ง ตลาด พลังงาน การค้า การขนส่ง และไซเบอร์

โดย koala73ใช้กันมาก★ 91.2Kอัปเดต 10 วันที่ผ่านมา

ต่อได้ทันที (มี URL) · ต้องล็อกอิน✓ เจ้าของบริการ · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

โดย openstatusHQใช้กันมาก★ 9.3Kอัปเดต 3 เดือนที่ผ่านมา

ต่อได้ทันที (มี URL) · ต้องล็อกอิน✓ เจ้าของบริการ · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

โดย JanDeDobbeleerใช้กันมาก★ 23.8K ดาวรวมทั้งรีโปอัปเดต 37 วันที่ผ่านมา

ต่อได้ทันที (มี URL)เครื่องมือ 2 ตัว · เบา✓ เจ้าของบริการ · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

โดย Klavis-AIกำลังโต★ 5.8Kอัปเดต 14 เดือนที่ผ่านมา

ต่อได้ทันที (มี URL) · ต้องใส่คีย์repo ถูกเก็บถาวร✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

โดย jitsucomใช้กันมาก★ 5.1Kอัปเดต 4 เดือนที่ผ่านมา

ต่อได้ทันที (มี URL) · ต้องล็อกอิน✓ เจ้าของบริการ · jitsu.com
เทียบกับตัวที่คล้ายกัน
ตัวนี้
rungkit
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
ทำงานที่ไหนต้องลงในเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่องใช้บนคลาวด์ ไม่ต้องลงเครื่อง
ต้องใส่คีย์ไม่ไม่ไม่ไม่ไม่ไม่
กด + ใน Claude ได้ไม่ไม่ไม่ไม่ไม่ไม่
ผลตรวจเบื้องต้น3/34/44/44/41/44/4
สัญญาอนุญาตApache-2.0AGPL-3.0AGPL-3.0MITApache-2.0MIT
ราคาไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียนไม่พบค่าใช้จ่ายในทะเบียน

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

rungkit

English | 日本語

An AI-native toolkit for PLC ladder programs. rungkit keeps a ladder diagram as a series-parallel tree, lets an AI agent edit it over MCP, and lets the agent check its own work on a scan simulator. It supports Mitsubishi (MELSEC iQ-R) and IEC 61131-3, and reads and writes ladder text (.ldt), JSON, the MELSEC instruction list, Structured Text and PLCopen XML.

Status: prototype (0.x). Editing commands, simulator, MCP server, PLCopen XML and a browser version are in place.

Try it in the browser

The browser version runs entirely in the page (Go compiled to WebAssembly): write .ldt on the left and see the ladder diagram and diagnostics as you type, click an element to jump to its line or edit it on the diagram (drag contacts, coils, timers and counters from the parts palette onto it, or use the ribbon buttons; Delete and Esc work too), run .ldtest scenarios with a trace, and export to every format. Dark and light themes. Nothing is sent anywhere; your input stays in the browser.

Open it at https://piyoone3939.github.io/rungkit/ (updated with each release by .github/workflows/pages.yml), or build it yourself:

sh web/build.sh                          # builds web/dist

python -m http.server -d web/dist 8000 # then open http://localhost:8000

Install

go install github.com/Piyoone3939/rungkit/cmd/rungkit@latest

Or download a binary for Windows, macOS or Linux from GitHub Releases.

Use it from an AI (MCP)

claude mcp add rungkit -- rungkit mcp
  • Listed in the official MCP Registry as io.github.Piyoone3939/rungkit
  • Each release also has MCP Bundles (rungkit-mcp- - .mcpb) that apps supporting MCPB, such as Claude Desktop, install by opening the file
  • rungkit mcp FILE starts with FILE open
  • The MCP server reads and writes only inside the folder it was started in (change with -root DIR); standard input (-) is refused

Tools:

ToolWhat it does
open_program / new_program / save_programopen / start / save (files change only on save)
read_programshow the program with rung IDs (// r1) and element IDs (X0@e3)
edit_programapply a list of edit commands; all or nothing; one undo step
undo / redoundo / redo
check_programerrors and warnings with codes, rung and element IDs
run_scenariorun scenarios on the simulator (text or a .ldtest path; trace records every scan)
export_programwrite melsec / gxw3 / st / plcopen / json / ldt / ascii / svg

Edit commands (ops of edit_program):

CommandWhat it does
add_rung(text, after?, comment?, label?)add a rung
replace_rung(rung, text) / delete_rung(rung) / move_rung(rung, after) / set_rung(rung, comment?, label?)replace, delete, move or comment a rung
insert_series(target, position, text)put conditions before or after an element
insert_parallel(target, to?, text)add a branch parallel to an element (or the series range target..to); on an output it adds an output branch
replace_element(target, text) / delete_element(target) / set_operand(target, operand)replace, delete or re-address an element
set_symbol(name, type?, address?, comment?) / delete_symbol(name)device comments and variable declarations

Example: add an emergency stop after the stop button

{"ops": [

{"op": "insert_series", "target": "e3", "position": "after", "text": "!X3"}, {"op": "set_symbol", "name": "X3", "comment": "emergency stop"} ]}

Edits that would make a rung an invalid ladder (a contact right of an output, …) are refused with the reason. Device mistakes (writing an input, …) are not refused but returned as diagnostics, so the agent can fix them next.

Ladder text (.ldt)

profile melsec-iqr

sym X0 "start button" sym X1 "stop button" sym Y0 "conveyor motor"

rung "run, self-holding" { (X0 | Y0) & !X1 -> OUT(Y0) }

rung "lamp and arrival" { Y0 -> { OUT(Y1) rise(X2) -> SET(M10) } }

SyntaxMeaning
A & Bseries (AND); binds tighter than `\`
`A \B`parallel (OR)
!X1normally closed contact
rise(X0) / fall(X0)rising / falling edge
[D0 >= K100]comparison (= <> < <= > >=)
condition -> outputone output at the right end, or a { } block of branches
OUT SET RST PLS PLFcoils
TON(T0, K50) / CTU(C0, K10)timer / counter
MOV ADD SUB MUL DIV INC DEC (suffix P: once per rising edge)instructions
// ...comment

Example: examples/conveyor.ldt

Command line

rungkit check examples/conveyor.ldt          # errors and warnings

rungkit fmt -w examples/conveyor.ldt # canonical form rungkit export -to melsec examples/conveyor.ldt rungkit export -to gxw3 -o conveyor.csv examples/conveyor.ldt # CSV for GX Works3 (Edit > Import File) rungkit export -to st examples/conveyor.ldt rungkit export -to json examples/conveyor.ldt rungkit export -to ascii examples/conveyor.ldt # the ladder drawn as text (svg for a picture)

check gives every problem a code (E_READ_ONLY, …) and a line and column, so an agent can fix them one by one.

Messages are available in English and Japanese, chosen by -lang en|ja, then RUNGKIT_LANG, then the system language.

PLCopen XML

Reads and writes PLCopen XML (TC6 v2.01) Ladder Diagram, to exchange programs with Beremiz, OpenPLC Editor, CODESYS and others.

rungkit export -to plcopen -name Conveyor examples/conveyor.ldt > conveyor.xml

rungkit check conveyor.xml # .xml opens directly (fmt / test / mcp too)

  • Exports validate against the official schema (tc6_xml_v201.xsd) and build as is in Beremiz (procedure and results); a default 10 ms task is included
  • Beremiz runs timer and counter calls after the coils, so a rung reading a timer sees it one scan later than on MELSEC; use the ST export for rung-by-rung semantics
  • OpenPLC Editor v4: its importer was read against rungkit's export (not run yet). Rungs, contacts, coils, timers and instructions match its structure; a rung with a comparison should import with OpenPLC's own layout warning (details)
  • Supported: contacts (NO/NC/rising/falling), coils (set/reset/pulse), TON/TOF/TP/CTU, comparisons (EQ/NE/LT/LE/GT/GE), MOVE/ADD/SUB/MUL/DIV, pulse instructions (through R_TRIG), rung comments
  • Import turns the wiring graph back into a series-parallel tree; chained coils and wired ORs work. Circuits that are not series-parallel (bridges) are refused with E_NON_SERIES_PARALLEL
  • PLCopen is IEC, so melsec programs are written with IEC spellings (K10 → 10, H1F → 16#1F, timer K50 → T#5000ms) and the profile is kept in addData to restore MELSEC spellings on import
  • Changed by a round trip: INC/DEC become ADD/SUB (same behavior), RST of a word becomes MOV(K0, …), independent circuits in one rung become separate rungs
  • Not exportable: RST of timers and counters, MELSEC timers with a word device as preset

Simulator (.ldtest)

Runs the program scan by scan on virtual time and checks it against scenarios.

scan 10ms

test "counts a part 5 s after it arrives" { set X0 on run 1 // one scan set X0 off set X2 on run 4s // 4 s of virtual time expect T0 off wait T0 on within 2s expect D0 1 }

CommandMeaning
set OP valueset an input or other device (on off 123 K123 H1F 5s)
force OP value / unforce OPpin a value (program writes are ignored) / release
run N / run 5srun N scans / a span of time
expect OP valuecheck the value now
wait OP value within 6srun until the value appears; fail after the time
watch OP...record after every scan
// ... or # ...comment

T0.ET (timer elapsed time) and C0.CV (counter value) can be read too. Every test starts from a fresh state.

rungkit test examples/conveyor.ldt examples/conveyor.ldtest

rungkit test -trace examples/conveyor.ldt examples/conveyor.ldtest # table of scans where values changed rungkit test -json examples/conveyor.ldt examples/conveyor.ldtest # for agents

The simulator follows ladder semantics:

  • Rungs run top to bottom and every instruction runs every scan (no short-circuit), so edges and timers never miss an input
  • Outputs are written immediately; later rungs in the same scan see them
  • An output branch uses the power flow from before the branch (like MELSEC MPS)
  • MELSEC T adds ticks of a free-running 100 ms clock each time it runs, as the CPU does, so it may turn on up to 100 ms before "preset + 1 scan"; counters stop at the set value (a set value of 0 counts as 1); MUL writes the high word to D(n+1), DIV the remainder to D(n+1), words wrap at 16 bits
  • SM400 (always ON), SM401 (always OFF), SM402 (ON for the first scan)
  • Division by zero stops with an error naming the scan, rung and element

Profiles

Name
melsec-iqrMitsubishi iQ-R: X/Y/B/W in hexadecimal, D0.3 bit of word, K/H constants, timers in 100 ms
melsec-fx5Mitsubishi FX5: like melsec-iqr, but X/Y in octal (X0-X7, X10, …)
iecIEC 61131-3: declare with sym name : type @ address, %IX0.0, T#5s

Structure (onion architecture)

Dependencies point inward only; internal/architecture_test.go enforces it.

LayerPackageRole
Domainladderrung tree, normalization, shape rules, IDs
profilevendor devices and instructions
checkerrors and warnings
simscan simulator
Applicationeditingedit commands, undo and redo
scenariorunning scenarios
workspaceopen, save, check, edit, export, scenarios (what CLI and MCP call); declares the interfaces it needs
Infrastructureldt.ldt text
ldtest.ldtest scenarios
jsoncodecJSON
export/melsec / export/stMELSEC list / Structured Text
plcopenPLCopen XML
filestorefiles (outside the working folder refused for MCP)
localesystem language
renderladder drawings as text (ascii) and SVG (svg)
Presentationcli / mcpserver / webcommand line / MCP server / browser bindings
Sharedi18nEnglish and Japanese messages (used by every layer; standard library only)
Compositioncmd/rungkit / cmd/rungkit-webwire the adapters and start (CLI and MCP / browser)

ตัดมาแค่ช่วงต้น อ่านต่อใน repo