Skip to main content

WaitCommand

Short summary

A simple command to wait for a given time.

AccessAbstractFinalExtendsImplements
NoYesCNM_AbstractObject.ObjectCNM_CommandInterfaces.ICommand

UML Diagram

Parameters

none

Properties

className

Type: CNM_AbstractObject.ClassName

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

waitTime

Type: TIME

This property sets or gets the time to wait for until the command returns SUCCESS.

Methods

executeCommand

Executes the action associated with this command.

FB_init

  • Parameters:
    • bInitRetains (BOOL): if TRUE, the retain variables are initialized (warm start / cold start)
    • bInCopyCode (BOOL): if TRUE, the instance afterwards gets moved into the copy code (online change)
    • waitTime (TIME): time to wait until return state is success
  • Return type: BOOL

The constructor FB_init is needed to create an unique hash code.

Code

Declaration

FUNCTION_BLOCK FINAL WaitCommand EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_CommandInterfaces.ICommand
VAR
timeToWait :TIME;
timer :TON;
END_VAR