Troubleshooting Siemens 840D Alarm 700134: ASUP Not Loaded

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

1. Alarm 700134 Overview

Alarm 700134 on the SINUMERIK 840D sl is a user-defined alarm (or message) generated by the integrated PLC, surfaced to the HMI through the NCK/PLC interface. The standard text reported in the field is:

M: ASUP POWERON.SPF / REFERENC.SPF not loaded / unlocked

The leading M: indicates a message (informational) rather than a hard stop alarm. However, because the asynchronous subprograms it references are mandatory during the controller's startup sequence, the message effectively blocks NCK readiness: until the referenced POWERON.SPF or REFERENC.SPF routines are loaded and the corresponding enable signals are set, the machine refuses to leave the power-on state cleanly and downstream operations (reference point approach, program start, M30 reset) remain inhibited.

Three characteristics distinguish this alarm from typical NCK errors:

  1. It is PLC-originated, not generated by the NCK interpreter. The 7xxxxx range is reserved for the PLC user program and HMI messages.
  2. It is machine-builder authored. The exact wording and the conditions that trigger it are programmed in the machine builder's PLC project (STEP 7 Classic or TIA Portal project that compiles the SINUMERIK PLC 317-2DP/PN).
  3. It is interlock-driven. A physical or logical condition (a guard switch, an E-Stop, a hydraulic pressure switch, a chuck state, etc.) prevents the ASUP enable from being granted, and the PLC raises the message to alert the operator.
Field note: The alarm often persists across NCK/PLC reboot because rebooting the controller does not change the physical state of the interlock that caused the PLC to deny the ASUP enable. Always treat a persistent 700134 as a "machine is telling you a guard is not closed" signal before treating it as a software fault.

2. ASUP (Asynchronous Subprogram) Architecture in SINUMERIK 840D

An Asynchronous Subprogram (ASUP) is a subprogram that the NCK starts in a channel independently of the currently active program flow. ASUPs are the mechanism the controller uses to perform mandatory events such as:

  • Initialization after Power On (POWERON.SPF)
  • Initialization after a Reset (RESET.SPF)
  • Initialization after referencing (REFERENC.SPF)
  • Initialization on mode change, program end, or specific M-functions

ASUPs are configured using machine data in the _N_ASUP_ directory. The relevant setting data items are summarized below:

Setting Data Type Default / Typical Function
SD 20114 / $MC_RESET_MODE_MASK DWORD 0x07 Selects which ASUPs (PowerOn, Reset, Referencing) are active
SD 20150 / $MC_GCODE_RESET_VALUES INT[60] — Initial G-code group values after reset
MD 19610 / $MC_ASUP_DEFAULT_MASK DWORD 0xFFFFFFFF Bit mask defining default ASUP responses per interrupt
MD 11602 / $MN_ASUP_START_MASK DWORD 0 Bit mask for which ASUPs may start despite specific states
MD 11600 / $MN_ASUP_START_PRIO_LEVEL INT 0 Priority level at which ASUPs are processed
MD 11604 / $MN_ASUP_START_SYNC_MASK DWORD 0 Synchronization bits for ASUP startup

The PLC interface for ASUP control uses the NC-Var-Selector signals in the channel DB (DB21..DB30 for the first NC, DB31..DB40 for the second NC):

  • DB21..DBX30.0 – ASUP enable from PLC (1 = ASUPs may be processed)
  • DB21..DBX30.1 – ASUP enable from operator panel (HMI key)
  • DB21..DBX30.2 – ASUP stop requested
  • DB21..DBX7.0..7 – ASUP active / interrupted state bits

If the PLC never sets DBX30.0 (or resets it because a guard is open), the NCK will not load the POWERON.SPF or REFERENC.SPF, and the message "not loaded / unlocked" is generated. This is precisely the path that produces alarm 700134.

3. Decoding the Alarm Text

The text "ASUP POWERON.SPF / REFERENC.SPF not loaded / unlocked" contains three diagnostic fragments:

Token Meaning Engineering Implication
M: Message (not a stop alarm) NC is not in alarm-stop state, but a user action is required
ASUP POWERON.SPF Power-On initialization subprogram is the subject Check file presence in /_N_CMA_DIR/_N_POWERON_SPF and channel-specific override
REFERENC.SPF Referencing subprogram is the subject Check file presence in /_N_CMA_DIR/_N_REFERENC_SPF and PLC enable for referencing
not loaded NCK did not find or did not accept the file File missing, corrupted, or work offset was not selected
unlocked PLC has not granted the enable to start the ASUP An interlock in the PLC is denying start permission

