Local Labels; Classes - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

28.2

Local Labels

A local label is a label that can be used only in the declared POU. Local labels outside the declared POU cannot be used.
The settings of a local label include a label name, class, and data type.
28.3

Classes

The label class indicates from which POU and how a label can be used.
Different classes can be selected depending on the type of POU.
Global label
Class
VAR_GLOBAL
VAR_GLOBAL_CONSTANT
VAR_GLOBAL_RETAIN
Local label
Class
VAR
VAR_CONSTANT
VAR_RETAIN
VAR_INPUT
VAR_OUTPUT
VAR_OUTPUT_RETAIN
VAR_IN_OUT
VAR_PUBLIC
VAR_PUBLIC_RETAIN
28 LABELS
496
28.2 Local Labels
Description
A common label that can be used in both program blocks and
function blocks
A common constant that can be used in both program blocks
and function blocks
A latch type label that can be used in both program blocks and
function blocks
Description
A label that can be used within the range of a declared POU.
This label cannot be used in other POUs.
A constant that can be used within the range of a declared
POU.
This label cannot be used in other POUs.
A latch type label that can be used within the range of a
declared POU. This label cannot be used in other POUs.
A label that inputs a value into a function or function block.
This label receives a value, and the received value cannot be
changed in a POU.
A label that outputs a value from a function or function block
A latch type label that outputs a value from a function block
A local label that receives a value and outputs the value from a
POU. The value can be changed in a POU.
A label that can be accessed as the public variable from other
POUs
A latch type label that can be accessed as the public variable
from other POUs
Applicable POU
Program
Function block
block
(FB)
Applicable POU
Program
Function block
block
(FB)
Function
(FUN)
Function
(FUN)

Advertisement

Table of Contents
loading

Table of Contents