Explainer
SIWAREX U HMI calibration: 5-second wait and EEPROM writes
Short answer
Insert at least a 5-second PLC delay between SIWAREX U adjustment commands 1 and 2 in DR11, or the module rejects the second command with a synchronous error in DR31. One two-point calibration counts as 2 EEPROM writes against the module's 100,000-cycle endurance rating whenever the adjustment digits change. For frequent pre-fill hopper zeroing with command 3, configure the DR3 zeroing-storage flag to RAM, or calculate net tare in the PLC, so routine batching does not wear out non-volatile memory.

On this page
- Which DR11 commands calibrate or zero a SIWAREX U channel?
- Why does SIWAREX U reject back-to-back adjustment commands?
- Does one two-point calibration count as two EEPROM writes?
- How fast does EEPROM wear out if command 3 runs before every hopper fill?
- How should you configure DR3 zeroing or tare for frequent hopper filling?
- What DR31 diagnostics prove a calibration or zero command failed?
- Questions asked
On a SIWAREX U weighing module controlled from an S7-300 or ET 200M PLC and WinCC flexible HMI, enforce at least a 5-second PLC delay between adjustment commands 1 and 2 in Data Record 11 (DR11), budget 2 EEPROM writes per completed two-point calibration against the 100,000-cycle endurance rating, and set the Data Record 3 (DR3) zeroing-storage flag to RAM before running command 3 ahead of every hopper fill. Skipping that delay triggers an immediate synchronous rejection in Data Record 31 (DR31), while leaving frequent pre-fill zeroing pointed at EEPROM burns through non-volatile memory years ahead of schedule.
Which DR11 commands calibrate or zero a SIWAREX U channel? #
Channel 1 accepts 2-byte command words in DR11, using code 1 for adjustment zero, code 2 for adjustment weight 1, and code 3 to zero the scale, while Channel 2 uses DR12 with a 100 offset (codes 101, 102, and 103).
Calibration and operational zeroing can both leave the HMI displaying zero, yet they act on different data inside the module. Adjustment commands 1 and 2 establish the linear relationship between the load cell signal and engineering weight units, saving both endpoints permanently in non-volatile memory. Command 3 only moves the active zero reference to absorb small dead-load drift, and its storage target depends on the zeroing-storage setting in DR3 for Channel 1 or DR4 for Channel 2.
| Channel 1 (DR11) | Channel 2 (DR12) | Operation | Memory target | Engineering role |
|---|---|---|---|---|
| 0 | 0 | No command / clear synchronous errors | Volatile status | Clears active synchronous error flags in DR31/DR32 |
| 1 | 101 | Adjustment zero valid | EEPROM | Saves empty-scale dead-load digits; observe the mandatory wait interval before code 2 |
| 2 | 102 | Adjustment weight 1 valid | EEPROM | Saves span calibration digits with the known calibration load in place |
| 3 | 103 | Set scale to zero | EEPROM or RAM (via DR3/DR4) | Moves the active zero point; configure RAM for frequent hopper batching |
| 9 | 109 | Clear synchronous error bits | Volatile status | Resets rejected-command error flags after fixing the fault |
Before sending any adjustment command from WinCC flexible, write the complete parameter block to DR3 (or DR4 on Channel 2) as specified in the SIWAREX U Equipment Manual (Entry ID 28392477). That block sets WGH_UNIT_1_M for weight unit, CHAR_V_1_M for load cell characteristic range (up to 1 mV/V, 2 mV/V, or 4 mV/V), DEC_PLACE_1_M for decimal places, AWGHT_1_M for calibration weight, and FLT_SET_1_M for the digital low-pass filter (off, or 5 Hz, 2 Hz, 1 Hz, 0.5 Hz, 0.2 Hz, 0.1 Hz, or 0.05 Hz). If you are still wiring load cells or building initial parameter records, review SIWAREX U load cell setup on a TP900 Comfort HMI first.
Why does SIWAREX U reject back-to-back adjustment commands? #
SIWAREX U enforces an internal 5-second waiting period after every adjustment command to protect non-volatile memory, rejecting any second adjustment command sent early and raising synchronous error Bit 6 in DR31 for Channel 1 or DR32 for Channel 2.
When your PLC triggers code 2 before that internal timer expires, the module discards the write and reports "Waiting time of 5 sec. for adjustment commands not observed" in its synchronous diagnostic record. Never rely on operator pacing, HMI button animations, or screen switches to create the gap. Double-taps, buffered HMI scripts, or communication retries can deliver back-to-back writes faster than a technician expects.
In the official Getting Started S7 project (Entry ID 28391777) for S7-300 and ET 200M stations, function block FB45 (SIWA_U) runs in OB1 with its ADDR input matched to the module's 16-byte input and 16-byte output address space. Under the hood, FB45 invokes acyclic data record transfers (SFB52 RDREC and SFB53 WRREC) to send DR11 commands and read back updated DR3 calibration digits and DR31 status words. If your plant standardizes on a PC runtime rather than WinCC flexible, compare how tags and screens bind to the PLC block in SIWAREX HMI example projects for WinCC Professional.
Build the adjustment interlock directly in the S7 PLC program so an early HMI button press cannot reach DR11:
- Capture the HMI adjustment-zero request on a single rising edge so a held touchscreen button sends code 1 once instead of flooding the module.
- Start a PLC timer covering the full mandatory adjustment interval as soon as
FB45confirms code 1 was accepted, adding a brief scan margin if desired. - Keep code 2 locked out in PLC logic, and gray out or suppress the HMI span-calibration button, until that timer expires, the test weight sits steady on the hopper, and DR31 shows no active synchronous error.
- Trigger code 2 on a single rising edge, then read DR3 and DR31 back through
FB45to verify that the span digits updated cleanly. - When a synchronous rejection occurs, stop automatic retries, display the DR31 error bit to the operator, and clear it with code 0 or code 9 only after correcting the timing or load condition.
Does one two-point calibration count as two EEPROM writes? #
Yes, executing code 1 for adjustment zero followed by code 2 for adjustment weight 1 counts as 2 EEPROM writes whenever both points yield new adjustment digits, drawing against the module's 100,000-cycle guaranteed EEPROM endurance rating.
Both adjustment commands commit their calculated digits to non-volatile memory so the scale keeps its zero and span calibration across power outages. According to the SIWAREX U Equipment Manual (Entry ID 28392477), the module compares incoming values against what is already saved and executes a physical EEPROM write only when the data actually differs. Even with that change-only safeguard, real load-cell drift and mechanical settling almost always produce slightly different counts on the 16-bit unipolar ADC (65,535 internal parts), so plan your write budget on both adjustment commits executing every calibration.
Real EEPROM failures on SIWAREX U rarely come from scheduled operator calibrations; they come from unintended PLC writes. Never call DR3 or DR11 writes cyclically inside OB1, never loop automatic retries when an adjustment command returns a synchronous error, and never tie a maintained HMI toggle bit directly to a command trigger. If a valid adjustment command is refused outright with "Command not active, EEPROM write protection is active," inspect the physical DIP switch on the rear of the module housing to confirm hardware write protection is turned off before troubleshooting code.
How fast does EEPROM wear out if command 3 runs before every hopper fill? #
Running command 3 with EEPROM storage selected consumes 1 EEPROM write whenever the empty-hopper reading shifts, which in an illustrative 120-fill/day operation exhausts the module's endurance ceiling in 2.78 years compared with 4,166.7 years using RAM storage.
Consider an illustrative weighing hopper that performs monthly two-point calibrations (12 calibrations/year) and runs 120 fills/day across 300 operating days/year, under worst-case conditions where slight empty-hopper drift forces every pre-fill zeroing command to write new digits:
- Annual batch count:
120 fills/day * 300 days/year = 36,000 fills/year - Annual calibration writes:
12 calibrations/year * 2 writes/calibration = 24 writes/year - EEPROM zeroing mode total:
36,000 zeroing writes/year + 24 calibration writes/year = 36,024 writes/year - RAM zeroing mode adds
0 writes/yearto EEPROM, leaving only the annual calibration write count. - Time to rated endurance:
100,000 writes / 36,024 writes/year = 2.78 yearsin EEPROM mode, versus100,000 writes / 24 writes/year = 4,166.7 yearsin RAM mode.
Because SIWAREX U skips physical writes when incoming digits match EEPROM, identical empty-hopper readings can extend service life past that worst-case floor. Bulk material hoppers, however, accumulate minor product heel, gate vibration, and thermal drift between batches, so most cycles do shift the zero count. Substitute your own daily batch rate and operating schedule into the same ratio to check whether non-volatile zeroing fits inside your machine's design life; do not treat this illustrative batch rate as a universal cutoff.
How should you configure DR3 zeroing or tare for frequent hopper filling? #
For routine pre-fill hopper zeroing, either set the DR3 zeroing-storage flag to RAM before issuing command 3, or compute a software net tare in the S7 PLC that sends 0 commands to DR11 and consumes 0 EEPROM writes per batch.
Choose command 3 with DR3 RAM storage when you want the module itself to zero out small empty-scale drift in DR31 and your process can re-zero an empty hopper after a power loss. Switching that flag to RAM affects only operational zeroing digits; adjustment digits from commands 1 and 2 remain power-failure-safe in EEPROM. Confirm the zeroing-storage flag's exact bit position in the SIWAREX U Equipment Manual (Entry ID 28392477) or set it in SIWATOOL U. When changing DR3 from the S7 program, read DR3 via FB45 first, change only that flag so existing scale parameters stay intact, write the complete block back, and read DR3 again to verify the live module configuration.
Choose a PLC software net tare when you need to subtract a container weight or leftover hopper heel without altering the module's zero reference. Declare three illustrative user-defined DINT tags in an S7 data block (GrossWeight_HMI, TareOffset, and NetWeight_HMI, each initialized to 0) and copy the live gross value from DR31 into GrossWeight_HMI. On the operator's rising-edge tare command, latch TareOffset := GrossWeight_HMI and compute NetWeight_HMI := GrossWeight_HMI - TareOffset each scan. Prove the logic on an isolated bench or dry run: place a known test mass on the scale, trigger tare so NetWeight_HMI reads 0 while GrossWeight_HMI still shows the mass, then add a second test mass and confirm NetWeight_HMI reflects only the added weight while DR11 stays idle.
Keep the DR3 zeroing-storage flag set to EEPROM only when retaining the active zero offset across a power outage on a loaded or non-empty scale is a hard process requirement, and only after verifying that your cumulative batch rate stays well under the module's endurance ceiling for the machine's service life. Do not mix the two concepts on your HMI: label command 3 as zeroing and label a PLC subtraction as tare so operators know which action touches the weighing module.
What DR31 diagnostics prove a calibration or zero command failed? #
DR31 on Channel 1 and DR32 on Channel 2 flag rejected commands through summary status Bit 1 and eight synchronous error bits, enforcing a minimum span of 3,000 internal counts (more than 5% of nominal load cell capacity) between adjustment zero and adjustment weight 1.
A displayed weight of zero on WinCC flexible never proves a DR11 command succeeded. Always surface DR31/DR32 error bits on the calibration screen so commissioning technicians can separate timing faults from mechanical or parameter mistakes:
- Synchronous Bit 0: span between adjustment zero and adjustment weight 1 is too small (below the required internal count and nominal capacity minimum), typically caused by using too light a test weight.
- Synchronous Bit 1: command not executed or malfunction; also inspect the rear EEPROM write-protect DIP switch on non-volatile commands.
- Synchronous Bit 2 and Bit 4: channel not available (Bit 2) or unknown data record number (Bit 4).
- Synchronous Bit 3: undefined command code or invalid DR3/DR4 parameter data.
- Synchronous Bit 5: command impossible because the scale is not yet adjusted.
- Synchronous Bit 6: mandatory inter-command adjustment delay not observed between consecutive adjustment commands.
- Synchronous Bit 7: adjustment weight in
AWGHT_1_Mis negative or the load cell signal polarity is reversed.
Clear latched synchronous error bits by sending command 0 or 9 to DR11 (or 109 to DR12), transferring a valid data record, or executing a valid command once the fault is resolved. Separately monitor summary status Bit 0 for asynchronous operating errors, which can also invoke S7 diagnostic interrupt OB82 with DR0 and DR1. Asynchronous flags cover load cell limit overshoot or undershoot (Bit 0), undervoltage (Bit 1), watchdog restart (Bit 2), EPROM error (Bit 3), EEPROM data error (Bit 4), RAM error (Bit 5), ADC read error (Bit 6), gross value overflow (Bit 7), and external power or communication error (Bit 8). If Bit 4 appears on a high-cycle batching hopper using non-volatile zeroing, suspect EEPROM corruption or endurance exhaustion.
Before testing HMI calibration, zeroing, or error-clear sequences on a live vessel, lock out upstream feed valves and conveyors so an unexpected zero shift or gross overflow cannot overfill the hopper.
Questions asked
How do 7MH4950 SIWAREX U modules differ from legacy 7MH4601 units during calibration?
The 7MH4950-1AA01 single-channel and 7MH4950-2AA01 two-channel modules replaced the legacy 7MH4601 series and reduced short-circuit-protected load cell excitation from 10 V DC to 6 V DC while keeping functional compatibility. At that lower excitation voltage, the selectable 1 mV/V, 2 mV/V, and 4 mV/V characteristic ranges correspond to roughly 6 mV, 12 mV default, and 24 mV maximum input, digitized at a 20 ms (50 Hz) internal conversion cycle within 0.05% full-scale accuracy.
Can you update SIWAREX U firmware to change calibration timing or EEPROM behavior?
No, SIWAREX U firmware is factory-programmed and cannot be field-flashed to alter its command timing or memory architecture. You can inspect the active firmware version by reading the WORD value in Data Record 40 from the S7 PLC, or by connecting a PC to the front RS232 port with SIWATOOL U software. Any interlock timers, edge triggers, or RAM zeroing selections must be configured in the S7 user program and module parameters rather than through a firmware upgrade.
What happens if an HMI sends factory default command 5 on a two-channel SIWAREX U?
Sending code 5 to DR11 or code 105 to DR12 loads factory default values across all data records on both channels simultaneously, not just the addressed channel. That single command wipes configured parameters in DR3 and DR4 along with saved calibration digits on both scales. Keep codes 5 and 105 off normal operator screens, and confirm the SIWAREX U Hardware Support Package is installed in STEP 7 Classic or TIA Portal before rebuilding from the TP270 Getting Started template.
Do newer SIWAREX WP231 and WP321 modules still use DR11 calibration commands?
No, newer modules such as SIWAREX WP231 for S7-1200 and SIWAREX WP321 for ET 200SP remove DR11 and DR12 command records completely. They still keep DR3 as the complete-block calibration parameter record, which requires Service Mode to write, but execute commands through a command mailbox in the scale data block. Those modules use codes 1 and 2 to toggle Service Mode on and off, codes 60 through 62 for calibration points 0 to 2, and code 82 for automatic theoretical calibration using load cell data in DR10.


