SINUMERIK 840D: Restoring Missing G500-G599 Frames After Backup

David Krause13 min read
Other TopicSiemensTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

SINUMERIK 840D: Restoring Missing G500-G599 User Frames After a Backup Restore

After reloading a series commissioning archive on a SINUMERIK 840D / 840D sl, operators frequently observe that only G54, G55, G56, G57, and G500 appear in the offset/work offset list, while the extended G501 to G599 settable frames have disappeared from the HMI. The machine continues to run, kinematics behave normally, and the NCK does not report a clear alarm, but every part program that referenced the higher frame numbers now fails with 14800 "Channel %1 wrong checksum for correctable block %2" or with a frame-not-found alarm at block search. This article documents the root cause in machine data MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES, the family of related MM_-prefixed machine data that governs settable frame count, the correct procedure to expose the missing frames after a backup restore, and the field-proven verification checks.

Important: Always create a complete series commissioning backup (*.arc) on a USB or network share before changing any MM_ machine data. Several MM_ parameters require an NCK Power On (or, on 840D sl, an NCU Power On with subsequent reload of the same series start-up archive) before they take effect.

1. Problem Definition

Symptom Observed on HMI NC Behavior
Offset list truncated Only G54, G55, G56, G57, G500 selectable NCK still references all configured frames internally
Part program failure Frame selection dropdown is empty for G501..G599 Block with G55X raises 14800 or 14810
Backup restore has no effect Same HMI behavior after *.arc reload Source machine may have had different MM_ settings
Display filter suspect Some frames hidden by view filter in offset page Frames exist but are not visible

The archive restore reloaded every NC machine data block and every part-program/frame file from the backup, but the HMI still showed only five entries. After a manual check, MD18601 was discovered to be set to 1, which is far below the values Siemens uses for any production 840D. The user increased it to 5, expecting the standard G54..G57 + G500 mapping, but the offset list remained unchanged. Only after copying the complete data set from a sister machine did the offset list recover.

2. Root Cause: MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES

The settable frame table size is governed by one global machine data, supported by a family of related MM_-prefixed parameters:

MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES
   = 5    ; G500 plus G54..G57    (default for many 840D shipments)
   = 50   ; G500 plus G54..G57 and G501..G547
   = 100  ; G500 plus G54..G57 and G501..G599
   = 0    ; No settable frames (G500 still exists as the "deselect" frame)
   = 1..n ; non-standard value often produced by corrupted/partial archive

The first five frame numbers are fixed by the language scope (G54 through G57) plus the deselect frame G500. Any additional frame that the application uses (G501 through G599) is allocated dynamically by the NCK up to the value of MM_NUM_GLOBAL_USER_FRAMES. If the value is too small, the NCK never creates the runtime data structures for the higher frames; a backup/restore cannot resurrect them, because the destination control literally has no place to store them.

Why the backup did not "fix" the problem: A series commissioning archive contains the configured values of machine data but does not override the static NCK memory layout that was allocated when the NCK last performed a Power On with a given MM_ setting. The archive also does not change the HMI display scope. Therefore, if MD18601 in the destination machine is 1, the HMI displays at most one entry beyond the four fixed frames.

3. Family of Frame-Governing Machine Data

Settable frames are not the only memory structures affected by MD18601. The following machine data are typically reviewed together, because the HMI uses the maximum of these for display purposes and the archive restore must set them consistently:

Machine Data Symbolic Name Effect Typical Production Value
MD18600 $MN_MM_NUM_GLOBAL_G_FRAMES Global G frames (NCU-global) Reserved, generally not used in modern builds 0
MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES Number of settable frames (G500 + G501..) Primary parameter for offset list size 5 or 100
MD18602 $MN_MM_NUM_GLOBAL_GUARD_FRAMES Number of global guard frames Protective frames for safety/clearance 0..10
MD18603 $MN_MM_NUM_GLOBAL_BASE_FRAMES Number of base frames Persistent base offset per channel 1..16
MD28050 $MC_MM_NUM_G_FRAMES Per-channel G frames (deprecated) Legacy, do not increase 0
MD28080 $MC_MM_NUM_USER_FRAMES Per-channel settable frames Channel-specific overlay of G501.. 5..100
MD28081 $MC_MM_NUM_BASE_FRAMES Per-channel base frames Channel-local base offset count 1..16
MD24020 $MC_FRAME_SUPPRESS Frame suppression bits Bitmask controlling when frames are applied 0x00000000
MD9000 $MN_FRAME_FACTOR Frame display factor (display path) Scales HMI display; not the NCK allocation 1.0

