Using Operands In A Program - Eaton easyE4 Manual

Hide thumbs Also See for easyE4:
Table of Contents

Advertisement

5. Programming on the device

5.7 Using operands in a program

5.7 Using operands in a program
200
Only operands can be processed in a program. Accordingly, device input values, device
output values, device P button states, diagnostic alarms, and backlight LED outputs
need to be stored in operands. All operands can be mapped to markers, and markers
are also considered operands. In fact, these markers can be used for bit, byte, word,
and double word access in the program and for implementing simple calculations and
connections.
Elementary data types
Following is a list of the various elementary data types. These data types are inde-
pendent of the programming language you select.
Type/(description)
BOOL/(Bit)
BYTE/(Byte)
WORD/(Word)
DWORD/(Double Word)
Permissible operands at a glance
Table 70: Permissible operands
Operand
Explanation
I
Input
Q
Output
P
P buttons
ID
Diagnostic alarm
IA
Analog Input
QA
Analog output
M
Markers
MB
Marker byte
MW
Marker word
MD
Marker double word
LE
LED output
RN
Input bit via NET (receive)
SN
Output bit via NET (send)
N
Network marker
NB
Network marker byte
NW
Network marker word
ND
Network marker double word
easyE4 10/19 MN050009 EN www.eaton.com
Length
Format
in bits
1
Binary (bool)
8
Decimal number
(unsigned)
16
Decimal number
(unsigned)
32
Decimal number
(signed)
Value range
Example
0/1, FALSE/TRUE
TRUE (1)
0...255
128
0 - 65535
1023
-2 147 483 648...
- 65535
+2 147 483 647
Data
Data
width:
type
1 bit
BOOL
1 bit
BOOL
1 bit
BOOL
1 bit
BOOL
32 bit
DINT
32 bit
DINT
1 bit
BOOL
8 bit
BYTE
16 bit
WORD
32 bit
DINT
1 bit
BOOL
1 bit
BOOL
1 bit
BOOL
1 bit
BOOL
8 bit
BYTE
16 bit
WORD
32 bit
DINT

Advertisement

Table of Contents
loading

Table of Contents