AgentSkillsCN

mm-apr-e1-driver

在为LMSA13L直线电机配置HIWIN E1伺服驱动器时,可按以下步骤操作: (1) 驱动参数的设置与调优(使用Thunder软件); (2) 电机选型与编码器配置(霍尔/TS); (3) 速度与加速度限制,以及跟随误差保护机制; (4) CiA-402状态机与控制字/状态字的配置; (5) 增量式编码器系统的归零寻参序列。

SKILL.md
--- frontmatter
name: mm-apr-e1-driver
description: |
  Use when configuring HIWIN E1 servo drive for LMSA13L linear motor:
  (1) Drive parameter setup and tuning (Thunder software),
  (2) Motor selection and encoder configuration (Hall/TS),
  (3) Speed/acceleration limits and following error protection,
  (4) CiA-402 state machine and control word/status word,
  (5) Homing sequence for incremental encoder systems.

HIWIN E1 Servo Drive Configuration Guide

Version: APR-2026.01 | TwinCAT: 3.1 Build 4024.65

Parameter reference for E1 drive with LMSA13L linear motor in CSP mode.

Overview

This skill covers the configuration and tuning of HIWIN E1 servo drives for the LMSA13L linear motor system. The E1 drive uses CoE (CANopen over EtherCAT) with CiA-402 drive profile, supporting CSP (Cyclic Synchronous Position) mode for precise motion control.

Drive Specifications

ParameterValueNotes
ModelED1x-xx-75Per LMSA13L selection report
Power Supply380VAC 3-phaseMain circuit
Rated Current14.1 A(rms)Motor continuous
Peak Current (1s)42.4 A(rms)Motor instantaneous
Continuous Force308 N
Peak Force (1s)868 N
Max Velocity9.7 m/s (9700 mm/s)System limit
Max Acceleration≥29.4 m/s²Required for 1m constant velocity

Critical Parameters (Must Configure)

A1. Communication & Mode (CSP Foundation)

ObjectNameValuePurpose
0x6060Modes of Operation8CSP mode
-DC Sync ModeDC Sync0Multi-axis synchronization
-Cycle Time1ms typicalEtherCAT/NC task period

A2. Travel & Limits (4.2m stroke)

ObjectNameSettingPurpose
0x60FDDigital InputsMonitorHome/Pos-limit/Neg-limit/STO
0x6041 bit11Internal Limit ActiveMonitorLimit/fault detection

A3. Velocity & Dynamics (9.7 m/s max)

ObjectNameRecommendedPurpose
0x607FMax Profile Velocity9700 mm/s equivHard speed limit
0x6083Profile AccelerationPer calculationAccel limit
0x6084Profile DecelerationPer calculationDecel limit
0x6085Quick Stop DecelerationSet appropriateEmergency decel
0x605AQuick Stop Option Code2Slow down (E1 only supports 2)

A4. Following Error Protection (CSP Critical)

ObjectNameSettingPurpose
0x6065Following Error WindowSet thresholdPosition deviation limit
0x6066Following Error TimeoutSet timeoutProtection trigger delay

A5. Diagnostics

ObjectNameUsage
0x6040ControlwordState machine control
0x6041StatuswordState monitoring
0x603FError CodeFirst-look fault diagnosis

CiA-402 State Machine

code
         ┌──────────────┐
         │ Not Ready to │
         │ Switch On    │
         └──────┬───────┘
                │ (automatic)
         ┌──────▼───────┐
         │ Switch On    │
         │ Disabled     │
         └──────┬───────┘
                │ Shutdown (0x0006)
         ┌──────▼───────┐
         │ Ready to     │
         │ Switch On    │
         └──────┬───────┘
                │ Switch On (0x0007)
         ┌──────▼───────┐
         │ Switched On  │
         └──────┬───────┘
                │ Enable Operation (0x000F)
         ┌──────▼───────┐
         │ Operation    │
         │ Enabled      │◄── CSP Mode Active
         └──────────────┘

Controlword (0x6040) Bit Definition

BitNameDescription
0Switch OnRequest switch on
1Enable VoltageEnable power stage
2Quick StopActive low
3Enable OperationEnable torque/velocity
7Fault ResetRising edge clears fault

Statusword (0x6041) Bit Definition

BitNameDescription
0Ready to Switch OnPower stage ready
1Switched OnPower stage enabled
2Operation EnabledMotion enabled
3FaultFault active
7WarningWarning active
10Target ReachedPosition reached
11Internal Limit ActiveLimit triggered

Homing Sequence (Incremental Encoder)

Since LMSA13L uses incremental Hall encoder, homing is required at every power-up:

Standard Calibration Flow

  1. Move to Negative Limit (low speed)

    • MC_MoveVelocity negative direction
    • Monitor 0x60FD for Neg-Limit signal
    • Stop on trigger
  2. Seek Home from Negative

    • Move positive direction
    • Monitor Home switch signal
    • Stop and SetPosition(0.0 mm)
  3. Move to Positive Limit

    • Verify full travel
    • Confirm Pos-Limit signal
  4. Return to Home

    • Verify repeatability
    • Set calibration complete flag

Calibration Parameters

ParameterCalibration ModeProduction Mode
Velocity100-300 mm/s9700 mm/s max
Acceleration500 mm/s²Per design
Timeout60s per phaseN/A

Fault Codes Reference

CodeNameCause
0x2310Over CurrentShort circuit, motor wiring
0x3110DC Link Over VoltageRegen resistor insufficient
0x3120DC Link Under VoltagePower supply issue
0x4310Motor Over TemperatureTS sensor triggered
0x5441Following ErrorPosition deviation exceeded
0x7500Communication ErrorEtherCAT lost
0x8611STO ActiveSafety function triggered

TwinCAT NC / Drive Setup Checklist

EtherCAT / ESI / Scanning

  • Confirm E1 firmware version, copy matching ESI to TwinCAT directory
  • Keep only ONE ESI file (avoid conflicts)
  • TwinCAT Reload Device Descriptions → Scan Devices
  • Link Axis to NC Configuration

Unit Conversion (Critical)

  • NC Axis engineering units: mm / mm/s / mm/s²
  • Drive position units are increments (inc)
  • Calibrate inc/mm ratio by jogging known distance

Velocity Limits

  • NC Max velocity = 9700 mm/s
  • Drive 0x607F = equivalent in inc/s
  • Quick stop: 0x605A=2, 0x6085 properly set

Available References

  • references/parameter-table.md - LMSA13L × E1 complete parameter mapping table
  • references/encoder-mapping.md - Encoder behavior and actual motion correlation
  • references/version-selection.md - TwinCAT version selection guide (4024.65 vs 4024.68 vs 4026)