The per-channel parameters (MD28080, MD28081) exist because Siemens historically differentiated between NCU-global and channel-local frames. On a modern 840D sl with one NCU, the values should be identical to the global ones to keep the HMI consistent. If MD28080 is 5 but MD18601 is 100, the HMI will show 100 entries globally but only 5 per channel in the offset detail view, and operators will still perceive a "missing" frame list.

4. Prerequisites for Recovery

  1. Operator access level Manufacturer (password level 3) for changing MM_ machine data, or Service level (password level 2) if the access bits were pre-configured by the OEM.
  2. A complete, verified series commissioning backup of a known-good sister machine with the same NCU software version.
  3. Empty CF card slot or USB stick with at least 4 GB free, formatted in FAT32.
  4. For NCK Power On: ability to bring the machine to a safe state (open covers, retracted axes, no part in the chuck).
  5. HMI version compatibility: the source archive must be from an HMI software version that matches the destination (e.g., HMI Pro sl 4.8 SP3 cannot read an HMI Pro sl 5.x archive).
  6. Documentation of any customer-specific NC macros or compile cycles; these are not always inside the standard *.arc and must be backed up separately.

5. Step-by-Step Recovery Procedure

5.1 Inspect the Current Setting

  1. Switch to area Startup > Machine Data.
  2. Open the search dialog and enter 18601.
  3. If the search returns no row, the current display filter is hiding it. Press the softkey Options > Filter and select Cancel all filters (or "Show all machine data") so that all expert parameters become visible.
  4. Note the current value of MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES and record it for the rollback step.
  5. Repeat for MD18602, MD18603, MD28080, MD28081.

5.2 Determine the Required Value

Open the part program of a representative production cycle on the original machine before the backup was made, or on the sister machine that has the same program set, and search for any G5 followed by a digit:

; example program excerpt
N10 G54 G90 G17
N20 G501 ; fixture offset A
N30 G502 ; fixture offset B
...
N540 G599 ; last used extended frame

The highest G5xx number referenced anywhere in the active program set defines the minimum value for MD18601. Round up to the nearest "nice" value (5, 50, or 100). Siemens recommends 100 for any mill or turning cell that uses multiple fixtures, tombstones, or pallet systems.

5.3 Modify MD18601 and Relatives

  1. Enter 100 in MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES.
  2. Enter 1 in MD18603 $MN_MM_NUM_GLOBAL_BASE_FRAMES if the application uses only the default base frame; increase to 16 for multi-base applications.
  3. Enter 0 in MD18602 $MN_MM_NUM_GLOBAL_GUARD_FRAMES unless safety has configured guard frames.
  4. Set MD28080 $MC_MM_NUM_USER_FRAMES to the same value (100) for every channel.
  5. Set MD28081 $MC_MM_NUM_BASE_FRAMES to match MD18603 in every channel.

5.4 Apply the Change (NCK Power On Required)

Critical: Changes to any MM_ machine data require an NCK restart. On 840D sl, this is performed via Startup > NCK > NCK Reset (po) or by a full NCU Power On (toggle the NCU power switch for 30 s, then power up). On classic 840D, a PLC-controlled NCK Power On is mandatory; do not perform any axis motion during the boot.
  1. Bring the machine to a safe state (all axes referenced, no part in the working area, doors closed).
  2. Switch the NCK to commissioning mode via PLC signal DB10.DBX0.1 = 1 if your machine configuration requires it for parameter changes.
  3. Perform NCK Power On: Startup > NCK > NCK Reset (po), confirm the prompt.
  4. Wait for the NCK to come back ready (status field on HMI shows "Run", not "Stop" or "Boot").
  5. Open the offset page: Offset > Work Offsets (G54..G599). The list must now show G500 plus G501 through G599.

