0% found this document useful (0 votes)
45 views

Binary Operation & Data Block

This document provides an overview of symbol addressing, binary logic operations, data blocks, and data types for PLC training. The objectives are to explain symbolic addressing, the structure of S7 programs, logic operations like AND, OR, XOR, and how sensors and symbols are represented. It also discusses how data is assigned, set and reset in PLC programs and gives an overview of data blocks and the elementary and complex data types used in STEP 7 projects.

Uploaded by

Habib
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Binary Operation & Data Block

This document provides an overview of symbol addressing, binary logic operations, data blocks, and data types for PLC training. The objectives are to explain symbolic addressing, the structure of S7 programs, logic operations like AND, OR, XOR, and how sensors and symbols are represented. It also discusses how data is assigned, set and reset in PLC programs and gives an overview of data blocks and the elementary and complex data types used in STEP 7 projects.

Uploaded by

Habib
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

4

Addressing & Block Architecture and Editor

Contents

Objective...............................................................................................................................................1
Absolute & Symbolic Addressing...........................................................................................................2
Symbol Addressing................................................................................................................................3

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Objective

The Objective of this Training Below

 Symbolic Addressing
 S7 Program Structure

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Binary Logic Operations: AND OR

Logic Table

AND

I 0.0 I 0.1 Q 8.0


0 0
0 1
1 0
1 1

OR

I 0.2 I 0.3 Q 8.2


0 0
0 1
1 0
1 1

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Symbol Addressing

Logic Table

XOR

I 0.0 I 0.1 Q 8.0


0 0
0 1
1 0
1 1

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.

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Sensors and Symbols

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”.

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Assignment, Setting, Resetting

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.

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Data Blocks (DB’s)

Overview

 Used for storing user’s data.


 DB contains variable data that is used in the user program.
 The user program access data from DB and use it for operation. Symbolic or absolute address
can be used.

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.

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Overview of Data Types in STEP 7

Elementary Data Types

 Predefined in accordance with IEC 61131-3.


 Data type determines the amount of memory space required. Example, the word data type
takes 16 bits in user memory.
 Elementary data types are never more than 32 bit long.

Complex Data Types

 Only used in conjunction with variables declared in global data blocks.


 Cannot loaded into accumulator with load instruction.
 Need standard blocks from the IEC library (“IEC” S7 Program) to process complex data
types.

User-Defined Data Types

 Data block editor to create UDT


 User defined
 Structure contains of a UDT can contains groups of elementary and/or complex data types.

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK


4

Elementary Data Types in STEP 7

BASIC PLC TRAINING | BINARY OPERATION & DATA BLOCK

You might also like