Classes - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

4.2

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
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 or
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
Applicable POU
Program
Function block
block
4.2 Classes
Function
4
Function
4 LABELS
39

Advertisement

Table of Contents
loading

Table of Contents