Script Type Function Block Command: Wait For

Command Description

This command causes the function block script to wait for a period of time before continuing to the next step.

Value Field Parameters

The Value field indicates how long the script should wait, in seconds. It can be specified in two ways:

Example

Figure 1 shows an example of a function block script using a dynamic Wait Forcommand (and a Wait Until command as well). The script waits for receipt of an incoming message, then uses the value in a signal it contains to dictate how long to wait before sending an outgoing message. The script then repeats the process the next time the incoming message arrives.


Figure 1: Example using the Wait For and Wait Until commands.


  Spy Documentation - (C) Copyright 1997-2022 Intrepid Control Systems, Inc.