EasyManuals Logo

JUMO LOGOSCREEN 700 User Manual

JUMO LOGOSCREEN 700
64 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 #27 background imageLoading...
Page #27 background image
27
5 Data types and fields
5.2 Fields
All data types can also be declared as a one-dimensional or two-dimensional field (array) (see standard
DIN IEC 61131-3). The following sections use the data type REAL as an example.
One-dimensional field
Declaration of variables (example: field with 3 variables):
VAR
rArrayExample : ARRAY [0..2] OF REAL;
END_VAR
Declaration of constants (example: field with 3 constants):
VAR CONSTANT
rArrayConstExample : ARRAY [0..2] OF REAL := [0.0, 0.1, 0.2];
END_VAR
Assignment (example):
rArrayExample[0] := 0.0;
rArrayExample[1] := 0.1;
rArrayExample[2] := 0.2;
Two-dimensional field
Declaration of variables (example: field with 3 x 2 variables):
VAR
rArrayExample : ARRAY [0..2, 0..1] OF REAL;
END_VAR
Declaration of constants (example: field with 3 x 2 constants):
VAR CONSTANT
rArrayConstExample : ARRAY [0..2, 0..1] OF REAL :=
[0.0, 0.1, 0.2,
1.0, 1.1, 1.2];
END_VAR
Assignment (example):
rArrayExample[0,0] := 0.0;
rArrayExample[1,0] := 0.1;
rArrayExample[2,0] := 0.2;
rArrayExample[0,1] := 1.0;
rArrayExample[1,1] := 1.1;
rArrayExample[2,1] := 1.2;

Other manuals for JUMO LOGOSCREEN 700

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the JUMO LOGOSCREEN 700 and is the answer not in the manual?

JUMO LOGOSCREEN 700 Specifications

General IconGeneral
BrandJUMO
ModelLOGOSCREEN 700
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals