Overview
The Siemens SINAMICS parameter p1821[0...n] reverses the direction of rotation of the motor and the encoder actual value without changing the setpoint. The [0...n] indexing notation means the parameter exists once for each Drive Data Set (DDS) configured in the drive. On a default SINAMICS S120, G120, G120C, G120D, or SINUMERIK ONE simDrive, four Drive Data Sets are typically present, so p1821 appears as p1821[0] through p1821[3]. The active index follows whichever DDS is currently selected at runtime.
The reason p1821 is split across multiple indexes is that any parameter flagged with the "D" attribute in the SINAMICS parameter list is DDS-dependent. Each DDS is a self-contained copy of the drive configuration, and changing p1821[0] only affects DDS1. If a subcontractor reversed direction in DDS1 and the application always runs on DDS1, only that index needs to be changed. If the application switches DDSs at runtime, every index must reflect the intended rotation direction.
Function of p1821[0...n] — Direction of Rotation
Per the SINUMERIK ONE simDrive parameter documentation, p1821 performs a sign inversion on two quantities simultaneously:
- Motor direction of rotation — The internal speed setpoint polarity is flipped before it is applied to the closed-loop controller.
- Encoder actual value — The feedback direction is inverted so the controller still "sees" positive speed for the same mechanical direction after the reversal.
Because both setpoint and actual value are inverted together, the closed loop remains stable and the regulator does not need to be re-tuned. This is the recommended way to correct an installation where the motor or encoder was wired with reversed polarity, or where the mechanical definition of "positive" is opposite to the electrical default.
Parameter values:
| Value | Meaning |
|---|---|
| 0 | Direction of rotation is not inverted (default). |
| 1 | Direction of rotation is inverted (motor and encoder actual value sign-flipped). |
p1821 as a runtime direction selector. It is intended for commissioning corrections to wiring/mechanical mismatch. For runtime forward/reverse switching, use the control word direction bit (bit 11 / bit 15 of the telegram, depending on profile) or p1113 for setpoint inversion.What Are Drive Data Sets (DDS)?
A Drive Data Set is a complete copy of the drive's runtime configuration. Every DDS contains its own values for all DDS-dependent parameters. Switching the active DDS at runtime swaps the entire configuration in one cycle, allowing a single drive to behave as several different drives without re-parameterizing.
Standard SINAMICS drive firmware supports up to 4 DDSs (p0180 = 4 by default on most platforms). Each DDS references exactly one Motor Data Set (MDS) and one Encoder Data Set (EDS) per used encoder. The Command Data Set (CDS) is layered on top of the DDS for setpoint source selection.
| Data Set Type | Parameter p-number | Default Count | Function |
|---|---|---|---|
| DDS — Drive Data Set | p0180 |
1 to 4 | Closed-loop control parameters, ramp-function generator, limits, direction, motor/encoder assignment. |
| CDS — Command Data Set | p0170 |
1 to 2 (or up to 4) | Setpoint sources (analog, fieldbus, fixed setpoint, motor potentiometer), control word source, BICO interconnections on the command side. |
| MDS — Motor Data Set | p0130 |
1 to 4 | Motor nameplate, equivalent circuit, motor-specific controller tuning, temperature model. |
| EDS — Encoder Data Set | p0140 |
1 to 4 | Encoder type, pulses/rev, fine resolution, signal level, fault configuration. |
For SINAMICS S120, the SINAMICS S120 List Manual identifies DDS-dependent parameters with a "D" suffix or the "DDS" column in the parameter table. Any parameter whose value depends on which DDS is active will appear as pXXXX[0] through pXXXX[3] in STARTER, Startdrive, or the drive's web server.
Index Assignment — p1821[0] to p1821[3]
The mapping between index and Drive Data Set is direct:
| Parameter Index | Drive Data Set | Activated By |
|---|---|---|
p1821[0] |
DDS1 | Active when p0181 = 0 (default) or control word bit r0050.0 = 0 per active DDS selection. |
p1821[1] |
DDS2 | Active when r0051.0 = 1 (DDS2 selected). |
p1821[2] |
DDS3 | Active when r0051.1 = 1 (DDS3 selected). |
p1821[3] |
DDS4 | Active when r0051.2 = 1 (DDS4 selected). |
The active DDS is selected via:
-
Manual selection:
p0181(default 0 = DDS1) — sets the active DDS at power-up. - Control word bits: On CU320-2 and SINUMERIK NCU, the DDS selection bits are part of the drive-internal control word and can be interconnected from a higher-level PLC or from the NCK.
- PROFIdrive telegram: Some telegrams (e.g., Siemens telegram 111, 112, 116) contain DDS selection bits in the supplementary telegram.
After a DDS switch, the drive applies the new configuration on the next controller cycle (typically 1 to 4 ms on SINAMICS S120 with the standard current-controller clock of 125 µs).
Why Multiple Drive Data Sets Exist
Drive Data Sets solve real engineering problems where one physical drive must exhibit multiple personalities:
- Multi-motor operation: Two different motors (e.g., a high-speed spindle and a low-speed torque motor) on the same power section, switched mechanically by a contactor. Each DDS points to its own MDS.
- Dual encoder setups: Different encoders for different speed ranges (resolver at low speed, incremental at high speed). Each DDS uses a different EDS.
- Tuning profiles: Soft start-up tuning for commissioning versus production-tuned parameters for normal operation. Operator selects via HMI.
- Setpoint source switching: DDS1 receives setpoint from PROFIBUS/PROFINET; DDS2 receives from a local analog input — though this is more commonly handled with CDS, DDS-level interconnections are sometimes layered.
- Backup/secondary configuration: A spare commissioning profile stored in DDS2 that can be activated if DDS1 becomes suspect.
In the scenario from the original question, the subcontractor likely defaulted the drive to DDS1 (the standard first data set), set p1821[0] = 1, and left DDS2 through DDS4 untouched. If the application only uses DDS1, this works. If it later switches to DDS2/3/4, the direction will silently revert to default.
Related Direction and Polarity Parameters
Several parameters influence direction in SINAMICS. Understanding the relationship prevents redundant or conflicting settings.
| Parameter | Function | Layer |
|---|---|---|
p1820 |
Reversal of output phase sequence (rotating field direction). Reverses the electrical phase order U-V-W to U-W-V. | DDS |
p1821[0...n] |
Direction reversal of motor and encoder actual value without changing setpoint. | DDS |
p1113[0...n] |
Setpoint inversion. Flips the speed setpoint sign before the ramp-function generator. | CDS |
p0410 |
Encoder inversion (flips encoder actual value only). | EDS |
r0063 |
Actual speed smoothed (display only — useful for verifying direction). | |
r0061[0...n] |
Actual speed unsmoothed, per encoder. |
p1820 (output-phase reversal). If the encoder's A/B track or zero pulse is reversed, use p0410 (encoder inversion). Use p1821 when you want to flip the conceptual direction without touching the wiring.Accessing and Editing p1821
The parameter can be edited from any of the standard SINAMICS engineering tools. The procedure is identical across tools except for navigation:
- STARTER (classic): Project tree → Drive → Parameters → Search "p1821" → Inspect/change each index.
- Startdrive (TIA Portal): Drive device → Parameters → filter by number or name.
- SINAMICS Web server: Browse to drive IP → Parameters → search.
- BOP20 / IOP-2: Navigate to P1821, then use the index key (handshake icon on BOP20) to step through indexes.
- PLC direct write (PROFINET/PROFIBUS): Use PKW or non-cyclic parameter access (e.g., SFB52/SFB53 in STEP 7, RDREC/WRREC in TIA Portal). Write to parameter number 1821 + index.
Example: A WRREC to read/write p1821[2] from a SIMATIC S7-1500 uses parameter number 1821 (decimal) and index 2 in the data record.
Step-by-Step Commissioning Procedure for Direction Reversal
-
Identify how many DDSs the drive uses. Read
r0050(active DDS bit pattern) andp0180(DDS count). If only one DDS is in use, onlyp1821[0]matters. -
Lock the drive against unintended start. Issue OFF1 via control word, wait for
r0899.0 = 0, and ensure pulses are inhibited (r0899.11 = 0or no enable signal). - Backup current parameters. Use STARTER/Startdrive → Online → Upload (RAM to ROM) and save a project backup. This preserves the original direction setting if reversal is incorrect.
- Modify p1821 for each active DDS. For each index that the application may activate, set the value (0 = default, 1 = inverted). Example: To invert on all four DDSs, write 1 to indexes 0, 1, 2, and 3.
-
Save to non-volatile memory. Issue "Copy RAM to ROM" (
p0977 = 1) or use the tool's Save button. Without this step the change is lost on power cycle. - Power cycle the drive to ensure the change is loaded from the CF card / persistent storage on next boot.
-
Verify in commissioning mode. Run the motor at low speed with no load, observe
r0061andr0063. Positive speed setpoint must produce positive actual speed in the desired mechanical direction.
Verification and Diagnostic Checks
After modifying p1821, validate the change with the following checks before returning the drive to production:
| Check | Parameter / Method | Expected Result |
|---|---|---|
| Parameter value per index | Read r0722 or scroll p1821[0]–p1821[3] in the tool |
All intended indexes = 1, others = 0 |
| Persistent save | Power off → power on → re-read p1821[0…3] | Values retained |
| Direction under positive setpoint | Issue small positive setpoint with no load |
r0061 and r0063 positive |
| Speed controller stable | Observe r0046 (status word 1) |
No oscillation, no fault F07900 (motor blocked) or F07902 (drive stalled) |
| Following error | Monitor r2161 (speed setpoint–actual deviation) |
Within configured tolerance |
| Encoder health | Monitor r0461 (encoder status) |
Encoder remains OK; A-coded "encoder adjusted" state unchanged |
Common Field Issues and Troubleshooting
| Symptom | Likely Cause | Remediation |
|---|---|---|
| Direction reverses after DDS switchover. | Only one p1821[n] index modified; other DDSs use default 0. |
Modify every index that the application may activate. |
| Direction reverts after power cycle. | Parameter not copied to ROM (no p0977 = 1 save). |
Save RAM to ROM and verify CF card / persistent storage. |
| Motor runs in correct direction but speed is negative in trace. | Setpoint inversion via p1113 or wrong reference direction in encoder commissioning (p2506). |
Inspect p1113 per CDS and encoder commissioning reference point. |
| F31117 / F31118 encoder faults after change. | Encoder actual value inversion conflicting with hardware pin assignment or SSI protocol. | Use p0410 = 1 (encoder inversion) instead of p1821 if only encoder polarity is wrong. |
| Drift in position control (SINUMERIK). | Reversal without re-commissioning absolute encoder (p2507). |
After reversing direction on an absolute encoder, perform absolute encoder adjustment again or power on with adjusted zero mark. |
| Parameter write rejected with F01910 / F07900 family. | Write attempted during run state with parameter change-protection settings. | Pulse inhibit drive, then write. |
SINUMERIK-Specific Notes
On SINUMERIK ONE (and 840D sl) with simDrive, the drive parameter p1821[0...n] interacts with the NCK's axis direction-of-rotation logic. The NCK expects consistent positive direction across:
- Axis-specific MD32100 $MA_AX_MOT_DIR (motor direction of rotation)
- Drive-side
p1821per active DDS - Encoder-side adjustment MD34200 $MA_ENC_REFP_MODE and the absolute encoder offset
If the NCK issues a positive travel command and the drive reports r0061 < 0, the SINUMERIK will trip with axis-specific alarms ("Measuring system wrong polarity" or similar). Always validate direction in the NCK trace after a drive-side reversal. SINUMERIK ONE commissioning manuals also document the procedure for reversing an axis using the NCK command "Reference axis" with reversed direction.
Commissioning Recommendations
- Document every DDS with a description in STARTER/Startdrive ("DDS1: Motor A, encoder 1", etc.).
- Standardize on one DDS for production unless switching is genuinely required — fewer DDSs means fewer places where direction, ramps, and limits can drift.
-
Use
p1821for installation mismatch only. For routine forward/reverse at runtime, use the PROFIdrive control word direction bits orp1113. - Back up the project before any DDS-level change. A wrong reversal during a production run can cause mechanical damage.
- Verify on every DDS if the drive switches DDS at runtime. A common commissioning oversight is testing only on DDS1 and missing the fact that DDS2–DDS4 retain the original direction.
- Coordinate with PLC logic. If the PLC selects DDS bits based on machine state, document the DDS-to-state mapping in the PLC code comments.
FAQ
Why does p1821 have four indexes when I only changed one?
Each index of p1821[0...n] belongs to a Drive Data Set (DDS). A default SINAMICS drive supports up to four DDSs, so the parameter appears four times. Changing p1821[0] only affects DDS1; DDS2–DDS4 keep the default value 0 unless you change them explicitly.
Do I have to change all four p1821 indexes for direction reversal?
Only if your application actually activates those DDSs at runtime. Most drives run on DDS1 only, so changing p1821[0] is sufficient. If the PLC or NCU switches DDSs (e.g., DDS1 for production, DDS2 for setup), update each index that will be active, otherwise the direction will revert when the other DDS is selected.
How is p1821 different from p1820 or p1113?
p1820 reverses the electrical output phase sequence (U-V-W to U-W-V). p1821 reverses motor direction and encoder actual value without changing the setpoint. p1113 inverts the speed setpoint before the ramp-function generator. For a wiring mismatch, p1820 is the cleanest fix; for an encoder polarity mismatch, use p0410; for a runtime direction toggle, use p1113.
Why did my p1821 change disappear after a power cycle?
The change was not saved to non-volatile memory. From the engineering tool, run "Copy RAM to ROM" (p0977 = 1) or click Save. On SINAMICS drives with a CF card, the parameter is stored on the card; on G120 with IOP/BOP, the save prompt must be confirmed by pressing the OK button.
How do I see which DDS is currently active?
Read r0051[0] (active DDS bit field) or r0050 depending on firmware version. Bits in r0051 indicate the active DDS (bit 0 = DDS1, bit 1 = DDS2, etc.). STARTER/Startdrive's online diagnostics also display the active DDS in the drive status panel.
Where can I find the official Siemens documentation for p1821?
The parameter is described in the SINAMICS S120/S150 List Manual and in the SINUMERIK ONE simDrive parameter manual available on the Siemens Industry Online Support portal at support.industry.siemens.com. Drive Data Set concepts are explained in the SINAMICS S120 Function Manual "Drive Functions" chapter on data sets.