Program Instructions; Bit Logic; Standard Inputs - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Program instructions

7.1

Bit logic

7.1.1

Standard inputs

LAD
FBD
Input / output
bit (LAD, STL)
Input (FBD)
Output (FBD)
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
STL
LD
bit
A
bit
O
bit
LDN
bit
AN
bit
ON bit
Data type
BOOL
BOOL
BOOL
Description
Test a bit value in memory (M, SM, T, C, V, S, L) or process image
register (I or Q).
LAD: Normally open and normally closed switches are represented
by a contact symbol. If power flow is present on the left-side and the
contact is closed, then power flows through the contact to the right-
side connector and to the next connected element.
The Normally Open (N.O.) LAD contact is closed (ON) when the
bit is equal to 1.
The Normally Closed (N.C.) LAD contact is closed (ON) when the
bit is equal to 0.
FBD: Normally open instructions are represented by AND/OR boxes.
Box instructions can be used to evaluate Boolean signals in the same
manner as ladder contact networks. Normally closed instructions are
also represented by boxes. A normally closed instruction is created
by placing the negation circle
nal connector. The number of inputs for the AND/OR boxes can be
expanded to a maximum of 31 inputs.
STL: The normally open contact is represented by the LD (load), A
(AND), and O (OR) instructions. These instructions load, AND, or OR
the value of the addressed bit with the top bit of the logic stack. The
normally closed contact is represented by the LDN (Load NOT), AN
(AND NOT), and ON (OR NOT) instructions. These instructions load,
AND, or OR the logical NOT of the addressed bit value with the top
bit of the logic stack.
Operand
I, Q, V, M, SM, S, T, C, L,
I, Q, V, M, SM, S, T, C, L, Logic flow
I, Q, V, M, SM, S, T, C, L, Logic flow
7
, on a binary input sig-
169

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents