- name
SKILL.md
ไฟล์สกิลยังคงอยู่ในรีโพซิทอรีของผู้เผยแพร่
วางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add matlab/simulink-agentic-toolkit --skill simulink-control-motors -a cursor -yวางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add matlab/simulink-agentic-toolkit --skill simulink-control-motors -a claude-code -yวางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add matlab/simulink-agentic-toolkit --skill simulink-control-motors -a codex -yวางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add matlab/simulink-agentic-toolkit --skill simulink-control-motors -a grok -yส่งข้อความที่คัดลอกไว้ในแชต Grok Bot แล้ว Bot จะดึง SKILL.md นี้จาก GitHub และเพิ่มลงในสกิลที่ Bot ทุกตัวของคุณใช้ร่วมกัน
Install this skill: https://github.com/matlab/simulink-agentic-toolkit/tree/HEAD/skills-catalog/control-systems/simulink-control-motorsจากผู้เผยแพร่
Build motor control solutions using Motor Control Blockset (MCB): characterize motors, select control algorithms (FOC, DTC, six-step, V/f), compose Simulink models, tune gains, configure sensorless estimation, and generate code for embedded targets.
references/common/COMMON-mcb.md (shared conventions — always load first)references/common/ROUTER-mcb.md for block routing and resolution rulesreferences/configurations/ for non-FOC architectures (DTC, six-step, V/f, BLDC, ACIM)references/common/mcb-examples.md for official MCB example referencesRecommends control strategies, selects patterns, evaluates feature compatibility.
Load: references/design/beginner-path.md for enquiry protocol and learning paths.
references/design/beginner-path.mdreferences/design/application-catalog.md by user's keywords → get Pattern + Featuresreferences/design/composition-rules-combining.mdreferences/design/architecture-patterns.mdCritical rules:
Output: basePattern + features + motorType + controlMode → carry to Building section.
Constructs complete models using wiring topologies, composition rules, and model_edit.
BEFORE using generic wiring tables, check references/configurations/ for a matching file:
If a config file exists: follow it directly. Otherwise: proceed to Step 2.
references/wiring/composition-rules.mdreferences/wiring/composition-rules-infrastructure.mdreferences/wiring/composition-rules-integration.mdControllerParametersSource='internal', ExternalReset='none', InitialConditionSource='internal'ThetaInput='Electrical position', AngleInput='Radians'Key rules:
references/configurations/ FIRSTSets mask parameters for 30+ MCB block types using motor datasheet values.
Reference files:
references/block-config/block-configurations.md — control blocksreferences/plants/block-configurations-plants.md — plant/sensor blocksreferences/block-config/block-configurations-utility.md — utility blocksreferences/block-config/block-configurations-bldc.md — BLDC blocksCritical configurations (must get right):
Key rules:
model_edit configure for setting parametersComputes PI gains, IIR filters, and PU normalization.
Full workflow: references/common/detailed-workflows.md § Tuning Motor FOC Gains
Quick summary: Use mcb.calcFOCGains(pmsm, inverter, Ts, Ts_speed) for all categories except Category A (kt/J > 10,000) which needs manual Ki_speed override. MCB uses Ki×Ts convention — never pass raw Ki.
Reference files: references/tuning/parameter-computation.md, references/shared/gain-formulas.md
Generates and validates LUTs from FEA/measurement data.
Full workflow: references/common/detailed-workflows.md § Importing Nonlinear Motor Data
Quick summary: Use mcb.generateMotorLUT(pmsm, inverter, purpose) with correct purpose string. Validate trefVec symmetry and FluxDTable first row = 0.
Reference files: references/nonlinear-data/pmsmlut-structure.md
Converts between MCB ideal plants, Simscape, and FEM-parameterized models.
Full workflow: references/common/detailed-workflows.md § Building Motor Plant
Quick summary: Solver must change to ode14x for Simscape. Add angle adapter Gain(1/(2*pi)). Gains need re-tuning after plant swap.
Reference files: references/plants/plant-model-converters.md, references/plants/block-configurations-plants.md
Commissioning workflows for Rs, Ld, Lq, FluxPM, J, B.
Full workflow: references/common/detailed-workflows.md § Estimating Motor Parameters
Quick summary: Estimate in order: Rs → Ld/Lq → FluxPM → J/B. Motor must be stationary for Rs and Ld/Lq. Feed results into mcb.calcFOCGains.
Reference files: references/estimation/estimation-procedures.md, references/estimation/estimation-to-tuning.md
Configures I/F startup, SMO, HFI, EEMF observers, and handoff logic.
Full workflow: references/common/detailed-workflows.md § Estimating Sensorless Motor Position
Quick summary: SPM → SMO + I/F. IPM → HFI + SMO hybrid. ACIM → Flux Observer + I/F. Always set SMO PositionUnit='Radians'.
Reference files: references/sensorless/sensorless-blocks.md, references/sensorless/hfi-scheduler.md
Diagnoses errors, oscillations, zero-torque using structured checklists.
Full workflow: references/common/detailed-workflows.md § Diagnosing Motor Control
Quick summary: Identify symptom → run matching checklist → apply fix from auto-fix-recipes → validate. Never rebuild from scratch.
Reference files: references/diagnostics/auto_fix/ERROR_PATTERNS.md, references/diagnostics/auto_fix/auto-fix-recipes.md, references/diagnostics/model-sanity-check.md
Copyright 2026 The MathWorks, Inc.
Build motor control solutions using Motor Control Blockset for PMSM, induction motors, BLDC, and SynRM. Implement field oriented control, sensorless FOC, six-step control, speed control, current contr
---name: simulink-control-motorsdescription: Build motor control solutions using Motor Control Blockset for PMSM, induction motors, BLDC, and SynRM…---# skills-catalog/control-systems/simulink-control-motors/SKILL.mdภาพรวม
Build motor control solutions using Motor Control Blockset for PMSM, induction motors, BLDC, and SynRM. Implement field oriented control, sensorless FOC, six-step control, speed control, current control, and torque control. Configure SVPWM, flux weakening, MTPA, MTPV, control of non-linear motors, inverter control, and motor parameter estimation. Compose motor drive models, tune gains, and generate embedded code.
FAQ
ดาวน์โหลด skills-catalog/control-systems/simulink-control-motors/SKILL.md จากผู้เผยแพร่ หรือคัดลอกพาธแล้วเปิดรีโพซิทอรี PlugMCP แสดงรายการสกิลเท่านั้น ไม่ได้โฮสต์ไฟล์
ผู้เผยแพร่เก็บไว้ที่ https://github.com/matlab/simulink-agentic-toolkit
Claude, Cursor, Codex และ Grok Build อ่าน SKILL.md ที่คุณเพิ่มจากรีโพซิทอรีของผู้เผยแพร่ได้ ส่วน Grok Bot จะติดตั้งให้เมื่อคุณส่งลิงก์โฟลเดอร์ GitHub ของสกิลในแชต