EasyManua.ls Logo

ECKELMANN Compact GLT 3010 - Page 45

ECKELMANN Compact GLT 3010
119 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Firmware: V2.18 / V--
26.10.2022
45/119
The following overview shows the relationship between IEC address/variable name and the generated program
code.
Physical inputs and outputs and flags
Bit variable in the input image IX0.0 returns: <variable name> AT %IX0.0 : BOOL;
Word variable in the input image IW1 returns:<variable name>AT%IW1:WORD;
Integer variable in the input image II2 returns:<variable name>AT%II2:INT;
Word variable flag as setpoint MW4.10 returns:<variable name> AT %MW4.10 :
WORD;
Word variable flag as alarm MW5.0.2 returns:<variable name> AT %MW5.0.2:
BOOL;
Dummy inputs and outputs
Bit variable general X returns:<variable name> : BOOL;
Word variable general W returns:<variable name> : WORD;
Integer variable general I returns:<variable name> : INT;
Real variable general R returns:<variable name> : REAL;
Whenusingthesecharacters,ordinaryvariablesarecreatedinsteadofprocessimagevariables.
Constants
Bit constant TRUE returns:<variable name> : BOOL := TRUE;
Bit constant FALSE returns:<variable name> : BOOL := FALSE;
Word constant W(3200) returns:<variable name> : WORD := 3200;
Integer constant I(-1) returns:<variable name>:INT:=-1;
Real constant R(2.5) returns:<variable name> : REAL := 2.5;
Time constant t#2s returns:<variable name>:TIME:=T#2S;
Example Overwrite physical input and output with constant TRUE and W(32000)
Address Type Effect
IX6.3 BOOL Connected to IO.
TRUE IX6.3 BOOL Fixed constant value TRUE. No connection to the IO.
IW23 WORD Connected to IO.
W(32000) IW23 WORD Fixed constant value 3200. No connection to the IO.
Physical inputs or outputs can be "overwritten" for test purposes by writing a constant before the
address in the Signal List. This has the advantage that the information of the IEC address is retained. If
the constant is removed after the test, the variable is again connected to the physical input or output.

Table of Contents