31
Instance Specifications Section 2-2
Instance Name This is the name of the instance.
• Instance names can be up to 30,000 characters long.
• Instance names cannot contain spaces or any of the following characters:
!“#$%&‘()=-~^\|‘@{[+;*:}]<,>.?/
• Instance names cannot start with a number (0 to 9).
There are no other restrictions.
The instance name is displayed above the instance in the diagram.
Function Block
Instance Areas
To use a function block, the system requires memory to store the instance’s
internal variables and I/O variables. These areas are known as the function
block instance areas and the user must specify the first addresses and sizes
of these areas. The first addresses and area sizes can be specified in 1-word
units.
When the CX-Programmer compiles the function, it will output an error if there
are any instructions in the user program that access words in these areas.
Function Block Instance
Area Types
The following settings are made in the function block instance area:
Non-retained Areas
Note (1) Except when the data type is set to TIMER or COUNTER.
CLOCK PULSE
EN
ENO
ON_TIME
OFF_TIME
Pulse_2sON_2sOFF
Instance name
&20
&10
FB Instance
Area
Default value Applicable memory
areas
Start Address End Address Size
Non Retain H512 H1407 896 CIO, WR, HR, DM, EM
Retain H1408 H1535 128 HR, DM, EM
Timers T3072 T4095 1024 TIM
Counters C3072 C4095 1024 CNT
Item Contents
Allocated variables Variables for which the retain property for power OFF and
operation start is set as non-retained (See note 1.)
Applicable areas H (Function block Special Holding Area), I/O (CIO Area), H
(Holding Area), W (Internal Relay Area), D (Data Memory
Area) (see note 2), E (Extended Data Memory Area) (See
notes 2 and 3.)
Setting unit Set in words
Allocated words
(default)
H512 to H140