startMode
short summary
This method starts the currently selected operation mode if all safety requirements are met.
legal notes
| SPDX-FileCopyrightText: © 2024 ekvip automation GmbH <info@ekvip.de> | SPDX-License-Identifier: Apache-2.0 | For details check: Apache-2.0_
.. _Apache-2.0: https://www.apache.org/licenses/LICENSE-2.0
.. </legal notes>
example
CASE step OF
0: // choose and set mode
IF (handler.setMode(automaticMode) = SUCCESS ) THEN
step := 1;
END_IF
1: // start mode
IF (handler.startMode() = SUCCESS) THEN
step := 2;
END_IF
2: // stop mode if requested
IF ( stopRequested ) THEN
IF ( handler.stopMode() = SUCCESS ) THEN
step := 0;
END_IF
END_IF
END_CASE
- Return type: CNM_ReturnTypes.SingleExecutionResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| node | INode | optionally: a specified node in the tree that is not the subtree (if 0, the rootNode will be adressed) | input |
Code
Declaration
METHOD startMode :CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(* optionally: a specified node in the tree that is not the subtree (if 0, the rootNode will be adressed) *)
node : INode := 0;
END_VAR