For
Obsah
Description
Alias: FOR
Loop with an adjustable number of steps.
First, it sets the value according to the InitialValue parameter. Unless the value is greater than FinalValue, it starts the loop body and increases the value at the end by Increments. The behavior of the command when an error occurs in the body of the loop is affected by the ContinueOnError parameter. The FlowName and FlowDescription parameters allow user names and descriptions of individual waveforms of the loop body that can be used in the report template.
Input parameters
FlowName
Type String
Specifies the name of individual waves of the loop body.
FlowDescription
Type String
Specifies the descriptions of individual waveforms of the loop body.
InitialValue
Type Number
Initial value.
FinalValue
Type Number
Final value.
Increment
Typ Number
Nárust hodnoty po průchodu smyčkou.
ContinueOnError
Typ Number
Režim reakce na chybu v tělě smyčky (0=nepokračovat, 1=pokračovat absorbujíce chyby, 2=pokračovat ale selhat). Při nenulové hodnotě smyčka pokračuje dalším průběhem, i když dojde v jejím těle k chybě. Každá chyba bude pohlcena, s výjimkou režimu 2, kdy bude po dokončení smyčky poslední chyba předána dále.
Enabled
Typ Number
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
PreWait
Typ Number
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
PostWait
Typ Number
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
Výstupní parametry
Value
Typ Number
Aktuální hodnota.