3 The radix or base of a number system determines the total number of different symbols or digits used by that system. The decimal system has a base of 10 with the digits 0 through 9 being used. The value of a decimal number depends on the digits that make up the number and the place value of each digit.
4 3.2 Binary System
5 The binary system has a base of 2 and the only allowable digits are 0 and 1. With digital circuits it is easy to distinguish between two voltage levels, which can be related to the binary digits 1 and 0.
6 Since the binary system uses only two digits, each position of a binary number can go through only two changes, and then a 1 is carried to the immediate left position. All numbering systems start at zero.
7 NUMBER SYSTEMS Decimal (base 10) Binary (base 2) Octal (base 8) Hexadecimal (base 16)
8 Converting a binary number to a decimal number.
9 Each digit of a binary number is known as a bit. Each word is capable of storing data in the form of bits. A group of 8 bits is a byte. The least significant bit (LSB) represents the smallest value and the most significant bit (MSB) represents the largest value.
10 PLC memory is organized using bytes, single words, or double words. If the memory size is 1 K word, it can store 1024 words or 16,384 (1024 x 16) bits of information using 16-bit words,
11 Converting a decimal number to a binary number.
12 Computer memory is a series of binary 1s and 0s. Output status file made up of single bits grouped into 16-bit words. One 16-bit output file word is reserved for each slot in the chassis. Each bit represents the ON or OFF state of one output point.
13 3.3 Negative Numbers
14 Binary systems can not use positive and negative symbols to represent the polarity of a number. Signed Binary Numbers In signed binary numbers, the left-most bit is the equivalent of a +/- sign. "0" indicates that the number is positive, "1" indicates negative.
15 Another method of expressing a negative number is by using the complement of a binary number. To complement a binary number, change all the 1s to 0s and all the 0s to 1s. This is known as the 1 s complement form of a binary number.
16 2 s complement is the binary number that results when 1 is added to the 1 s complement. 0 sign bit indicates a positive number. 1 sign bit indicates a negative number.
17 3.4 Octal System
18 The octal numbering system is a base 8 system Numbers 8 and 9 not allowed
19 The octal numbering system is used because 8 data bits make up a byte of information that can be addressed. PLC-5 controllers use octal-based I/O addressing.
20 Octal is a convenient means of handling large binary numbers. One octal digit can be used to express three binary digits. Converting an octal number to a decimal number.
21 Octal converts easily to binary equivalents. The octal number 462 is converted to its binary equivalent by assembling the 3-bit groups.
22 3.5 Hexadecimal System
23 The hexadecimal (hex) system is a base 16 system. Letters A to F are used to represent decimal numbers 10 to 15.
24 The hex numbering system is used in PLCs because a word of data consists of 16 data bits. Converting hexadecimal to decimal. Hexadecimal digits in the columns are multiplied by the base 16 weight, depending on digit significance.
25 Converting decimal to hexadecimal. Conversion is accomplished by writing the 4-bit binary equivalent of the hex digit for each position.
26 3.6 Binary Coded Decimal System
27 The binary coded decimal (BCD) system uses 4 bits to represent each decimal digit. The 4 bits used are the binary equivalents of the numbers from 0 to 9.
28 The BCD representation of a decimal number is obtained by replacing each decimal digit by its BCD equivalent.
29 To distinguish the BCD numbering system from a binary system, a BCD designation is placed to the right of the units digit. Decimal expressed is binary is Decimal expressed in BCD is BCD
30 A thumbwheel switch is an input device that makes use of the BCD numbering system. The input module attached to the thumbwheel has one connection for each bit s weighted value. Selected digit of decimal 8 outputs the equivalent 4 bits of BCD data 1000 BCD
31 Single Digit Thumbwheel Switch Simulation Decimal Settings Binary Input
33 PLCs contain number conversion functions. The Convert-to-BCD instruction will convert the binary bit pattern at the source address, N7:23, into a BCD bit pattern of the same decimal value and store it at the destination address, O:20.
34 Many PLCs allow you to change the format of the data that the data monitor displays. The change radix function found on Allen-Bradley controllers allows you to change the display format of data to binary, octal, decimal, or hexadecimal.
35 Change Radix Function Simulation
36 3.7 Gray Code
37 The Gray code is set up so that as we progress from one number to the next, only one bit changes. Each position does not have a definite weight. This can be quite confusing for counting circuits, but it is ideal for encoder circuits.
38 Gray codes are used with position encoders for accurate control of the motion of robots, machine tools, and servomechanisms. Since only one bit changes at a time, the Gray code is considered to be an error-minimizing code.
39 Optical encoder disk that uses a 4-bit Gray code. The encoder disk is attached to a rotating shaft and outputs a digital Gray code signal that is used to determine the position of the shaft.
40 3.8 ASCII Code
41 ASCII stands for American Standard Code for Information Interchange. It is an alphanumeric code because it includes letters as well as numbers.
42 The keystrokes on the keyboard of a computer are converted directly into ASCII for processing by the computer. The communication interfacing is done through either an RS-232 or RS-422 protocol. ASCII input modules convert ASCII code input information from an external device to alphanumeric information that the PLC can process.
43 3.9 Parity Bit
44 Some PLC communication systems use a binary bit to check the accuracy of data transmission. When data are transferred between PLCs, one of the binary digits may be accidentally changed from a 1 to a 0. A parity bit is used to detect errors that may occur while a word is moved.
45 Parity is a system in which each character transmitted contains one additional parity bit. The parity bit may be a 0 or 1, depending on the number of 1s and 0s in the character itself. Odd parity means that the total number of binary 1 bits in the character, including the parity bit, is odd. Even parity means that the number of binary 1 bits in the character, including the parity bit, is even.
46 3.10 Binary Arithmetic
47 When adding with binary numbers, there are only four conditions that can occur:
50 To subtract from larger binary numbers, subtract column by column, borrowing from the adjacent column when necessary. When borrowing from the adjacent column, there are now two digits, i.e., 0 borrow 1 gives 10.
51 Binary numbers can also be negative. The procedure for this calculation is identical to that of decimal numbers because the smaller value is subtracted from the larger value and a negative sign is placed in front of the result.
52 There are other methods available for doing subtraction: 1 s complement and 2 s complement. Using the 1 s complement When there is a carry at the end of the result, the result is positive. When there is no carry, then the result is negative and a minus sign has to be placed in front of it.
53 When there is a carry at the end of the result, the result is positive. When there is no carry, then the result is negative and a minus sign has to be placed in front of it.
54 For subtraction using the 2 s complement, the 2 s complement is added instead of subtracting the numbers. In the result, if the carry is a 1, then the result is positive; if the carry is a 0, then the result is negative and requires a minus sign.
56 When multiplying binary numbers, there are only four conditions that can occur:
57 The process for dividing one binary number by another is the same for both binary and decimal numbers.
58 PLC data comparison instructions are used to compare the data stored in two words. At times, devices may need to be controlled when they are less than, equal to, or greater than other data values or set points.
ECE Department Summer LECTURE #5: Number Systems EEL : Digital Logic and Computer Systems Based on lecture notes by Dr. Eric M. Schwartz Decimal Number System: -Our standard number system is base, also
LSN 2 Number Systems Department of Engineering Technology LSN 2 Decimal Number System Decimal number system has 10 digits (0-9) Base 10 weighting system... 10 5 10 4 10 3 10 2 10 1 10 0. 10-1 10-2 10-3
EE 261 Introduction to Logic Circuits Module #2 Number Systems Topics A. Number System Formation B. Base Conversions C. Binary Arithmetic D. Signed Numbers E. Signed Arithmetic F. Binary Codes Textbook
Binary Representation The basis of all digital data is binary representation. Binary - means two 1, 0 True, False Hot, Cold On, Off We must be able to handle more than just values for real world problems
Digital codes This worksheet and all related files are licensed under the Creative Commons Attribution License, version 1.0. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/,
Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 04 Digital Logic II May, I before starting the today s lecture
Binary Numbers Binary Octal Hexadecimal Binary Numbers COUNTING SYSTEMS UNLIMITED... Since you have been using the 10 different digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 all your life, you may wonder how
Chapter 1: Digital Systems and Binary Numbers Digital age and information age Digital computers general purposes many scientific, industrial and commercial applications Digital systems telephone switching
CDA 3200 Digital Systems Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012 Outline Data Representation Binary Codes Why 6-3-1-1 and Excess-3? Data Representation (1/2) Each numbering
CPEN 4 - Digital Logic Design Binary Systems C. Gerousis Digital Design 3 rd Ed., Mano Prentice Hall Digital vs. Analog An analog system has continuous range of values A mercury thermometer Vinyl records
Slide 1/30 Learning Objectives In this chapter you will learn about: Computer data Computer codes: representation of data in binary Most commonly used computer codes Collating sequence 36 Slide 2/30 Data
NUMBER SYSTEMS 1.1 Introduction There are several number systems which we normally use, such as decimal, binary, octal, hexadecimal, etc. Amongst them we are most familiar with the decimal number system.
Lecture 11: Number Systems Numeric Data Fixed point Integers (12, 345, 20567 etc) Real fractions (23.45, 23., 0.145 etc.) Floating point such as 23. 45 e 12 Basically an exponent representation Any number
Numeral Systems Which number is larger? 25 8 We need to distinguish between numbers and the symbols that represent them, called numerals. The number 25 is larger than 8, but the numeral 8 above is larger
Digital Design Assoc. Prof. Dr. Berna Örs Yalçın Istanbul Technical University Faculty of Electrical and Electronics Engineering Office Number: 2318 E-mail: email@example.com Grading 1st Midterm -
Number Bases //9 Goals Numbers Understand binary and hexadecimal numbers Be able to convert between number bases Understand binary fractions COMP37 Introduction to Computer Architecture Unary Numbers Decimal
Number Systems Introduction / Number Systems Data Representation Data representation can be Digital or Analog In Analog representation values are represented over a continuous range In Digital representation
G InThisAppendix... Introduction Binary Numbering System Hexadecimal Numbering System Octal Numbering System Binary Coded Decimal (BCD) Numbering System Real (Floating Point) Numbering System BCD/Binary/Decimal/Hex/Octal
1 Base Arithmetic 1.1 Binary Numbers We normally work with numbers in base 10. In this section we consider numbers in base 2, often called binary numbers. In base 10 we use the digits 0, 1, 2, 3, 4, 5,
Lecture 2 Binary and Hexadecimal Numbers Purpose: Review binary and hexadecimal number representations Convert directly from one base to another base Review addition and subtraction in binary representations
Computer Science 281 Binary and Hexadecimal Review 1 The Binary Number System Computers store everything, both instructions and data, by using many, many transistors, each of which can be in one of two
1 Topics Machine Architecture and Number Systems Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Decimal to Binary Major Computer Components
Number Representation CS10001: Programming & Data Structures Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur Topics to be Discussed How are numeric data
23CH_PHCalter_TMSETE_949118 23/2/2007 1:37 PM Page 1 Binary, Hexadecimal, Octal, and BCD Numbers OBJECTIVES When you have completed this chapter, you should be able to: Convert between binary and decimal
Binary Representation The basis of all digital data is binary representation. Binary - means two 1, 0 True, False Hot, Cold On, Off We must tbe able to handle more than just values for real world problems
COMBINATIONAL CIRCUITS http://www.tutorialspoint.com/computer_logical_organization/combinational_circuits.htm Copyright tutorialspoint.com Combinational circuit is a circuit in which we combine the different
Modbus Frequently Asked Questions WP-34-REV0-0609-1/7 The Answer to the 14 Most Frequently Asked Modbus Questions Exactly what is Modbus? Modbus is an open serial communications protocol widely used in
Chapter 2 Encoding Text with a Small Alphabet Given the nature of the Internet, we can break the process of understanding how information is transmitted into two components. First, we have to figure out
Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,
CSI 333 Lecture 1 Number Systems 1 1 / 23 Basics of Number Systems Ref: Appendix C of Deitel & Deitel. Weighted Positional Notation: 192 = 2 10 0 + 9 10 1 + 1 10 2 General: Digit sequence : d n 1 d n 2...
CS101 Lecture 11: Number Systems and Binary Numbers Aaron Stevens 14 February 2011 1 2 1 3!!! MATH WARNING!!! TODAY S LECTURE CONTAINS TRACE AMOUNTS OF ARITHMETIC AND ALGEBRA PLEASE BE ADVISED THAT CALCULTORS
Technical Support Bulletin Nr.18 Modbus Tips Contents! Definitions! Implemented commands! Examples of commands or frames! Calculating the logical area! Reading a signed variable! Example of commands supported
Counting in base 10, 2 and 16 1. Binary Numbers A super-important fact: (Nearly all) Computers store all information in the form of binary numbers. Numbers, characters, images, music files --- all of these
Decimal to Binary Conversion A tool that makes the conversion of decimal values to binary values simple is the following table. The first row is created by counting right to left from one to eight, for
Section.4 Place Value Systems of Numeration in Other Bases Other Bases The Hindu-Arabic system that is used in most of the world today is a positional value system with a base of ten. The simplest reason
Binary Numbering Systems April 1997, ver. 1 Application Note 83 Introduction Binary numbering systems are used in virtually all digital systems, including digital signal processing (DSP), networking, and
Cyber Security Workshop Encryption Reference Manual May 2015 Basic Concepts in Encoding and Encryption Binary Encoding Examples Encryption Cipher Examples 1 P a g e Encoding Concepts Binary Encoding Basics
ASSEMBLY LANGUAGE PROGRAMMING (6800) (R. Horvath, Introduction to Microprocessors, Chapter 6) 1 COMPUTER LANGUAGES In order for a computer to be able to execute a program, the program must first be present
Programming software for TWK - Encoders Series CRF and DAF CRF 11069 DE 08 / 10 User Manual ProCod TWK-ELEKTRONIK GmbH D-40041 Düsseldorf PB. 10 50 63 T. 02 11/96117-0 F. 02 11/96117-99 e-mail: firstname.lastname@example.org
Memory Structure Memory is implemented as an array of electronic switches Each switch can be in one of two states 0 or 1, on or off, true or false, purple or gold, sitting or standing BInary digits (bits)
Chapter 5 5.1 Processor Memory Organization The memory structure for a PLC processor consists of several areas, some of these having specific roles. With rack-based memory structures addresses are derived
Technical Information Digital Signals 1 1 bit Part 1 Fundamentals t Technical Information Part 1: Fundamentals Part 2: Self-operated Regulators Part 3: Control Valves Part 4: Communication Part 5: Building
M O D U L E F O U R TIMING, 4 COUNTING, AND DATA-HANDLING INSTRUCTIONS Key Points This module is a further exploration of the MicroLogix s programming instructions. Module 3 covered basic relay instructions,
Introduction to Embedded Microcomputer Systems Lecture 5.1 2.9. Conversions ASCII to binary n = 100*(Data-0x30) + 10*(Data-0x30) + (Data-0x30); This 3-digit ASCII string could also be calculated
Multiple Choice Questions(Computer) 1. Which of the following is the product of data processing a. information b. data c. software program d. system 2. The process of putting data into a location is called
The use of binary codes to represent characters Teacher s Notes Lesson Plan x Length 60 mins Specification Link 2.1.4/hi Character Learning objective (a) Explain the use of binary codes to represent characters
Standard ECMA-321 June 2001 Standardizing Information and Communication Systems Streaming Lossless Data Compression Algorithm (SLDC) Phone: +41 22 849.60.00 - Fax: +41 22 849.60.01 - URL: http://www.ecma.ch
HOMEWORKS TM HOMEWORKS TM RS-3 Protocol Data Protocol for Communicating with Lutron's HOMEWORKS System HomeWorks RS-3 Protocol Overview HARDWARE OVERVIEW 3 wire RS-3C protocol 9 pin female D type connector
Unity Pro MBP_MSTR 33002527 07/2011 MBP_MSTR: Modbus Plus Master 12 Introduction This chapter describes the MBP_MSTR block. What s in this Chapter? This chapter contains the following topics: Topic Page
Management Challenge Managing Hardware Assets What computer processing and storage capability does our organization need to handle its information and business transactions? What arrangement of computers
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 1 Introducing Hardware Objectives Learn that a computer requires both hardware and software to work Learn about the many different hardware components
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-7: Parallel Port Interfacing with Switches, Keypad and Rotatory encoder 1 Port Interfacing Parallel port outputs O0 to O7 May be used as poll-lines
Lecture N -1- PHYS 3330 Microcontrollers If you need more than a handful of logic gates to accomplish the task at hand, you likely should use a microcontroller instead of discrete logic gates 1. Microcontrollers
Single channel data transceiver module WIZ2-434 Available models: WIZ2-434-RS: data input by RS232 (±12V) logic, 9-15V supply WIZ2-434-RSB: same as above, but in a plastic shell. The WIZ2-434-x modules
2 Number Systems 2.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Understand the concept of number systems. Distinguish
Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept
The New IoT Standard: Any App for Any Device Using Any Data Format Mike Weiner Product Manager, Omega DevCloud KORE Telematics About KORE The world s largest M2M/IoT services provider 12 Carriers Enterprise
ARINC429 Specification Tutorial Nov 2010 v2.1 Page 2 GmbH Document History GmbH Version Cover Date Created by Description 1.0 July 2001 Pat Frodyma Creation of Document 1.1 July 2001 Pat Frodyma Edit content
MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable
DVPPF02-H2 PROFIBUS DP Slave Communication Module Application Manual Warning Please read this instruction carefully before use and follow this instruction to operate the device in order to prevent damages
Activity 1 Count the Dots Binary Numbers Summary Data in computers is stored and transmitted as a series of zeros and ones. How can we represent words and numbers using just these two symbols? Curriculum
PLC and HMI Counting Lab The goal is to program the PLC and HMI to count with the following behaviors: 1. The counting should be started and stopped from buttons on the HMI 2. The direction of the count
Sistemas Digitais I LESI - 2º ano Lesson 6 - Combinational Design Practices Prof. João Miguel Fernandes (email@example.com) Dept. Informática UNIVERSIDADE DO MINHO ESCOLA DE ENGENHARIA - PLDs (1) - The
Digital Logic Design Introduction A digital computer stores data in terms of digits (numbers) and proceeds in discrete steps from one state to the next. The states of a digital computer typically involve
CCNA R&S: Introduction to Networks Chapter 5: Ethernet 126.96.36.199 Introduction The OSI physical layer provides the means to transport the bits that make up a data link layer frame across the network media.
Features 3 digital I/O Serial Data output Connects directly to RF Modules Easy Enc / Dec Pairing Function Minimal External Components Required Performs all encoding/decoding of data for Reliable Operation.
75 Z80 Assembly Language The assembly language allows the user to write a program without concern for memory addresses or machine instruction formats. It uses symbolic addresses to identify memory locations
Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide Sensors LCD Real Time Clock/ Calendar DC Motors Buzzer LED dimming Relay control I2C-FLEXEL PS2 Keyboards Servo Motors IR Remote Control
HOMEWORK # 2 SOLUTIO Problem 1 (2 points) a. There are 313 characters in the Tamil language. If every character is to be encoded into a unique bit pattern, what is the minimum number of bits required to
Programming Logic controllers Programmable Logic Controller (PLC) is a microprocessor based system that uses programmable memory to store instructions and implement functions such as logic, sequencing,
A towards an Easy Interconversion of Various Number Systems Shahid Latif, Rahat Ullah, Hamid Jan Department of Computer Science and Information Technology Sarhad University of Science and Information Technology
International Securities Identification Number (ISIN) An International Securities Identification Number (ISIN) uniquely identifies a security. An ISIN consists of three parts: Generally, a two letter country
Unit- I Introduction to c Language: C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating
Process Control and Automation using Modbus Protocol Modbus is the fundamental network protocol used in most industrial applications today. It is universal, open and an easy to use protocol. Modbus has
PLC Master / Slave Example A 2 PLC The Example This chapter provides an example of a PLC master / slave network and is designed for the experienced user. This chapter does not provide detailed descriptions
User Manual Because of the variety of uses for the products described in this publication, those responsible for the application and use of this control equipment must satisfy themselves that all necessary