For/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „'''Loop with an adjustable number of steps.'''“)
(Založena nová stránka s textem „First, it sets the value according to the InitialValue parameter. Unless the value is greater than FinalValue, it start…“)
Řádek 9: Řádek 9:
 
'''Loop with an adjustable number of steps.'''
 
'''Loop with an adjustable number of steps.'''
  
Nejdříve nastaví hodnotu podle parametru [[#initialvalue-| InitialValue]]. Dokud není hodnota větší než [[#finalvalue-| FinalValue]], spouští tělo smyčky a na jeho konci navýší hodnotu o [[#increment-| Increment]]. Chování příkazu při výskytu chyby v těle smyčky ovlivňuje parametr [[#continueonerror-| ContinueOnError]]. Parametry [[#flowname-| FlowName]] a [[#flowdescription-| FlowDescription]] umožňují uživatelská pojmenování a popisy jednotlivých průběhů těla smyčky, které lze použít v šabloně reportu.
+
First, it sets the value according to the [[#initialvalue-|InitialValue]] parameter. Unless the value is greater than [[#finalvalue-|FinalValue]], it starts the loop body and increases the value at the end by [[#increments-|Increments]]. The behavior of the command when an error occurs in the body of the loop is affected by the [[#continueonerror-|ContinueOnError]] parameter. The [[#flowname-|FlowName]] and [[#flowdescription-|FlowDescription]] parameters allow user names and descriptions of individual waveforms of the loop body that can be used in the report template.
  
 
== Vstupní parametry ==
 
== Vstupní parametry ==

Verze z 28. 1. 2021, 20:34

Jiné jazyky:
English • ‎čeština

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.

Vstupní parametry

FlowName

Typ String

Určuje pojmenování jednotlivých průběhů těla smyčky.

FlowDescription

Typ String

Určuje popisy jednotlivých průběhů těla smyčky.

InitialValue

Typ Number

Počáteční hodnota.

FinalValue

Typ Number

Konečná hodnota.

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.