EasyManuals Logo

Mitsubishi MELSEC System Q User Manual

Mitsubishi MELSEC System Q
170 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #75 background imageLoading...
Page #75 background image
4.6.2 Variables
Variables contain the values of inputs, outputs, or the internal devices of the PLC.A distinction
is made between two different types of variables:
Global variables and
Local variables
Global Variables can be regarded as “shared” variables and are the interface to physical PLC
devices. They are made available to all POU’s and reference an actual physical PLC I/O or
named internal devices within the PLC. Global Variables make it possible to exchange data
between the individual POUs.
For a particular POU to access a Global Variable, it must be declared in the Header of this
POU. The Header can be made up of both Global Variables and Local Variables.
A Local Variable can be thought of as an intermediate result. A POUs can not access Local
Variables of other POUs.
Declaring Variables
At the start of each POE the variables are declared, i.e.they are assigned to a certain data type
like INT or BOOL.
Each variable has the following elements:
Class
Identifier, the name of the variable
Absolute address (optional for global variables)
Data type
Inital value (is specified automatically)
Comment (optional)
MELSEC System Q Beginners Manual 4 11
An Introduction to Programming The IEC 61131-3 Standard
Global
Variables
Local
variables
of
POU 1
Local
variables
of
POU 2
PLC program
of POE 1
PLC program
of POE 2
Header
Body
Header
Body

Table of Contents

Other manuals for Mitsubishi MELSEC System Q

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC System Q and is the answer not in the manual?

Mitsubishi MELSEC System Q Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC System Q
CategoryController
LanguageEnglish

Related product manuals