I. Introduction
In the field of industrial automation, Megmeet’s (MEGMEET) M6-N series AC servo drives are widely used in scenarios such as machine tools, robots, packaging machinery, and textile equipment due to their high precision, high reliability, and ease of use. As a core component of closed-loop control systems, encoders are responsible for feeding back the motor’s position, speed, and torque information. A fault in the encoder can directly lead to servo system shutdown, reduced precision, or even equipment damage. Among them, the ER019 encoder fault is one of the most common faults in the M6-N series, accounting for approximately 30% (according to fault statistics from an automotive parts factory in 2023). This article will systematically analyze the ER019 fault from the perspectives of fault definition, cause analysis, troubleshooting steps, solutions, and preventive measures, providing practical fault handling guidelines for engineering technicians.
II. Overview of ER019 Fault
1. Fault Code Definition
According to the Megmeet M6-N series user manual, ER019 falls under the “encoder fault” category and is specifically divided into two sub-faults (detailed information can be viewed through the drive panel or debugging software):
- Er.019-1: Encoder Type Error: The drive cannot recognize the feedback signal format of the encoder (such as incremental/absolute type, signal type, line count, etc.), resulting in closed-loop control failure.
- Er.019-2: Encoder Disconnection: The drive cannot detect the encoder’s feedback signal (such as loss of A/B phase pulses or abnormal Z phase signal), or the signal interruption time exceeds the threshold (usually 100 ms).
2. Core Functions of the Encoder
The encoder is the “eye” of the servo system, with functions including:
- Position Feedback: Calculating the motor’s rotation angle through pulse counting (incremental) or directly outputting the absolute position (absolute).
- Speed Feedback: Calculating the motor’s rotational speed through pulse frequency.
- Torque Feedback: Some encoders (such as resolvers) can feed back the motor’s torque information.
If the encoder fails, the drive cannot achieve precise closed-loop control, which may trigger secondary faults such as “overcurrent” or “overload” and even damage the motor.
III. In-Depth Analysis of ER019 Fault Causes
(A) Encoder Type Error (Er.019-1)
An encoder type error is one of the primary causes of the ER019 fault (accounting for approximately 45%). The core issue is a mismatch between the drive parameters and the actual encoder, with specific causes including:
1. Parameter Setting Errors
- Incorrect Encoder Type Selection: The M6-N series drive sets the encoder type through parameter Pr0.03 (encoder type selection) (e.g., 0 = incremental, 1 = absolute, 2 = resolver). If an incremental encoder is actually used but Pr0.03 is set to “1” (absolute), the drive cannot parse the feedback signal.
- Incorrect Encoder Line Count Setting: Parameter Pr0.04 (encoder line count) must match the encoder’s nameplate (e.g., 2500 P/R, 1024 P/R). If set incorrectly, the drive’s calculated speed/position will be inaccurate, triggering the fault.
- Incorrect Signal Type Setting: Parameter Pr0.06 (encoder signal type) must match the encoder’s output signal (e.g., 0 = TTL, 1 = HTL, 2 = Sin/Cos). If a TTL encoder is set to HTL, the signal level mismatch will prevent recognition.
2. Hardware Incompatibility
- Non-specified Encoders: Using third-party encoders not certified by Megmeet (such as a certain brand’s incremental encoder) may result in signal format or electrical characteristics incompatible with the M6-N series.
- Firmware Version Mismatch: After the encoder firmware is upgraded, the drive parameters are not updated accordingly (e.g., changes in the communication protocol for absolute encoders).
3. Parameter Loss or Accidental Modification
- Factory Reset: If the drive is accidentally restored to factory settings, the encoder parameters (Pr0.03–Pr0.06) are reset to default values (e.g., incremental, 1000 P/R), which may not match the actual encoder.
- Human Error: Untrained operators may randomly modify encoder parameters (e.g., changing absolute to incremental).
(B) Encoder Disconnection (Er.019-2)
An encoder disconnection is another primary cause of the ER019 fault (accounting for approximately 55%). The core issue is an interruption in the feedback signal transmission link, with specific causes including:
1. Physical Cable Faults
- Cable Breakage: The encoder cable may break internally due to long-term vibration or compression when passing through moving parts such as drag chains or protective plates (e.g., a machine tool spindle servo cable broken due to protective plate jamming).
- Loose Connectors: Connectors on the encoder or drive side (such as the CN2 interface) may become loose due to vibration, resulting in poor pin contact (e.g., bent or oxidized pins on an M12 circular connector).
- Cable Aging: Damage to the cable’s insulation (e.g., corrosion from oil or high-temperature aging) may cause short circuits or grounding of the conductors.
2. Incorrect Cable Selection
- Non-shielded Cables: Encoder signals are weak (TTL signal level: 0–5 V). Using non-shielded cables makes them susceptible to electromagnetic interference (EMI), leading to signal errors that the drive may misinterpret as disconnections.
- Excessive Length: The M6-N series specifies a maximum encoder cable length of 50 meters (incremental) or 30 meters (absolute). Beyond this, signal attenuation is severe, preventing the drive from detecting the signal.
- Incorrect Core Count: The encoder requires a 5-core cable (power + signal). Using a 4-core cable will result in missing power or signal.
3. Electromagnetic Interference (EMI)
- Improper Wiring: If the encoder cable is routed parallel to power lines (L1/L2/L3) with a spacing of less than 10 cm, high-frequency electromagnetic radiation from the power lines may couple into the encoder signal lines, causing signal distortion.
- Poor Grounding: If the encoder cable’s shield is not grounded or is grounded at both ends (forming a ground loop), interference cannot be suppressed.
4. Encoder Internal Faults
- Internal Wire Breakage: Internal leads in the encoder may break due to vibration (e.g., motor shaft vibration causing encoder chip pin desoldering).
- Chip Damage: The encoder chip may be damaged by overvoltage (e.g., power supply voltage fluctuations) or overcurrent (e.g., short circuits), preventing signal output.
IV. ER019 Fault Troubleshooting Steps (Logical Process)
1. Step 1: Confirm the Fault Type
View the fault details through the drive panel or debugging software (such as Megmeet M6 Studio):
- Panel Display: Er.019 + sub-code (e.g., Er.019-1 or Er.019-2).
- Software Display: The fault record will indicate “encoder type error” or “encoder disconnection” and record the operating status at the time of the fault (e.g., speed, current).
Key Judgment: If it is Er.019-1, prioritize checking parameters; if it is Er.019-2, prioritize checking the wiring.
2. Step 2: Check Encoder Type Parameters (for Er.019-1)
Operation Steps:
- Enter the drive parameter mode (press the panel SET key and enter the password “0000”).
- Locate the encoder parameters: Pr0.03 (encoder type), Pr0.04 (encoder line count), Pr0.06 (signal type).
- Compare with the encoder nameplate: For example, if the nameplate indicates “incremental, 2500 P/R, TTL signal,” Pr0.03 should be set to “0,” Pr0.04 to “2500,” and Pr0.06 to “0.”
- If the parameters are incorrect, modify them to the correct values and save (press the ENTER key).
Note: For absolute encoders, additionally check the battery voltage (parameter Pr0.12). If the battery voltage is < 3 V, replace the battery to avoid position loss.
3. Step 3: Check Physical Wiring (for Er.019-2)
Tools Required: Multimeter (resistance/voltage range), oscilloscope (optional), encoder tester (optional).
Operation Steps:
- Visual Inspection: Check the encoder cable for damage, compression, or aging (e.g., cracked sheath, exposed conductors).
- Connector Inspection: Unplug and replug the connectors on the encoder and drive sides (such as CN2), checking for bent or oxidized pins (clean with alcohol).
- Continuity Test: Use a multimeter to measure the resistance between corresponding pins at both ends of the cable (e.g., pin 1 on the drive-side CN2 and pin 1 on the encoder side). Normal resistance should be < 1 Ω. If the resistance is infinite, the cable is broken.
- Power Test: Measure the encoder power supply at the drive side (e.g., pin 1 on CN2). The normal voltage should be 5 V ± 0.1 V (default for M6-N series). If the voltage is abnormal, check the drive’s power module.
- Signal Test: Use an oscilloscope to measure the encoder signals (e.g., A and B phases). Normal signals should be square waves (TTL) or sine waves (Sin/Cos). If the signals are missing or distorted, the wiring or encoder is faulty.
4. Step 4: Substitution Testing (Quick Fault Localization)
- Replace the Cable: Use a spare encoder cable (same model and length) to replace the original cable. If the fault disappears, the original cable is damaged.
- Replace the Encoder: Use a spare encoder (same model) to replace the original encoder. If the fault disappears, the original encoder is damaged.
- Replace the Drive: If the above substitutions are ineffective, the drive’s encoder interface circuit may be faulty (e.g., CN2 interface chip damage), requiring contact with the manufacturer for repair.
5. Step 5: Check for Electromagnetic Interference (for difficult disconnection faults)
- Wiring Inspection: Confirm that the encoder cable is spaced ≥ 10 cm from power lines and crosses them perpendicularly (avoid parallel routing).
- Shield Inspection: The encoder cable shield should be grounded at only one end (drive side, encoder side not grounded) to avoid ground loops.
- Interference Test: Use an oscilloscope to measure interference components in the encoder signal (e.g., high-frequency noise). If the interference amplitude exceeds 10% of the signal amplitude, install a filter (e.g., an EMI filter on the drive’s input side).
V. ER019 Fault Solutions (Targeted Plans)
(A) Solutions for Encoder Type Error (Er.019-1)
- Reconfigure Parameters: Modify Pr0.03, Pr0.04, and Pr0.06 according to the encoder nameplate, save the changes, and restart the drive.
- Replace with Compatible Encoder: If a third-party encoder is used, replace it with a Megmeet-specified model (e.g., MEGMEET EN-2500-TTL incremental encoder).
- Restore Parameter Backup: If parameters are lost, restore them from a backup (regular parameter backups are recommended).
- Train Operators: Avoid accidental parameter modifications (e.g., set parameter modification permissions).
(B) Solutions for Encoder Disconnection (Er.019-2)
- Repair/Replace Cable:
- If the cable is broken: Re-crimp the connector (using a dedicated crimping tool) or replace it with the same model cable (e.g., MEGMEET EC-5M-SHIELD shielded cable).
- If the connector is loose: Clean the pins and re-plug, or replace the connector (e.g., M12 circular connector).
- Optimize Wiring:
- Route the encoder cable separately from power lines (spacing ≥ 10 cm).
- Use shielded cables and ground the shield at only one end (drive side).
- Avoid routing the cable through moving parts (e.g., drag chains). If unavoidable, use flexible cables (bending radius ≤ 10 times the cable diameter).
- Replace Encoder: If the encoder is internally damaged (e.g., chip burnout), replace it with the same model (note that parameters must be set for absolute encoders).
- Suppress Electromagnetic Interference: Install an EMI filter on the drive’s input side (e.g., MEGMEET MF-30A filter) or add a magnetic ring to the encoder signal lines.
VI. Case Studies (Real-World Validation)
Case 1: ER019-2 Fault (Encoder Disconnection) in a Machine Tool Spindle Servo
Fault Phenomenon: A stamping machine tool’s spindle servo (M6-N-2.9KW) suddenly stopped, with the panel displaying Er.019 and the software indicating “encoder disconnection.”
Troubleshooting Process:
- Check Encoder Cable: The cable was found to be flattened and damaged where it passed through the machine tool’s protective plate.
- Continuity Test: Using a multimeter, the A-phase signal line (pin 3) was found to be open between the drive and encoder sides (infinite resistance).
- Replace Cable: The cable was replaced with the same model shielded cable (MEGMEET EC-5M-SHIELD).
- Verification: After restarting the drive, the fault disappeared, and the machine tool resumed normal operation.
Root Cause: The cable was broken due to compression by the protective plate, interrupting the signal.
Case 2: ER019-1 Fault (Encoder Type Error) in a Packaging Machine Feed Servo
Fault Phenomenon: During debugging of a packaging machine’s feed servo (M6-N-1.5KW), Er.019 appeared, with the software indicating “encoder type error.”
Troubleshooting Process:
- Check Parameters: Pr0.03 was set to “1” (absolute encoder), but an incremental encoder was actually used (nameplate: “incremental, 2048 P/R”).
- Modify Parameters: Pr0.03 was changed to “0” (incremental), and Pr0.04 was changed to “2048.”
- Verification: After saving the parameters and restarting, the fault disappeared, and the feed accuracy was restored to ±0.01 mm.
Root Cause: The operator accidentally set the incremental encoder as an absolute encoder, causing a parameter mismatch.
VII. ER019 Fault Preventive Measures (Reduce Faults at the Source)
1. Regular Maintenance (Critical)
- Daily Check: Inspect the encoder cable for damage or compression.
- Weekly Check: Measure cable continuity (using a multimeter) and clean encoder connectors (using alcohol).
- Monthly Check: Check encoder mounting screws for looseness and measure encoder power supply voltage (5 V ± 0.1 V).
- Quarterly Check: Replace absolute encoder batteries (if voltage < 3 V) and back up drive parameters.
2. Proper Selection and Installation
- Encoder Selection: Prioritize Megmeet-specified models (e.g., EN series) to ensure compatibility with the M6-N series.
- Cable Selection: Use shielded cables (aluminum foil + braided shield), with ≥ 5 cores (power + signal) and a length not exceeding the drive’s specified value.
- Installation Requirements: Ensure encoder and motor shaft coaxiality ≤ 0.02 mm and connector insertion force ≥ 5 N (to prevent looseness).
3. Optimize Wiring and Grounding
- Wiring Rules: Route encoder cables separately from power lines (spacing ≥ 10 cm) and cross them perpendicularly.
- Grounding Requirements: Ground the encoder cable shield at only one end (drive side) with a grounding resistance ≤ 4 Ω.
- Interference Suppression: Install an EMI filter on the drive’s input side and add magnetic rings to encoder signal lines in high-interference scenarios.
4. Personnel Training and Management
- Operators: Must undergo Megmeet training and be familiar with parameter settings and fault troubleshooting procedures.
- Parameter Management: Set parameter modification permissions (e.g., password protection) to prevent accidental operations.
- Fault Recording: Establish a fault log to record fault time, cause, and solution, and analyze fault trends (e.g., frequent disconnections in a specific device may indicate wiring improvements are needed).
VIII. Extended Knowledge (Deeper Understanding)
1. Correspondence Between Encoder Types and M6-N Series Parameters
| Encoder Type | Pr0.03 Setting | Pr0.04 (Line Count) | Pr0.06 (Signal Type) |
|---|---|---|---|
| Incremental (TTL) | 0 | 1000–10000 | 0 |
| Incremental (HTL) | 0 | 1000–10000 | 1 |
| Absolute (SSI) | 1 | 1024–16384 | 2 |
| Resolver | 2 | – | 3 |
2. Key Points for Encoder Cable Selection
- Shielding: Must use dual shielding (aluminum foil + braided shield) for strong EMI resistance.
- Core Count: Incremental encoders require 5 cores (VCC, GND, A, B, Z), while absolute encoders require 6 cores (adding a clock line).
- Material: The sheath should be PVC or PUR (oil- and heat-resistant), and the conductor should be copper (good conductivity).
- Bending Radius: For drag chain applications, the bending radius should be ≤ 10 times the cable diameter (e.g., if the cable diameter is 5 mm, the bending radius should be ≤ 50 mm).
3. Methods for Suppressing Electromagnetic Interference (EMI)
- Filtering: Install input filters on the drive’s input side (to suppress grid interference) and output filters on the output side (to suppress motor interference).
- Isolation: Use isolation transformers (to isolate the grid from the drive) or fiber-optic communication (to isolate encoder signals).
- Grounding: Ensure the drive, motor, and encoder share a common ground (grounding resistance ≤ 4 Ω) to avoid ground loops.
IX. Conclusion
The ER019 encoder fault is a common issue in Megmeet’s M6-N series servo drives, primarily caused by parameter setting errors or interruptions in the signal transmission link. By following a systematic troubleshooting process (confirm fault type → check parameters → check wiring → substitution testing → suppress interference), faults can be quickly located and resolved. The key to preventing ER019 faults lies in regular maintenance, proper selection, optimized wiring, and personnel training to reduce faults at the source.
For engineering technicians, mastering ER019 fault troubleshooting and solutions not only improves equipment utilization (reducing downtime) but also enhances servo system reliability (avoiding secondary faults). It is recommended that enterprises establish a comprehensive fault management system and leverage Megmeet’s technical support (e.g., remote debugging, parameter backup) to achieve rapid fault response and prevention.
