runSimulated
short summary
This method simulates a node/unit/machine without physical movements, but with all data handling, e.g. handshakes between units, communication with production systems, loading of data. This mode is intended for simulating the whole machine or single subunits by overwriting the mode for the subunit. If the node should do nothing, return a 'SUCCESS'. It should run endless until the mode is stopped immedtiately or a stop request is raised (THIS^.modeControl.stopRequest). This method is called automatically by the operation mode handler.
attention: If this method returns the state 'ERROR', the operation mode handler automatically disables the whole machine!
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>
- Return type: CNM_ReturnTypes.SingleExecutionState
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| execute | BOOL | - | input |
| pause | BOOL | - | input |
Code
Declaration
METHOD runSimulated : CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
execute :BOOL;
pause :BOOL;
END_VAR