overwriteMode
short summary
This method allows the overwrite of the current mode state with a new mode, provided the current mode state is in IDLE or SUCCESS status,
and the input mode object is valid. It determines the outcome of the overwrite operation and returns the appropriate result.
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
IF (opModeHandler.setMode(mode := automaticMode) = SingleExecutionResult.SUCCESS)
AND_THEN (dispensingStation.overwriteMode(mode := simulatedMode) = SingleExecutionResult.SUCCESS)
THEN
opModeHandler.startMode();
END_IF
- Return type: CNM_ReturnTypes.SingleExecutionResult
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| mode | IModeBehaviour | - | input |
Code
Declaration
METHOD overwriteMode : CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
mode : IModeBehaviour;
END_VAR