30.3.1
Usable Addresses
In GP-Pro EX, in addition to device/PLC addresses and a display
unit's internal device addresses, you can use symbols, variables,
and system variables for addressing.
Symbol
Symbols are names created by the application designer and
applied to an individual address on a device/PLC or on the display
unit's internal devices. You can register Symbols from the [Common
Settings] menu's [Symbol Variable] command. The total number of
symbols you can register is 10000.
8.14.5 Common Settings [Symbol
Variables] Settings Guide
You can manage all addresses using names, and even use these
names when defining the address in parts and other objects.
Bit address and Word address
Variable
Variables are symbols mapped to the variable area on the display
unit. Refer to the following for details on variable types.
30.3.2.2 Variable Type
There are two ways to register variables as follows.
You can use the variable area set up on the
display unit by defining the data format and name.
You can register Variables from the [Common
Settings] menu's [Symbol Variable] command.
The total number of variables you can register differs depending on
the model. (You cannot register variables on GP-4100 series or
GP-4*01TM.)
-
When creating a new project file, select
[Variable Format].
-
If you selected a model that does not support
logic functions, you cannot select [Address Format].
-
You can select [Address Format] only when
creating a new program. You cannot change the format to [Address
Format] after you create a program.
30.3.2 Using Addresses with
Flexible Names (Variable Format)
Use a fixed variable name for individual
addresses. Use this format when there are too many addresses to
name.
-
You can change the method from [Address Format]
to [Variable Format] even during logic programming. However you
cannot change back from [Variable Format] to [Address Format].
-
Even if the number of addresses in the logic
program exceeds the number of variables, you can change the format
from [Address Format] to [Variable Format]. This causes only the
addresses in the logic program to change to variables.
Thus, not all the addresses available to the logic program are
changed into variables.
30.3.3 Using Prepared
Addresses (Address Format)
PLC Address (Device Address)
For a device address (Device Address), use the original
addresses of device/PLC or display unit, for example, [PLC1]X00100
or [#INTERNAL]LS0100.
External Address
This looks up the connection device data.
You can use this area only when communication with the device/PLC
is set through a direct access system.
For example, [PLC1]X00100
You cannot use disabled addresses to read
devices/PLC. For unreadable addresses, refer to the "GP-Pro EX
Device Connection Manual".
Internal Address
These are temporary storage locations for saving data such as
the values operated on or controlled in the display unit.
This contains free user areas and an area for
operating the display unit.
You can use this area only when communication with the device/PLC
is set through a direct access system.
For example, [#INTERNAL]LS0100
You may use all areas as you like, up to
30,000 Words.
For example, [#INTERNAL]USR00100
This area acts as a medium for the host
write/read request.
You can use this area only when communication with the connection
device is set through a memory link.
For example, [#MEMLINK]0100
System
Variables
These variables have predefined functions. Show the display unit
status, or run operations. You cannot delete system variables.
|