5.5 Reload Frames if Missing

Even with MD18601 set correctly, frame values stored under G501..G599 that came from the backup are only valid if the source archive was made with the same MD18601 value. If the values appear blank or zero:

  1. Restore the commissioning archive once more, but this time use the matching sister-machine archive that has MD18601 = 100.
  2. After restore, perform an NCK Power On again.
  3. Verify that the frame contents are now populated. If not, the source archive itself was made on a machine with a smaller value, and the frames must be re-entered manually or by reading them from a separate work-offset backup (*.bck or *.wop).

6. Verification

Run the following checks after the recovery procedure:

Check # Procedure Expected Result Failure Indicates
V1 Open Offset > Work Offsets, scroll to G501 Field for X, Y, Z (and rotations) is editable MD18601 still not effective — repeat NCK Power On
V2 Program test: N10 G501 X100 Y200 Z50 in MDA Block executes, no alarm Frame is present; alarms indicate wrong channel MD
V3 Write a probe cycle that calls G599 Cycle picks up the frame values Otherwise check MD28080 per channel
V4 Check display filter All entries visible without filter Re-apply Options > Show all
V5 Save the corrected archive Backup size grows proportionally to frame count Smaller size means some MM_ still wrong
V6 Inspect Diagnostics > NCK Version MD18601 reflects new value Otherwise change did not save

7. Backup Archive Considerations

Series commissioning archives (*.arc) created on a SINUMERIK 840D always contain the active machine data values. However, the archive format encodes only the differential between the OEM-default set and the current values. If the destination machine has a different NCU software version, some MM_ parameters may not be transferable. Use these rules:

  • Always restore to a target NCU whose NCK software (e.g., 06.07.42) is greater than or equal to the source NCK software. Downgrading an archive is not supported.
  • Compile cycles (CC) are stored in a separate binary inside the archive; if the CC license key was not transferred, the CC-driven frames (e.g., 5-axis transformations stored as G5xx values) will appear empty.
  • If the source archive was created with MD18601 = 5, it will not retroactively populate G501..G599 on the destination, even when MD18601 is later increased. The frames have to be entered manually.
  • Verify the archive integrity by opening it on a PC with the SINUMERIK Operate Viewer (if available) and checking the file NCK.MD for the MD18601 line.

8. Display Filter vs. True Absence

Operators sometimes report "frames disappeared" when in fact they are hidden by the HMI filter. Distinguish between the two cases:

Test If True Filter Issue If True Missing
Softkey Options > Filter > All Frames reappear immediately No change
MDA: G501 X0 Y0 Z0 NC accepts block, no alarm Alarm 14800 or 14750
Read /_N_SETUP_DIR/_N_G5xx_TEA via services File exists and has content File missing or zero length
Read MD18601 effective value >= 100 < 100

The HMI softkey path varies by HMI generation:

  • HMI Pro sl (SINUMERIK Operate): Offset > Work Offsets > G5xx > Options > Filter > Show all.
  • HMI Advanced: Tools > Work Offsets > Options > Display > Show all frames.
  • HMI Embedded: Settings > Display > Frames > All.

9. Reference: ISO Dialect G Code vs. Siemens G Code

SINUMERIK 840D supports both Siemens dialect and ISO dialect G code. The programming manual explicitly states: "Only ISO Dialect G codes can be programmed, not Siemens G codes" when the controller is configured in ISO Turning mode (G code system B or C). In ISO mode, G500 retains the same meaning (cancel all settable frames), but the extended G501..G599 still depend on MD18601. The DISPLOF procedure-call modifier "freezes the block display at the call block; the G code display remains in" its current state, which is useful for verifying the active frame inside a cycle without scrolling.

10. Troubleshooting Matrix

