Not all DVP data registers D are equal: some clear at power-off (general area), some are retained (holding area), and a file-register area exists for large data. Getting "what may be lost" and "what must not be lost" into the right areas is what stops the classic post-outage complaint "parameters reset, production counts gone". The sections below cover the areas, the allocation principle, program support and verification.
Area boundaries differ by model, so open the catalogue first. A typical mapping (example only — verify against your model's catalogue):
| Area | Typical range (example) | After power-off | Typical use |
|---|---|---|---|
| General D | Low-numbered block (e.g. D0~D199) | Cleared | Intermediate results, scratch data |
| Holding D | Middle block | Retained | Setpoints, counts, calibration |
| Holding (long) D | High block | Retained | Recipes, accumulators |
| Special D | Fixed block (e.g. D1000 up) | System-written | Scan time, error codes, system info |
| File registers | Capacity configured in parameters | Retained | Large recipe data |
Some models offer a "latch attribute changeable" block that parameters (or runtime flags) can convert between general and holding — changing that is a structural change to be fixed at design time, not fiddled with on a shipped machine.
| Data kind | Where it goes | Why |
|---|---|---|
| Intermediate results, scratch | General area | Losing them is fine; a clean restart is a feature |
| Process setpoints (speed, temperature, times) | Holding area | The operator's tuning must survive an outage |
| Production counts, run hours | Holding (long) | Clearing them is an incident |
| Calibration factors, sensor corrections | Holding (long) | Re-calibration costs half a shift |
| Recipe data | File registers / holding | Large volume, must persist |
| Comms buffers, sequence step numbers | General (or holding as designed) | Restart should return to initial state — retention can be dangerous |
One counter-intuitive case: the step number of a sequence should usually be in the general area — restarting at step 0 after an outage is safe, whereas retaining it makes the mechanism resume mid-motion, which is worse. Retention is a per-data decision, never a blanket one.
① Initialisation: on the power-up pulse clear the general area and set a "data valid" flag for the holding area — a fresh factory PLC holds random numbers, and the flag decides whether to trust them; ② parameter protection: password or permission pages on setpoint editing so operators cannot wander into calibration; ③ checksums: key parameters carry a checksum, and a failed check at power-up raises an alarm and loads defaults; ④ reset governance: production counts clear only from a specific screen button — no casual RST in the program.
After design, verify with a real outage: cut power mid-run, restore, and check item by item — setpoints retained? counts intact? general area zeroed? step number back to initial? alarm history preserved? Test both "power cut while running" and "power cut while stopped", and watch data sitting at area boundaries with extra care — mis-drawn boundaries are the classic partition error.
| Symptom | Likely cause | Action |
|---|---|---|
| Parameters reset after outage | Setpoints placed in the general area | Move to holding area and update all references |
| Machine misbehaves after restart | Step number retained, motion resumes mid-sequence | Step number to general area, or add reset logic |
| Garbage data on first power-up | Holding area factory-random with no valid flag | Add valid flag + default loading |
| One register keeps changing | Special-D area used by mistake | Check the special-register table, avoid it |
| Counts mysteriously cleared | Stray RST or overlapping addresses | Cross-reference search for clear instructions |
| Data lost after battery alarm | Battery-backed area, battery dead | Replace per manual, add to inspection |
Register partitioning is really "persistence layering": general = RAM, holding = battery or EEPROM-backed storage. Assign every datum by "may it survive an outage?" at design time — retrofitting the holding area later means moving D addresses and chasing references through the whole program, ten times harder.
Area ranges and retention follow the Delta DVP-PLC Application Handbook hardware chapters and built-in register tables for the specific model; battery-backed retention service follows the manual; parameter retention and restart safety follow GB 5226.1 / IEC 60204-1 (no automatic restart of mechanisms after power restoration).
Add a column "OK to lose on power-off?" to the D-area design table, then write code; before shipping, pull the plug once and confirm retention and reset behaviour on the spot.