Procedures
Method Used for Checking Addresses Internally Allocated to Variables
Checking the Status of
Addresses Internally
Allocated to Variables
1,2,3...
Optimizing Function
Memory
1,2,3...
130
Program
Instance of function block definition A,
instance name: sample
a
b
c
Instance registered in global
symbol table under instance name.
Address/
Name
Type
Value
sample FB [FunctionBlock1]
N/A [Auto]
Instance name
The following procedure can be used to check the number of addresses allo-
cated to variables and the number still available for allocation in the function
block instance areas.
1. Select the instance in the Ladder Section Window, right-click, and select
Function Block Memory - Function Block Memory Statistics from the
PLC Menu.
2. The Function Block Memory Statistics Dialog Box will be displayed as
shown below. Check address usage here.
The total number
of words in each
interface area.
When a variable is added or deleted, addresses are automatically re-allocated
in the variables' instance area. Consecutive addresses are required for each
instance, so all of the variables will be allocated to a different block of
addresses if the original block of addresses cannot accommodate the change
in variables. This will result in an unused block of addresses. The following
procedure can be used to eliminate the unused areas in memory so that
memory is used more efficiently.
1. Select the instance in the Ladder Section Window, right-click, and select
Function Block Memory - Optimize Function Memory from the PLC
Menu.
The following dialog box will be displayed.
2. Click the OK Button. Allocations to the function block instance areas will
be optimized.
Right-click and select Function
Block Memory Address.
FM Instance Memory Dialog Box
Inputs
Name
Type
a
BOOL
Outputs
Name
Type
b
BOOL
c
BOOL
Addresses used for function
block internal variables
The number of
words still available.
The number
of words
already used.
Section 3-2
Address
W400.00
Address
W401.00
W401.02
Need help?
Do you have a question about the CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION and is the answer not in the manual?