Skip to main content

DefaultModeConditions

Short Summary

This class serves as a default behavior for mode conditions. It will always allow homing and manual mode. For all other modes, the station must be in home position.

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.ObjectCNM_OpModeHandlingInterfaces.IModeConditionProvider

UML Diagram

Properties

className

Type: CNM_AbstractObject.ClassName

This abstract property returns the class name of the concrete object,

Methods

checkModeIsAllowed

  • Parameters:
    • mode (UDINT)
    • node (CNM_OpModeHandlingInterfaces.INode)
  • Return type: BOOL

This method checks the start conditions for the selected operation mode.

Code

Declaration

{attribute 'enable_dynamic_creation'}
FUNCTION_BLOCK DefaultModeConditions EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_OpModeHandlingInterfaces.IModeConditionProvider