Create a variable in language editors
In language editors, create variables for an instruction. The variable will simultaneously be created in the local variable, global variable, or the defined word grid, depending on the scope you selected.
To create a variable in language editors
- OpenNew variableby doing one of the following:
- In the ladder language editor, on an instruction, right-click an operand, and then selectNew variable.
- In the function block diagram language editor, right-click an input reference, output reference, or variable, and then selectNew variable.
- In the structured text language editor, right-click anywhere, and then selectNew variable.
- InNew variable:
- On theGeneralpage, enter the variable name. The scope and data type of the variable are automatically filled.
- On theGeneralandAdvancedpages, specify other parameters as needed.
- SelectCreate.
Provide Feedback