Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 25

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Same function blocks can be instantiated with different names in a single POU.
Instance A
Function block
wLabel5
wLabel1
Input variable 1
wLabel6
wLabel2
Input variable 2
wLabel7
wLabel9
wLabel3
Input variable 3
Instance A
Function block
wLabel5
wLabel1
Input variable 1
wLabel6
Input variable 2
wLabel2
wLabel7
wLabel9
Input variable 3
wLabel3
(1) Same instances use the same internal variables.
(2) Different instances use different internal variables.
■ Structure of instance
An instance consists of the following data areas.
Data area
Local label area
Local latch label area
■ Capacity of instance
The capacity of each data area of an instance should be calculated as follows.
• Local label area
Capacity of local label area of instance = Total capacity of data of local labels (except the ones with latch attribute) + Capacity
of reserved area
Breakdown
Capacity of local labels (except the ones with latch
attribute)
Capacity of reserved area
• Local latch label area
Capacity of local latch label area of instances = Total capacity of data of local labels with latch attribute + Capacity of reserved
area
Breakdown
Capacity of latch attribute local labels
Capacity of reserved area
The local label area capacity is assigned by using the engineering tool. For details, refer to the following.
 GX Works3 Operating Manual
wLabel8
Output variable
wLabel4
Local variable
(1)
wLabel8
wLabel10
Output variable
wLabel4
wLabel11
Local variable
wLabel12
Description
Used to assign the local label of the function block.
Used to assign the latch attribute local label of the function block.
Description
Total capacity of the data areas used for local labels
The capacity of the area reserved to add local labels except the ones with latch attribute and local
instances by executing the online program change function (fixed to 48 words)
Description
Total capacity of the data areas used for latch attribute local labels
The capacity of the area reserved to add latch attribute local labels and local instances by executing the
online program change function (fixed to 16 words)
(2)
Instance B
Function block
wLabel5
Input variable 1
wLabel8
Output variable
wLabel6
Input variable 1
wLabel7
wLabel9
Input variable 1
Local variable
3 PROGRAM ORGANIZATION UNITS
wLabel13
3.3 Function Blocks (FB)
3
23

Advertisement

Table of Contents
loading

Table of Contents