Splitting the text into its two halves — not loaded and unlocked — is the single most important diagnostic step. It tells the engineer whether to look in the file system first, or in the PLC interlock logic first.

4. Root Cause Hierarchy: From User-Level to NCK-Level

Field occurrences of 700134 sort into four descending layers. Always walk the layers top-down, because the cheapest checks (operator panel) precede the most expensive (PLC project rebuild).

Layer Probable Cause Probability First Check
L1 – Operator & Mechanical Safety guard open, chuck closed, hydraulic not at pressure, door interlock not made High (≈60%) Cycle every guard switch, watch PLC inputs on HMI diagnostic screen
L2 – Mode/Key Switch Wrong operating mode selected on MCP (milling vs. turning, set-up vs. auto) Medium (≈20%) Verify mode key is in position 1 (or 0) and press CANCEL + RESET
L3 – PLC Program Faulty rung in the machine builder's PLC that ties ASUP enable to a non-existent tag Medium (≈15%) Cross-reference the alarm text in STEP 7 to its triggering condition
L4 – NCK / File System POWERON.SPF or REFERENC.SPF missing from _N_CMA_DIR Low (≈5%) List directory from HMI under Commissioning > File System

The reference incident that produced this article is a textbook L1 case: the conveyor belt guard against chip ejection had triggered (i.e., the guard's safety switch was open), the PLC saw the input fall, denied the ASUP enable, and the HMI displayed the message. Once the operator closed and latched the guard (or, as reported, the toggle switch for the guard was re-energized), the ASUP enable was granted, POWERON.SPF was loaded, and the alarm cleared without an NCK reset.

5. PLC Safety Interlock Investigation (Primary Cause Path)

For L1 / L2 issues, work the PLC inputs in this order. Each row also tells you which HMI diagnostic screen exposes the signal directly.

  1. Door and enclosure guards — HMI: Diagnostics > PLC > Inputs/Outputs. Look for I 1.0..I 1.7 (typical guard switch module), E_StopOK tag, DoorClosed[1..n] tags.
  2. Chip conveyor interlocks — The exact failure that triggered 700134 in the source incident. Verify the conveyor's chip guard (often called ConveyorGuardClosed, Schutz_Kuehlmittel, or similar) is closed and the safety relay (Sick, Pilz, Schmersal safety relay) is in the K1/K2 state.
  3. Hydraulic / pneumatic pressure — Pressure switch HydPressureOK, PneumOK. If pressure is below the threshold, ASUP enable is denied on many builder projects.
  4. Spindle / chuck state — SpindleStopped, ChuckClosed, ToolClamped. The PLC often requires the spindle to be stopped and the chuck closed before the ASUP can be loaded safely.
  5. Mode key switch — The MCP returns the mode in DB1000..DB1007 (symbolic name MCP1In / MCP2In). For most builders, modes 1 and 0 are allowed; modes 2/3/4 may suspend ASUPs.
  6. Drive enable chain — DB31..DBX2.1 (Pulse Enable) and DB31..DBX2.0 (Controller Enable). If drives are not enabled, the PLC may not issue ASUP enable either.

The standard way to confirm that an interlock is the cause is to open the HMI screen Diagnostics > PLC > Status (HMI Advanced / Operate) and inspect the boolean tag that the builder's program uses to drive DB21..DBX30.0. The name varies; the builder's symbol table is the only authoritative source.

6. File System Verification: POWERON.SPF and REFERENC.SPF

If the alarm text explicitly cites "not loaded" and the interlock is closed, the next check is the file system. The two subprograms must exist in the active work offset (commonly _N_CMA_DIR).

Logical File Physical Path on HMI Subprogram Purpose Typical Size
_N_POWERON_SPF /NC/ACTIVE/CM/_N_CMA_DIR/_N_POWERON_SPF Initial spindle speeds, axis positions, tool offsets loaded at Power On 1–30 KB
_N_REFERENC_SPF /NC/ACTIVE/CM/_N_CMA_DIR/_N_REFERENC_SPF Sequence executed after reference point approach 0.5–5 KB
_N_RESET_SPF /NC/ACTIVE/CM/_N_CMA_DIR/_N_RESET_SPF Subprogram executed on NCK reset / M30 0.5–5 KB
_N_PROG_EVENT_SPF /NC/ACTIVE/CM/_N_CMA_DIR/_N_PROG_EVENT_SPF Subprogram for program-controlled events 0.5–5 KB

Verification procedure on the HMI:

  1. Press Menu Select > Commissioning > File System on HMI Operate, or Services > File System on HMI Advanced.
  2. Navigate to NC Active > CM.
  3. Confirm _N_POWERON_SPF and _N_REFERENC_SPF exist. If they are missing, the ASUP "not loaded" branch is the dominant cause.
  4. If the files are present, check the work offset selection. ASUPs are resolved against the work offset whose name is in MD 20150 / $MC_GCODE_RESET_VALUES[0] or the active _N_CH_DIR. A common failure mode is that the builder copies the file into a work offset (e.g. _N_WPD_DIR/_N_WP1_WPD) but the active work offset is different.
Common pitfall: On SINUMERIK 840D, ASUPs are not loaded from the global _N_CST_DIR or _N_DEF_DIR; they must be in the active cycle directory _N_CMA_DIR or referenced by an absolute path. If a file exists only in the archive (_N_ARC_DIR), the NCK will not see it at startup.

7. Machine Data and Setting Parameters

Confirm that the ASUP framework is enabled in the machine data. The following entries must not be set in a way that disables the PowerOn / Referencing ASUPs:

MD / SD Forbidden Value Recommended Effect of Mismatch
MD 20114 / $MC_RESET_MODE_MASK 0x00 0x07 (or builder-specific) Bit 0 = PowerOn ASUP, Bit 1 = Reset ASUP, Bit 2 = Referencing ASUP
MD 19610 / $MC_ASUP_DEFAULT_MASK All zeros Builder default Defines which interrupt events trigger an ASUP
MD 11602 / $MN_ASUP_START_MASK 0 Builder default Restricts ASUP start to specific conditions (e.g. no ASUP in program-test mode)
MD 10712 / $MN_NCK_VERSION — Must match PLC firmware Mismatch can cause ASUP queue to be ignored

To check from the HMI, go to Diagnostics > MD Display > Search and enter the MD number. Press the Continue search key to confirm the value. If the value deviates from the builder's commissioning sheet, the builder's commissioning engineer must authorize the change before the field engineer edits it. Do not write to MD 20114 in production without a documented builder sign-off.

8. Recovery and Reset Procedure

Once the root cause has been identified, the following sequence restores the controller. The order is important: never power-cycle past a known interlock, because the PLC will simply reissue the message.

  1. Resolve the interlock — close the guard, restore pressure, switch the operating mode key to the correct position, or repair the failed input.
  2. Acknowledge the message — press the Alarm Cancel (CANCEL) key on the MCP. This clears the HMI-side message display but does not re-trigger the ASUP.
  3. Reset the NCK — press the Reset key on the MCP. The NCK performs a controlled reset, which fires RESET.SPF and re-attempts to load POWERON.SPF.
  4. If the alarm persists — the reference incident required a combined key press: Reset on the MCP plus Alarm Cancel simultaneously. This dual-reset path is implemented in the builder's PLC to differentiate a "cancel and retry" from a true operator reset. Hold both for 1–2 s.
  5. If still persistent — perform an NCK Cold Start only with the builder's authorization: Menu Select > Commissioning > NCK Reset > Cold Start (with default values). This will overwrite any modified setting data back to the machine data defaults, so record the current setting data first.
Safety note: A power cycle without resolving the interlock will re-emit the alarm in <5 s, and on some machines will also raise E-Stop from the safety relay. Always resolve the interlock first.

9. Verification Checklist

After the recovery sequence, run through this checklist to confirm the ASUP is actually loaded and the message is gone for the right reason.

Check How to Verify Expected Result
HMI shows no active alarm 700134 View alarm history at Diagnostics > Alarm Log 700134 absent from current and pending
ASUP enable is set Inspect DB21..DBX30.0 via Diagnostics > PLC > Status Bit = 1
POWERON.SPF ran Check $AC_ASUP or the application log ASUP completed with no fault
REFERENC.SPF ran after reference Jog the axes to the reference cam, then issue NC Start Reference point approach completes, all axes show "referenced" in Axes > Status
All axes reach the reference point Watch the Axis Position screen; the icon next to each axis turns green All axes green
Program can be selected Press Program Manager and open any .MPF File opens, no message bar

10. Related Alarms and Cross-References

Alarm 700134 frequently travels with a small constellation of related numbers. Recognizing the cluster helps the field engineer identify the layer quickly.

Alarm Meaning Relationship to 700134
700000 – 700099 General PLC user alarms Often raised in the same program scan as 700134
700100 – 700199 Mode-switch / door / guard alarms Direct precursor; identifies the open guard
700200 – 700299 Hydraulic / lubrication alarms Common co-alarm; pressure switch opens
150000+ NCK POWERON sequence errors Indicates POWERON.SPF itself returned an error, not just that it was not loaded
12080 – 12090 NCK memory / file system errors Indicates the file could not be loaded due to I/O or CRC
22069 – 22070 Referencing sequence errors Indicates REFERENC.SPF did not complete

The PLC user alarm range is configured by the machine builder using the SINUMERIK HMI Pro tool, with the project-specific texts bound to DB18 ranges. Reference the builder's alarm list for the exact text-to-cause mapping.

11. Field-Proven Prevention Strategy

Once the immediate incident is resolved, three engineering actions reduce the probability of recurrence. These come from accumulated field experience on 840D retrofits and builder acceptance tests.

  1. Add explicit HMI text for 700134 — even if the message is preserved, append a second line in the builder's alarm text such as "Check conveyor guard and close before pressing RESET." The default text "not loaded / unlocked" is a developer's note, not an operator message.
  2. Document the mode-key position — most builders ship the machine in mode 1 (set-up) for installation and mode 0 (operator) for production. If the operator panel is in mode 3 (MDI) on first power-up, the ASUP enable is often denied. Add a one-page laminated card to the cabinet door.
  3. Verify the file-system layout annually — many POWERON.SPF files are lost when an operator performs an HMI Setup > Series Commissioning on the wrong work offset. Add a quarterly backup step to the maintenance plan that archives the entire _N_CMA_DIR to the SINUMERIK Operate backup CF card or network share.
Engineering tip: In the PLC, log the timestamp at which DB21..DBX30.0 transitions from 0 to 1. Pair this with the timestamp of the message. If the enable signal is never asserted at all, the interlock is permanent. If the enable is asserted and then immediately cleared, the message is racing the PLC scan — usually a symptom of an E-Stop that briefly opens during the ASUP window.

12. Frequently Asked Questions

Is alarm 700134 a CNC fault or a PLC fault?

It is a PLC user alarm. The number 700134 falls inside the 700000-799999 range reserved for the machine builder's PLC program on SINUMERIK 840D sl. The NCK displays the text the PLC sends; the underlying condition is almost always an interlock in the PLC, not an NCK error.

Why does the message persist after a power cycle?

Rebooting the NCK and PLC does not change the physical state of the interlock that caused the PLC to deny the ASUP enable. If the chip-conveyor guard (or door, or pressure switch) is still open when the controller reboots, the PLC re-evaluates the same inputs in the first scan, re-asserts the deny, and the message reappears within a few hundred milliseconds.

What is the correct key sequence to clear the alarm?

For the reference incident, the operator pressed the MCP Reset key and the Alarm Cancel key together after closing the guard. Many machine builders implement this dual-reset path in the PLC. If the standard single RESET does not clear the message, hold RESET + CANCEL for 1-2 s. Avoid performing a hard power cycle unless authorized by the builder, because any unsaved setting data may be lost.

What is the difference between the "not loaded" and "unlocked" parts of the text?

"Not loaded" means the NCK could not find the subprogram in the active work offset or its CRC failed. "Unlocked" means the PLC has not asserted the ASUP enable bit DB21..DBX30.0. The first is a file-system issue; the second is an interlock. Always resolve the "unlocked" path first, because that is what the reference incident demonstrated.

Can I suppress alarm 700134 with NCK machine data to bypass the interlock?

No. The alarm is raised from the PLC, not from NCK-side machine data. The only way to suppress it is to edit the builder's PLC program, which must be done with the builder's involvement and a documented risk assessment. The correct field action is to find the open interlock — typically a chip guard, door, or mode key — and close it, exactly as in the source incident.

Back to blog