EasyManuals Logo

CRE Technology GENSYS 2.0 User Manual

CRE Technology GENSYS 2.0
244 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 #150 background imageLoading...
Page #150 background image
A53 Z0 9 0020 L En Technical documentation
Chapter : Text file & PLC
150
When the cycle controller, checks the validity module (range min / max) values of variables X2nnn. If the
value is legal, it is kept in memory for further operation. If the value is invalid, the internal variable will
retain the value it had just before the PLC cycle ( the value E2nnn).
Note that as the first set is a picture of the variables before execution of the equations, it can be viewed as
“read only”. This means that when you write the following equation:
E2680 := 320;
The value “320” will be attributed to variable 2680 in the second set of variables as well.
14.6
Syntax examples
Test examples:
TEST condition THEN instruction TEND;
TEST condition THEN BLOC instruction; instruction;…;instruction BEND TEND;
TEST condition THEN BLOC instruction; instruction;…;instruction BEND
ELIF condition THEN BLOC instruction; instruction;…;instruction BEND
ELIF condition THEN BLOC instruction; instruction;…;instruction BEND
ELSE BLOC instruction; instruction;…;instruction BEND
TEND;
Calculation / instruction examples:
E2680:=(E2000+E2001+E2002+E2003)/4;
E2000:=2; E2680[E2000+1]:=10;
E2680:=(E0030 GT 1450) AND ((E0030 GT 1500) OR E2680);
Condition examples:
TEST E2050 EQ 1 THEN ...
TEST E0030 GT 1500 THEN ...
TEST (!E2046) AND E2055 AND ((E2071 EQ 14) OR (E2071 EQ 15)) EQ 1 THEN …
The following example is a small text file that could be sent to a module using a level 2 password. In this
example, the following variables are used:
-[E0160] is the value of CANopen digital input 1 from an extension module.
-[E1710] is a user parameter. It will be used as the period of a counter.
-[E1711] is another user parameter used as the “duty ratio” of the counter.
-[E2440] is a user variable used as a counter in this example.
-[E2441] and [E2442] are two user variables.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the CRE Technology GENSYS 2.0 and is the answer not in the manual?

CRE Technology GENSYS 2.0 Specifications

General IconGeneral
BrandCRE Technology
ModelGENSYS 2.0
CategoryControl Unit
LanguageEnglish

Related product manuals