2 - 3
2 HMI Application Basics
NA-series Programmable Terminal Startup Guide (V120)
2-2
V
ariab
les
2
2-2
Variables
A variable is a container to store the I/O data that is exchanged with external devices or temporary data
for internal processing.
In the HMI, all the operations such as exchanging I/O data with external devices or arithmetic process-
ing on data are performed with variables.
Therefore, it is possible to create an HMI application that does not depend on the memory addresses in
the hardware.
Each object on a page accesses a variable in the global variable table of the HMI as shown below.
Some variables are mapped to global variables in the Controller (external variables) and other variables
are not mapped (internal variables).
A subroutine variable can be read and written only from within one subroutine. A global variable, how-
ever, can be read and written from everywhere in the project. The application that is described in this
guide defines the variables to access the pushbutton switches and lamps as global variables.
The data type is an attribute that defines the format and range of values that a variable can express.
When a variable is defined, the data type must always be specified.
In an NA-series Programmable Terminal, you can use the same data types as those used in Visual
Basic. Refer to the
NA-series Programmable Terminal Software User’s Manual
(Cat. No. V118) for
details.
Subroutine Variables and Global Variables
Data Types of Variables
Page
Object
HMI
HMI Global Variable Table
Access
Mapping
Controller Global Variables
Access
Access
Variable
SwGreen
Controller name in the project:
new_Controller_0
Variable
SwYellow
Variable
SwRed
Variable: External Variable
new_Controller_0_SwGreen
Variable: External Variable
new_Controller_0_SwYellow
Variable: External Variable
new_Controller_0_SwRed
Variable: Internal Variable
abc
Содержание NA5-12*101 series
Страница 1: ...Programmable Terminal NA series Startup Guide V120 E1 03 NA5 15 101 NA5 12 101 NA5 9 001 NA5 7 001 ...
Страница 10: ...CONTENTS 8 NA series Programmable Terminal Startup Guide V120 ...
Страница 70: ...5 Useful Functions 5 6 NA series Programmable Terminal Startup Guide V120 ...
Страница 71: ...I 1 I NA series Programmable Terminal Startup Guide V120 Index ...
Страница 73: ......