FOR - iterate a command
Note: Not all commands support FOR iterations. See details about specific commands for further information.
Syntax:
FOR <min> TO <max> <command> [ args ]
Arguments:
min : first enumeration integer value (see notes)
max : last enumeration integer value (see notes)
command : command to execute
args : arguments of the command
|
In command arguments, you can use the special '%' characters, to be replaced with the iteration number. If you specify consecutive '%' characters, this represents the iteration index formatted on several characters, completed on the left by '0' digits'. For example, the command: FOR 1 TO 3 CreateProgram LD Prog%% creates 3 LD programs called Prog01, Prog02 and Prog03. |
|
Managing program folders Managing data types (structures)
|
FOR - iterate a command |
IEC 61131-3 Automation platform > IEC 61131-3 Programming Environment > Tools > The console > Special commands > FOR - iterate a command |
Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents