|Top Previous Next|
The VAR_INPUT statement is used to initiate the section where a function, function block, or the main program input variables can be declared. If the VAR_INPUT section is used in the main program, variables declared within this section can be configured from the configuration dialog. Variables declared in the VAR_INPUT section can only be read from within the program and not written.
Please note that when declaring variables in this section, a | sign followed by a description is a special type of comment. Comments following this syntax will be shown as comments when the configuration dialog is invoked. This helps the person who does the configuration to remember the function of the variable being configured.
It is allowed to have more than one VAR_INPUT section within the same scope.