Storing and Organizing Data. Why Do I Need to Understand How Data Is Represented? In order to install, program,maintain, and troubleshoot today’s PLCs,

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
Chapter 7 Input Modules.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
Number Systems and Codes In PLC
Revision Introductory Lesson
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Programmable Logic Controllers
Simple Data Type Representation and conversion of numbers
Advanced Instructions Most PLCs now support more advanced functions such as Floating point math, Boolean operations, Shifting, Sequencing, Program control.
Programmable Logic Controllers
MOV,MOVM,COP,FLL,BSL,BSR, FRD,TOD
Introduction to PLC Operation
IT253: Computer Organization
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Memory Layout and SLC500™ System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Memory Layout and SLC500 System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Turbine Crane CRANES TURBINE NEA39. Turbine Crane PLANT STATUS! PV Daily Status Report.
Complements and Codes by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano  Programmable Controllers-Theory and Implementation,
CSNB374: Microprocessor Systems Chapter 1: Introduction to Microprocessor.
EET 250 Number systems. Introduction to Number Systems While we live in a world where the decimal number is predominant in our lives, computers and digital.
Copyright © 2002 Delmar Thomson Learning Chapter 4 Number Systems.
Data Representation Conversion 24/04/2017.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Codes by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
AEEE2031 Data Representation and Numbering Systems.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
MECH1500 Chapter 3.
Introduction to PLC Operation
PLC ARCHITECTURE – Memory 2 by Dr. Amin Danial Asham.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Number Representation and Arithmetic Circuits
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
Binary numbers. Primary memory Memory = where programs and data are stored – Unit = bit “BIT” is a contraction for what two words? Either a 1 or a 0 (because.
Chapter 5.
EKT 314/4 WEEK 9 : CHAPTER 4 DATA ACQUISITION AND CONVERSION ELECTRONIC INSTRUMENTATION.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Programmable Logic Controller
Data Representation COE 308 Computer Architecture
Number Systems and Codes
Data Representation ICS 233
Chapter 5.
Data Representation.
Microprocessor Systems Design I
CHAPTER 1 : INTRODUCTION
Number Systems.
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
Chapter 10 © 2011, The McGraw-Hill Companies, Inc.
EPSII 59:006 Spring 2004.
Number Systems and Codes
Decimal System The radix or base of a number system determines
Chapter 4 Number Systems.
Digital Concepts for PLCs
PLC Hardware Components.
Chapter Four Data Representation in Computers By Bezawit E.
Number Systems Rayat Shikshan Sanstha’s
Number Systems Rayat Shikshan Sanstha’s
Arithmetic Circuits.
Networks & I/O Devices.
ENEL 111 Digital Electronics
Data Representation COE 308 Computer Architecture
Presentation transcript:

Storing and Organizing Data

Why Do I Need to Understand How Data Is Represented? In order to install, program,maintain, and troubleshoot today’s PLCs, you must understand the different methods by which internal data is represented.

Objectives Identify the commonly used number systems used in PLCs. Convert binary data to decimal. Examine how data is stored in PLC data tables. Describe how BCD field devices interface.

PLC Words One measure of a computer’s capabilities is the length of the data words on which it can operate. Many current PLCs use 16-bit words. Many newer PLCs use 32-bit words. SLC 500 and PLC 5 family PLCs are 16-bit computers. Control Logix is a 32-bit computer.

Number Systems Typically Used with PLCs

We Use Words to Represent Information Our words are groups of characters grouped together to represent something. The words we use are of different lengths. –Controller –The –Monday

We Use Symbols Called Numbers to Represent Data Everyday numbers are decimal. 12,345

Computers Do Not Understand Computers do not understand the words and numbers humans use. Computers have their own language called binary.

Binary Concept Two-state devices are described as either discrete or digital devices. –Discrete or digital devices are simply either on or off. –Binary is based on two states, on or off.

Binary Language Binary information is also represented in groups of characters. A group of binary digits called bits can be organized into words. Binary bits consist of only two characters –1 and 0

Binary Words 16 bits grouped together is called a word. A binary word might look like:

Information Represented as Combinations of Bits

Decimal Numbers Ten digits –0,1,2,3,4,5,6,7,8,9 Base or radix –10 Weights –1, 10, 100, 1000

Decimal Number System

The Binary Number System Has the Following Characteristics Two digits –0 or 1 Base or radix –2 Weights –1, 2, 4, 8, 16, 32, 64…

16-bit Binary Word Bit Weighting MSB LSB LSB = least significant bit MSB = most significant bit

Binary Numbers Place Values

Binary Number Weighting

Decimal 0 through 7 Represented with Binary Bits

Comparison of Decimal to Binary Numbers

Parts of a 16-bit Word

Bytes, Nibbles, and Bits

PLC Data Formats Two 8-bit unsigned bytes of data 16-bit unsigned integer 16-bit signed integer 32-bit signed integer Binary coded decimal Hexadecimal

Two 8-bit Unsigned Bytes of Data

Hexadecimal

16-bit Signed Integer

16-bit Unsigned Integer

32-bit Signed Integer (1 of 2) Double Word Sign bit Lower 31 bits contain the value 32 – bit signed integer data range: -2,147,483,648 to +2,147,483,647

32-bit Signed Integer (2 of 2) Double Word Word Byte

Basic PLC Data Types Data TypeDescriptionSizeRange BoolSingle bitBit1 = ON 0 = OFF Sint8 bitsByte-128 to +127 Int16 bitsWord-32,768 to +32,767 Dint32 bitsDouble Word -2,147,483,648 +2,147,483,647 RealFloating pointReal or floating Point Larger than Dint or with Decimal point

Data Table Format Words are 16 bits. –Bits 0 through bit 15 First word or bit is always 0. SLC 500 data tables can contain up to 256 words (0 to 255). PLC 5 data tables can contain up to 1,000 words (0 to 999).

Words Arranged in a Data Table

Status Table Words Assigned by Module Requirements The number of status table words assigned depend on what a specific module needs. –16-point module equals 16 bits. –32-point module equals 32 bits. –Four-channel analog equals four words. –Eight-channel analog needs eight.

SLC 500 I/O Configuration

16-point Module’s I/O Points Represented in a Word

Physical Input Conditions and the Corresponding Input Data Word

8-Point Input Module Represented in a Word

SLC 500 Input Status Table

24-point I/O Module Represented in Two Words

Two Words Representing Inputs for a 32-bit Module

Output Status File Correlation to Module

SLC 500 Digital Outputs

Four Words Representing a Four-channel Analog Module Channel 0 Channel Channel 2 Channel

SLC 500 Analog Input Channels

SLC 500 Output Analog Channels

So, What’s in It for ME?? I need to be able to work with different number systems. –PLC configuration –PLC troubleshooting –Program interpretation –Error code interpretation –Data conversion to different hardware

SLC 500 Analog Input Module Configuration You need to configure a 1747sc-INI4i analog input module. Module configuration specifications are listed below.

Channel Configuration Word SLC 500 Processor Analog Input Module Analog Input Signal Channel Data Word Channel Status Word Channel Configuration

Specifications Enable the input channel 4- to 20-mA input range Work in engineering units Pump to run maximum if open input 60-Hz input filter Auto calibration disabled

What Do You Need to Do? Determine the 16-bit data word for the configuration. Convert the binary word into decimal. Program a move instruction on your SLC 500 ladder to move the configuration data to each analog channel.

Input Channel Configuration Word

What value will you enter into the move instruction’s source?

Understanding Binary Coded Decimal (BCD)

Single-digit BCD Thumb-wheel Interfaced to a PLC

Binary Coded Decimal Number Bit Patterns

Binary Coded Decimal

Two-digit BCD Thumb-wheel Interface

Four-digit BCD Thumb-wheel

Output Module Connected to Seven-segment Display

Comparison of BCD to Decimal and Binary Numbers

BCD Invalid Codes

Decimal, Hexadecimal, and BCD Comparisons

SLC 500 Conversion from BCD

SLC 500 Converting to BCD

PLC 5 Converting from BCD

PLC 5 Converting to BCD