WAIT / WAIT_TIME

Statement - Suspends the execution of an STClosed "Structured text" A high-level language that is block structured and syntactically resembles Pascal program.

Syntax

WAIT<BOOL expression> ;
WAIT_TIME<TIME expression> ;

Remarks

These instructions are available in ST Language only and have no correspondence in other languages.


  • This instruction is NOT UDFB safe.
    Do not use inside UDFBs.

FBD Language Example

Not available.

FFLD Language Example

Not available.

IL Language Example

Not available.

ST Language Example

(* use of WAIT with different kinds of BOOL expressions *)
WAIT BoolVariable;
WAIT (diLevel > 100) AND NOT bAlarm;
WAIT SubProgCall ();

(* use of WAIT_TIME with different kinds of TIME expressions *)
WAIT_TIME t#2s;
WAIT_TIME TimeVariable;