Skip to main content

2.1.2. TaskWait

2.1.2. TaskWait

 

The TaskWait statement makes it possible to wait for a subtask termination. Normally, the termination of a subtask will be automatically handled through the END statement execution in that subtask program. This statement can also be used to perform the next action after waiting for another subtask to be completed while a subtask is being performed.

The format of the TaskWait statement is as follows:

 

 

Item

Content

Subtask Number

Designate the number of the task to be terminated (1–7)

Example of Use

TaskWait SUB=1

(Wait for subtask 1 to be terminated)

 

The TaskWait command can be used in the main task to wait for a subtask to be terminated and in a subtask to wait for another subtask to be terminated.