Classes - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

22.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
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
Applicable POU
Program
Function block
block
22 LABELS
22.3 Classes
Function
Function
22
373

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents