Converting Function Block Definitions To Library Files - Omron CX-PROGRAMMER 5.0-FUNCTION BLOCK OPERATION Operation Manual

Function blocks
Table of Contents

Advertisement

Converting Function Block Definitions to Library Files

Function Block Holding
Area Words (H512 to
H1535)
1-4
Converting Function Block Definitions to Library Files
16
Setting Procedure
Select Function Block Memory - Function Block Memory Allocation from
the PLC Menu. Set the areas in the Function Block Memory Allocation Dialog
Box.
Function Block Instance Areas
FB Instance
Area
Start Address
Non Retain
H512
Retain
H1408
Timers
T3072
Counters
C3072
The Function Block Holding Area words are allocated from H512 to H1535.
These words are different to the standard Holding Area used for programs
(H000 to H511) and are used only for the function block instance area (inter-
nally allocated variable area). These words cannot be specified as instruction
operands. They are displayed in red if input when a function block is not being
created. Although the words can be input when creating a function block, an
error will occur when the program is checked. If this area is specified not to be
retained in the Function Block Memory Allocation Dialog Box, turn the power
ON/OFF or clear the area without retaining the values when starting opera-
tion.
A function block definition created using the CX-Programmer can be stored as
a single file known as a function block definition file with filename extension
*.cxf. These files can be reused in other projects (PLCs).
Project
tim_b
tim_a
INT
Default value
End Address
Size
H1407
896
H1535
128
T4095
1024
C4095
1024
Project
Save
Read
Function block
definition file (.cxf)
Section 1-4
Applicable memory
areas
CIO, WR, HR, DM, EM
HR, DM, EM
TIM
CNT
Function block definition
1. Algorithm
tim_b
TIMX tim_a OFF_TIME
tim_a
TIMX tim_b ON_TIME
ENO
2. Variable Definitions
Internal
tim_a
TIMER
tim_b
TIMER
Internal

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