Binary Operation & Data Block
Binary Operation & Data Block
Binary Operation & Data Block
Contents
Objective...............................................................................................................................................1
Absolute & Symbolic Addressing...........................................................................................................2
Symbol Addressing................................................................................................................................3
Objective
Symbolic Addressing
S7 Program Structure
Logic Table
AND
OR
Symbol Addressing
Logic Table
XOR
Rule
Rule is valid for the logic operation of two addresses after XOR.
Output signal is state “1”, when one and only one of two checks is fulfilled.
Process
Normally open normally close contacts for the sensor in a controlled process.
Normally close contacts always used for limit switches & safety switches so that dangerous
conditions do not arise if wire break occurs in the circuit.
Normally Closed contact are also used for switching off machinery.
Symbols
In LAD – NO Contact checking signal state “1” & NC checking signal “0”.
The “NC contact” symbol delivers the result of check “1” when the checked address state or
status is “0”.
Process
An assignment passes the Result of Logic Operation (RLO) on to the specified address (Q,
M, D). When RLO changes, the signal state of that address also changes.
Set
If RLO = “1”, the specified address is set to signal state “1” and remains set until another
instruction resets the address.
Reset
If RLO = “1”, the specified address is reset to signal state “0” and remains set until another
instruction resets the address.
Overview
Uses
Shared data blocks – contains information that all logic blocks (OB1) in the user program can
access.
Instance Data Block – these are always assigned to a particular FB. Each DB is used only by
assigned FB.