<< Prev        Next >>

ID : 474

Variable

A variable is a container to store data used in a task. A variable can reference or overwrite a value by statement processing and direct entry.

Types of variables are as follows:

Global variable
Variable which is already defined by the system setting. It can be referred from all the tasks. Values are retained even when the controller is shut off.
Local variable
Variable which is named and created (declared) in PacScript program (task) by user. It is declared (created) and created in the procedure or declarative part of the program. Valid range (scope) and save area are selective depending on the attribute.

ID : 474

<< Prev        Next >>