
Programming Actions and Conditions
S7-GRAPH for S7 300/400 Programming Sequential Control Systems
7-18
C79000-G7076-C526-01
Ladder Logic Element
Address
Data type
Memory
Area
Description
Compare box
IN1
IN2
CMP
==
= =
>
<
> =
< =
< >
I N T
D I N T
R E A L
IN1: First
comparison
value
INT/ DINT/
REAL/
TIMER/
CONST
I, Q, M, data
(double)
word
The compare box has the signal
state "1" when the comparison
between the two addresses IN1
and IN2 is true.
INT: 16-bit integer comparator
Parameter: words
DINT: 32-bit integer comparator
and comparator for timers
Parameter: double words, timers
REAL: 32-bit floating-point number
comparator Parameter: double
words
IN2:
Second
comparison
value
INT / DINT /
REAL /
TIMER /
CONST
I, Q, M, data
(double)
word
Note:
When you enter the comparator
you only need to specify the data
type D/R/I explicitly when you enter
the 32 bit values without specifying
a type (for example when
accessing absolute addresses in
the double word area). Otherwise
the data type is detected by the
system so that the specification can
be omitted.
Coil
Address
-----( )
<address>
BOOL
I, Q, M, data
bit
You use coils only in the permanent
instructions of a sequencer.
The address contains the result of
the conditions that were
programmed within the permanent
instructions (logic operations with
normally open contacts, normally
closed contacts, compare boxes). It
specifies the bit to which the signal
state is assigned.