Internal Allocation Of Variable Addresses - Omron CX-PROGRAMMER V8.1 Operation Manual

Function blocks/ structured text
Table of Contents

Advertisement

Variables
1-3-5

Internal Allocation of Variable Addresses

Setting Internal Allocation
Areas for Variables
When an instance is created from a function block definition, the CX-Program-
mer internally allocates addresses to the variables. Addresses are allocated
to all of the variables registered in the function block definition except for vari-
ables that have been assigned actual addresses with the AT Settings prop-
erty.
Program
Instance of function block definition A
a
b
Input 0.00
Output 2.00
t
Output 5.00
Note: Variable c is an internal
variable, so it is not displayed.
Usage: Inputs
Properties:
Name Type
AT
Initial Value
Retained
a
BOOL
Usage: Outputs
Properties:
Name Type
AT
Initial Value
Retained
b
YES
BOOL
t
TIMER
Usage: Internals
Properties:
Name Type
Initial Value
AT
Retained
c
2000.00
BOOL
The user sets the function block instance areas in which addresses are allo-
cated internally by the system. The variables are allocated automatically by
the system to the appropriate instance area set by the user.
Setting Procedure
Select Function Block/SFC Memory - Function Block/SFC Memory Allo-
cation from the PLC Menu. Set the areas in the Function Block/SFC Memory
Allocation Dialog Box.
FB instance areas
Non-retained area
15
Starting address
CIO, H, W,
D, or E Area
Retained area
15
Starting address
H, D, or E
Area
Timer area
Starting address
T Area
Counter area
Starting
Automatic allocation of
C Area
address
addresses by system
Example
2000.00
Manual allocation of address to
variable in FB by AT Settings option.
Section 1-3
0
Size (words)
0
Size (words)
Size (Completion
Flags)
Size (Completion
Flags)
21

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-PROGRAMMER V8.1 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents

Save PDF