How-to
Run and Stop a SIMOTION CPU from a Comfort Panel HMI
Short answer
Write the device system variable modeOfOperation from the Comfort Panel connection: 0 puts the SIMOTION CPU in STOP and 3 puts it in RUN. Find it in SCOUT's Symbol Browser under the selected CPU, bind it as a tag, and drive two separate momentary buttons.
On this page
- What writes STOP and RUN to a SIMOTION CPU without SCOUT?
- Where do I find modeOfOperation in SCOUT?
- How does the Comfort Panel tag reach the SIMOTION device?
- How do I build the RUN and STOP buttons on the screen?
- How do I prove the command path works before handover?
- Why does my HMI button not change the CPU mode?
- Is an HMI operating-mode command a safety function?
- Questions asked
You can stop and run the SIMOTION CPU from the Comfort Panel without opening SCOUT: write the device system variable modeOfOperation over the panel's controller connection. The value 0 puts the CPU in STOP and the value 3 puts it in RUN. This article shows where the variable lives in SCOUT, how to bind it as a Comfort Panel tag, how to build the two buttons, and how to prove the whole path works before an operator touches it.
What writes STOP and RUN to a SIMOTION CPU without SCOUT? #
The device system variable modeOfOperation on the SIMOTION CPU carries its operating mode, so the Comfort Panel writes 0 to put the CPU in STOP and 3 to put it in RUN, with no SCOUT session open at the machine. The variable is provided by the controller itself: it appears in the device's own symbol set, not among the user variables you create in your program. That matters in three ways.
- The HMI must address it through the configured controller connection, by its exact symbolic path.
- The values are an enumeration of operating modes, not a Boolean command, so the tag keeps the controller's declared data type instead of being replaced with a two-state tag.
- The mapping is a property of this SIMOTION device interface, not a universal convention. Before you copy the same constants into a panel for a different controller family, open that device's symbol definition and confirm its own operating-mode values.
Where do I find modeOfOperation in SCOUT? #
Open the SCOUT project, select the CPU of the SIMOTION device in the project navigator, and read the variable from the Symbol Browser tab in the detail view, where the controller lists its system variables and configuration data.
- Select the SIMOTION device's CPU in the project tree.
- Open the detail view and switch to the Symbol Browser tab.
- Locate
modeOfOperationamong the device-provided variables, under the selected CPU. - Record the exact symbolic path and the declared data type exactly as the project shows them.
Do not create a user variable with the same short name to work around a missing symbol. A duplicate tag can look valid on the panel while addressing unrelated controller memory, and nothing on the screen will tell you apart. If modeOfOperation does not appear in the list, the engineering project or its symbol export is out of date; fix that before building buttons.
How does the Comfort Panel tag reach the SIMOTION device? #
Create the panel's controller connection to the SIMOTION D425-2 PN over PROFINET, import the controller symbols, and bind one tag to modeOfOperation exactly as the Symbol Browser names it, keeping the declared data type and enabling write access.
- Select or create the panel connection that targets that CPU.
- Browse or import the controller symbols from the current project.
- Bind the tag to
modeOfOperationby its recorded path, with the declared native type. - Configure the tag for writes and for readback, so one tag both commands and displays the mode.
- Download the project to the panel and confirm the tag reports good communication quality.
If your operator station is being carried over from an older terminal on the same line, migrating an OP177B to a KP700 Comfort on a SIMOTION D445 Scout TIA project walks the same device symbol path and connection setup for the newer panel.
How do I build the RUN and STOP buttons on the screen? #
Build two separate momentary buttons, one writing the STOP value and one writing the RUN value to the same tag, and show the CPU's actual mode from the tag's read side rather than from any button's own state. A toggle switch is the wrong control here: its local picture diverges from the CPU after a rejected write, a communication drop, a panel restart or a command issued from another station.
- Create the STOP button and configure its press event to write the constant 0 to the
modeOfOperationtag. - Create the RUN button and configure its press event to write the constant 3 to the same tag.
- Add an operator confirmation dialog in front of the RUN write.
- Restrict both buttons to the maintenance or commissioning access level your installation uses.
- Add a display element bound to the tag's read side, so the screen shows the CPU's real mode independently of the last button pressed.
How do I prove the command path works before handover? #
Run the sequence with the machine in its approved commissioning condition and confirm each transition in the controller's own diagnostics, not only on the screen, before you hand the buttons to an operator.
- Open the mode screen and check that the tag's quality is good.
- Press STOP. The panel writes 0; the tag readback shows 0 and the controller diagnostics report the CPU in STOP.
- Press RUN. The panel writes 3; the readback shows 3 and the diagnostics report RUN.
- Navigate away from the screen and return, then repeat both commands. The display must follow the CPU, not the last local button state.
The pass condition is the pair: the readback equals the constant you sent, and the controller's independent indication matches it. A screen that only echoes the button animation has proven nothing.
Why does my HMI button not change the CPU mode? #
Separate a write that never leaves the panel from a write the CPU refuses: check the tag's communication quality first, then the button's write event, then the controller's acceptance of the operating-mode request.
| Symptom | Diagnostic focus | Check |
|---|---|---|
| Tag quality is bad | Connection or symbolic path | Confirm the connection targets the selected CPU and the exact device-variable path |
| Button press produces no write | Button event or tag access | Confirm the press event writes the intended constant with write access enabled |
| Written value is 1 | Boolean or toggle configuration | Replace it with explicit writes of the STOP and RUN constants to the typed tag |
| Write succeeds but mode is unchanged | Controller-side acceptance | Inspect the CPU's actual state and the controller diagnostics for a refused request |
| Display disagrees with the CPU | Feedback taken from button memory | Bind the indication to the tag's read side, never to the button's state |
When the fault is the connection rather than the button, showing a PLC connection fault on a Comfort Panel alarm display explains how to surface the loss as a plant alarm instead of leaving operators to notice a dead button.
Is an HMI operating-mode command a safety function? #
No: writing STOP to the CPU is an operating-mode change for commissioning and maintenance, and the machine's emergency stop and protective stop functions must stay wired and proven in their own safety chain. The HMI command stops the CPU's program; it does not replace the safety system. Keep the two independent, use the mode buttons only with the machine in its approved commissioning condition, and make sure no operator screen presents this STOP as an emergency stop.
Questions asked
Do the STOP and RUN values apply to every SIMOTION device?
modeOfOperation is a SIMOTION device system variable, so the variable name carries across the family. The constants can differ by device and configuration, so open the Symbol Browser for the specific CPU in each project and confirm the STOP and RUN values there before you reuse them in another panel program.
What should I do if the symbol list on the panel is empty?
First confirm that the panel's connection targets the same CPU you selected in the engineering project. Then refresh or re-import the controller symbol information so it matches the current project version, and rebind the tag to the device variable by its exact symbolic path before recreating any buttons.
Can I use one toggle button instead of two buttons?
Use two momentary buttons. A toggle keeps its state in panel memory, so after a panel restart, a communication interruption, a rejected write or a command from another station, the toggle's picture no longer matches the CPU. Momentary writes with a readback display always follow the controller's real operating mode.
Does setting the CPU to STOP make the machine safe?
No. The operating-mode change halts the CPU's program, not the machine's safety functions. Emergency stop and protective stop stay wired and proven in the safety chain, and the HMI mode command is used only with the machine in an approved commissioning or maintenance condition.