Skip to main content

initialize

Short Summary

This method contains instructions and sequences for the init mode. This mode is intended for initializing a machine, e.g. loading product type data from recipes, establish a connection to global production systems (MES). If the node should do nothing, return a 'SUCCESS'. It should run until all initializations are done or 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!

Parameters

NameTypeCommentKind
executeBOOL-input

Code

Declaration

METHOD  ABSTRACT initialize : CNM_OpModeHandlingInterfaces.CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
execute : BOOL;
END_VAR