Symptom Likely Cause Remedial Action Reference
Only G54..G57 visible, no G501.. MD18601 too small Set to 100, NCK Power On $MN_MM_NUM_GLOBAL_USER_FRAMES
G501..G599 visible but zeroed Source archive had smaller MD18601 Restore sister archive or re-enter frames Section 7
Frame present in NCK but not on HMI Filter is hiding entries Cancel filter via Options menu Section 8
Alarm 14800 on G501 call Frame not configured at all Re-check MD18601 and reload Section 5.4
Alarm after restore even though list shows frames Compile cycle license missing Reinstall CC license key Section 7
Changes do not persist after Power On Save not performed Use Save data in startup area Standard commissioning flow
One channel works, others do not MD28080 differs per channel Align MM_NUM_USER_FRAMES per channel Section 3
Guard frames colliding with settable frames MD18602 non-zero Either allocate or set to zero Section 3

11. Field-Proven Caveats

  • Increasing MD18601 from 5 to 100 on an active production machine without an NCK Power On causes the HMI to show "ghost" entries that disappear after the next restart, leading to operator confusion. Always perform NCK Power On in a planned maintenance window.
  • On 840D sl with HMI Pro sl 5.x and the new compile cycle kinToolbox, some frames are reserved by name (e.g., G595 through G599). Adjust the application to use a contiguous range below the reserved zone to avoid clashes.
  • Some OEMs shrink MD18601 to 5 in the factory default archive to reduce boot time on legacy NCUs. Any sister-machine archive must be from a machine with the same OEM build, otherwise the restore will silently reset the parameter.
  • Frame data persisted via _N_SETUP_DIR is stored in a binary structure whose length is determined at NCK startup. If you change MD18601 downward, the truncated frames will be lost. Always back up _N_SETUP_DIR before decreasing any MM_ parameter.

12. Quick Reference: Related Alarms

Alarm Meaning Typical Cause Action
14750 Too many auxiliary functions per block Unrelated; verify if user is confusing frame count Reduce program
14800 Wrong checksum for correctable block Frame not allocated at NCK level Increase MD18601
14810 Wrong checksum for non-correctable block Compile cycle mismatch Reinstall CC
14820 CRC error in NCK block Memory corruption after bad shutdown NCK Power On with reload
150100 Frame configuration inconsistent Channel/global MD mismatch Align MD28080 with MD18601
151100 Wrong frame index in program G501 used without MD18601 supporting it Increase MD18601 or remove G501

FAQ

What is the default value of MD18601 on a SINUMERIK 840D?

The factory default depends on the OEM build, but most series commissioning archives ship with MD18601 $MN_MM_NUM_GLOBAL_USER_FRAMES = 5, providing G500 plus G54..G57. Production machines that use multiple fixtures require 100 to expose G501..G599.

Why did my backup restore not bring back G501 to G599 frames?

The archive only stores the machine data values that were active when it was created. If the source machine had MD18601 = 5, it never stored runtime structures for G501..G599, so the restore cannot invent them. Increase MD18601 on the destination to 100, perform an NCK Power On, and re-enter the missing frames or restore from an archive that originated on a machine with MD18601 = 100.

Do I have to perform an NCK Power On after changing MD18601?

Yes. Every MM_ machine data (memory-management prefix) requires a restart of the NCK because the parameter governs static memory layout. On 840D sl use Startup > NCK > NCK Reset (po); on classic 840D perform a PLC-controlled NCK Power On.

Why does the offset list look correct in one channel but truncated in another?

Each channel has its own MD28080 $MC_MM_NUM_USER_FRAMES. If that per-channel value differs from the global MD18601, the HMI hides frames beyond the smaller of the two. Set MD28080 equal to MD18601 in every channel and reload.

Is it possible to display G501..G599 on the HMI without changing machine data?

No. The HMI enumerates only the frames that the NCK has actually allocated. Display filters can hide allocated frames, but they cannot show frames that do not exist in NCK memory. The only correct fix is to set MD18601 to a value greater than or equal to the highest G5xx used, then perform NCK Power On.

Will changing MD18601 affect my part programs?

Increasing it is non-destructive: existing frames and program references continue to work, and the new range is simply added. Decreasing it can destroy frames whose index now exceeds the new limit; always back up _N_SETUP_DIR before decreasing any MM_ parameter.

Back to blog