run
short summary
This method will be called in every cycle for a node. It can be used to implement hardware drivers/measurements/monitoring. The returned state defines the overall state of the node. It should return BUSY when the node executes a command, otherwise SUCCESS( or IDLE if there is nothing to do). (Simple monitoring is not a command an should return SUCCESS).
attention: the returned SingleExecutionState will be evaluated cyclically wihtin the node tree. In case a node returns an ERROR state, the whole machine will be disabled. Return ERROR only for fatal or critical errors and handle other errors within the node.
legal notes
| SPDX-FileCopyrightText: © 2025 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>
- Return type: CNM_ReturnTypes.SingleExecutionState
Parameters
none
Code
Declaration
METHOD run : CNM_ReturnTypes.SingleExecutionState