Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual page 46

Function blocks
Table of Contents

Advertisement

Instance Specifications
Instance Name
Function Block
Instance Areas
Function Block Instance
Area Types
Note
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.
Pulse_2sON_2sOFF
CLOCK PULSE
EN
ENO
&20
ON_TIME
&10
OFF_TIME
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.
FB Instance
Area
Start Address
Non Retain
H512
Retain
H1408
Timers
T3072
Counters
C3072
The following settings are made in the function block instance area:
Non-retained Areas
Item
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
H512 to H140
(default)
(1) Except when the data type is set to TIMER or COUNTER.
Instance name
Default value
End Address
Size
H1407
896
H1535
128
T4095
1024
C4095
1024
Contents
Section 2-2
Applicable memory
areas
CIO, WR, HR, DM, EM
HR, DM, EM
TIM
CNT
31

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-programmer 5.0Sysmac ws02-cxpc1-e-v50Cs1-hCj1-hCj1m

Table of Contents