PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1
|
|
|
- Barry Carter
- 9 years ago
- Views:
Transcription
1 UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1 This work covers part of outcome 2 of the Edexcel standard module. The material is quite suitable for anyone wishing to study this interesting subject. This tutorial requires basic mathematical skills and a reasonable knowledge of digital electronic terminology. An industrial background will also be of great benefit to students. Obviously, access to suitable computer software such as Pneusim Pro or Bytronics simulation software will be a great help. SYLLABUS 2 Understand PLC information and communication techniques Forms of signal: analogue (0-10 V dc digital Digital resolution and relationships: 9-bit; 10-bit 12-bit Number systems: decimal; binary; octal; hexadecimal; Binary-Coded Decimal (BCD) Evaluate communication standards: comparison of typical protocols used in signal communication Evaluate networking methods and standards: master to slave; peer to peer; ISO; IEE; MAP Logic functions: writing programmes using logic functions based on relay ladder logic (AND; OR; EXCLUSIVE OR; NAND; NOR) Learning outcomes On successful completion of this unit a learner will: L02 Understand PLC information and communication techniques Assessment criteria for pass The learner can: 2.1 evaluate the different forms of signal used in programmable logic control 2.2 describe the resolution and relationship between analogue inputs and outputs and word length 2.3 express numbers using different number systems 2.4 describe typical protocols used in signal communication and evaluate networking methods and networking standards CONTENTS 1. INTRODUCTION 2. NUMBER SYSTEMS 2.1 Binary Numbers 2.2. Octal and Hexadecimal 2.3 Conversion to/from Binary 2.4 Decimal to Octal Conversion 2.5 Decimal to Hex Conversion 2.6. Applications 2.7. Manipulation 2.8. Binary Decimal Codes 3. REGISTERS 4. ANALOGUE TO DIGITAL and DIGITAL TO ANALOGUE CONVERSION D.J.Dunn 1
2 1. INTRODUCTION Programmable logic controllers are digital devices and using the same kind of internal structure as computers. The information is processed internally in digital forms using data and address busses. They must communicate with external devices such as other computers and programming panels. The digital communication must conform to industrial standards. In industrial applications there are many analogue signals and these must be converted into or from the digital form before they can be received or sent by the PLC. We first need to look at digital information and how it forms numbers of various forms. 2. NUMBER SYSTEMS 2.1 BINARY NUMBERS A number may be represented in digital form by a simple pattern. The pattern may be generated for example with a row of lights switched on by an electric current. The pattern will also exist in the wires connected to the light bulbs. In digital electronics the pattern exists as a voltage relative to zero. Ideally in a typical computer, 5V is ON or high and zero is OFF or low but to make a clear distinction, a voltage of over 3 is regarded high and below 2 is regarded as low. The patterns were originally developed in computers for 8 lines and then this became 16, 32 and 64. Consider a pattern of 8 lines. We indicate on or high with a 1 and off or low with a 0. Each line carries a bit of information as on or off and so the line is referred to as a bit. In the denary system the digit that represents the highest value is on the left (e.g. the 3 in 32 or the 4 in 461). The digit representing the lowest value is on the right. These are called the most significant digit and least significant digit. In binary numbers we adopt the same idea with the bit on the left being the most significant bit (MSB) and the one on the right being the least significant bit (LSB). Figure 1 The total pattern is called a word and the one shown is an 8 bit word. The pattern may be stored in a register so it is also referred to as an 8 bit register. A register is a temporary store where the word may be manipulated. Each bit has a value of zero when off (low) or the denary value shown when on (high). The denary value of the pattern is found by adding them all up. The maximum value for an 8 bit word is when all the bits are high and corresponds to 255. The minimum value is 0 when they are all low so there are 256 possible values. D.J.Dunn 2
3 WORKED EXAMPLE No.1 What is the denary value of the digital pattern below? Figure = 202 SELF ASSESSMENT EXERCISE No.1 Write down the decimal value represented by the following 8 bit patterns Here is a small table of binary numbers with the equivalent denary values. BINARY DENARY CONVERSION A way of converting decimal into binary is to keep dividing the number by 2 as follows. Convert decimal 12 into binary form = 6 remainder = 3 remainder = 1 remainder = 0 remainder 1 The binary pattern is hence D.J.Dunn 3
4 Another way to express the value of each bit comes about by realising that each bit is 2 raised to the power of the bit number OCTAL and HEXADECIMAL Figure 3 Octal is a numbering system based on cycles of 8. It is quite easy to convert a digital number into octal and for this reason it is used by programmers to address memory locations and port addresses (printer port, com port, CD driver address and so on). Early computers used words with 8 bits so octal was convenient to use. Hexadecimal is a numbering system based on 16 and was introduced for the same reasons as octal when computers were developed with 16 bit registers. Hexadecimal Numbers are of far greater importance in modern computing. One Nibble (4 bits) is represented by 1 Hex digit. One Byte is represented by 2 Hex Digits. In octal we have no need for the figures 9 as the cycle restarts after 7. In hexadecimal, we need extra figures and the letters A, B, C, D, E and F are used. Here is the beginning of a conversion table: Decimal Binary Octal Hexadecimal A B C D E F D.J.Dunn 4
5 2.3 CONVERSION TO/FROM BINARY Whereas Decimal seems to have no connection with Binary, from this table we can see that Octal and Hexadecimal are linked to Binary. The first digit in Octal corresponds to the first three digits in it's Binary equivalent, and so on. The same is true for Hexadecimal, but this time each digit represents four Binary digits. (It may be useful to note that 8 = 2 3, and 16 = 2 4 ). An advantage of knowing this is that is makes conversion to/from Binary very easy. WORKED EXAMPLE No.2 Convert : Into Octal and Hexadecimal Octal: Split the number into groups of 3 starting from the L.S.B. on the right Now convert each group immediately into one Octal digit, i.e. 1 becomes 1, 111 becomes 7, 101 becomes 5. So : (@ is the prefix indicating an Octal number) Hexadecimal: Split the number into groups of 4 starting on the right Convert each group immediately into one Hex digit, i.e. 111 becomes 7, 1101 becomes D. So : = &7D (& is the prefix indicating a Hexadecimal number) Conversion from Octal and Hexadecimal to Binary is similarly easy. D.J.Dunn 5
6 2.4 DECIMAL TO OCTAL CONVERSION This is done in a similar way to converting Decimal to Binary. Repeatedly divide the decimal number by 8 and read off the remainders in reverse order. WORKED EXAMPLE No.3 Convert 70 Into Octal = 8 Remainder = 1 Remainder = 0 Remainder 1 So 70 WORKED EXAMPLE No.4 Convert 125 into Octal = 15 Remainder = 1 Remainder = 0 Remainder 1 So DECIMAL TO HEX CONVERSION This again is done by repeatedly dividing the Decimal number by 16 and reading off the remainders in reverse order. WORKED EXAMPLE No.5 Convert 70 into Hexadecimal = 4 Remainder = 0 Remainder 4 So 70 = &46 D.J.Dunn 6
7 WORKED EXAMPLE No.6 Convert 125 into Hexadecimal = 7 Remainder D 7 16 = 0 Remainder 7 So 125 = &7D An application of Hexadecimal numbers is for representing bit patterns. For example the letter "A" is represented in ASII codes as or more conveniently &41. Similarly, the letter "B" is represented as &42. SELF ASSESSMENT EXERCISE No.2 1. Convert 45 into Hex. 2. Convert 20 into Octal 3. Convert 125 into Binary. Note that most scientific/engineering calculators are able to do these conversions. D.J.Dunn 7
8 2.6. APPLICATIONS Consider the basic operation of a computer memory ship. The chip has an address bus and a data bus. It also has a read or write command line. Each line in the bus can be on (high) or off (low) so the system is based on binary patterns. Older equipment had 8 lines in each bus and so Octal became useful. Later this increased to 16 lines so hexadecimal became useful. It has since moved on to 32 and 64 lines. Figure 4 Clearly to use larger numbers, you need more lines in the bus. The diagram shows 8 lines in each bus. When they are all low the decimal value is 0. When they are all high the decimal value is 255 so there are 256 different values that can be represented. When the R/W line is set to write, the binary pattern on the data bus is transferred into a store at the address represented by the binary pattern on the address line. This store is also called a register and the binary pattern is contained in this register. When the R/W line is set to read, the pattern stored in the register at the address on the address bus is transferred to the data bus. SELF ASSESSMENT EXERCISE No.3 Write down the data value in decimal and the address in octal for the case shown. Figure 5 D.J.Dunn 8
9 2.7. MANIPULATION Numbers stored in registers may be added or subtracted to a number stored in another register. This is done in a processing chip. The number from two memory locations is transferred into data registers. A command to the processor makes it add them and the result is placed in a third data register and perhaps transferred to a memory location. ADDING IN DECIMAL Starting with the LSB = 11 write down 1 carry 1 Next carry 1 =6 write down 6 carry 0 Next carry 0 = 11 write down 1 carry 1 Next start a new column and write down carry 1 ADDING IN BINARY The process is the same Starting the LSB, 1+1 = 10 write down 0 carry 1 Moving to bit carry = 1 write down 1 carry 0 Moving to bit carry 0 = 1 write down 1 carry 0 Moving to bit carry 0 = 10 write down 0 carry 1 Moving to bit carry 1 = 10 write down 0 carry 1 Moving to bit carry 1 = 10 write down 0 carry 1 Moving to bit carry 1 = 11 write down 1 carry 1 Moving to bit carry 1 = 11 Write down 1 carry 1 Moving to bit 8 which does not exist there is an implied carry 1 so write down 1. Clearly to store this number you would need a register with more than 8 bits. ADDING IN OCTAL This is similar but remember that it is based on Starting with the LSB = 1 1 write down 1 carry 1 Next carry 1=12 write down 2 carry 1 Next 3+1+ carry 1 = 5 write down 5 Adding in HEX is more difficult as you need to remember the values of ABCDEF It is best to do it on the calculator. Computers do it in binary and the answers are usually expressed in Decimal, Octal or Hex. D.J.Dunn 9
10 SELF ASSESSMENT EXERCISE No.4 Use your calculator to do the following calculations. Binary Octel Hexadecimal x &2D5 x &3A1= &5CE + &9EF= &FF5 &3DE= D.J.Dunn 10
11 2.8. BINARY DECIMAL CODES BCD is yet another way of presenting digital data as a number and it is used in industrial applications (e.g. to code or decode a digital signal from a position transducer). The digital pattern in a register is converted into a 3 digit BCD as follows. The first 4 bits are turned into a normal (denary) number and this number is the units. The next 4 bits are the tens and the next 4 bits are the hundreds. The units cannot exceed a total of 9. The tens cannot exceed a total of 90 and the hundreds cannot exceed a total of 900. The maximum number which can be represented is 999. WORKED EXAMPLE No.7 Deduce the value of the BCD pattern. Figure 6 The first 4 bits decode to = 6 The second 4 bits decode to = 3 The third 4 bits decode to = 5 The decimal value represented is hence 536 SELF ASSESSMENT EXERCISE No.5 Deduce the value of this BCD pattern Answer 695 Figure 7 D.J.Dunn 11
12 3. REGISTERS A register is a memory location containing a digital number. The difference between a register and any other memory location is that the bits may be manipulated under control of the programme. Hence the bits may be shifted right or left or rotated. Depending on the programme, the new bit may be a 1 or a 0. SHIFTING Consider the example below where the register is shifted right with a 1 being added. What is the decimal value before the shift? What is the decimal value after the shift? Now consider the same problem with a left shift. What is the decimal value before the shift? What is the decimal value after the shift? Each bit of the register may be used to control an output so if a bit changes from 0 to 1 the output connected to the bit is turned on. There are many uses for shifting; one of them is to produce a counter. ROTATING Rotating is similar to shifting but the bit that drops off the end reappears as the new bit. Numbers stored in registers can be manipulated. ADDING and SUBTRACTION The contents of one register are added or subtracted to/from the contents of another and the result placed in a third register. MULTIPLICATION and DIVISION The contents of one register may be multiplied or divided by the contents of another and the result placed in a third register. INCREMENTING AND DECREMENTING The decimal value of the register is increased by 1 when incremented and decreased by 1 when decremented. D.J.Dunn 12
13 COMPARISON The contents of two registers may be compared to see if they are the same. Other arithmetical operations may be done such as square roots and differentiation depending on the PLC. The actual operation is much more complicated than discussed here and the result leads to carry over or borrowing of bits. There are special flags that are switched on to indicate these things. FLAGS are single bits in a register that are switched on to indicate the status of something. They are not physical outputs. They can be addressed and used within a programme. PLCs often contain flags that are automatically switched on when a certain event happens such as illustrated below. Figure 8 4. ANALOGUE TO DIGITAL and DIGITAL TO ANALOGUE CONVERSION Analogue to digital conversion is a process of turning an analogue voltage or current into a digital pattern that can be read by a computer and processed. Digital to analogue conversion is the reversed process. A typical module for a PLC is shown below. There are two A/D channels and one D/A channels. The module is connected to the PLC by a ribbon cable or plugs directly to the PLC. Figure 9 The analogue signals are 4 to 20 ma in a modern system but 0 10 volts is still common and others are possible such as -5V to +5 V. The appropriate signal must be connected to the appropriate terminal (V for Volts, I for current and C common). To read an analogue signal into the PLC a routine must be executed within the programme to read the appropriate input. The module produces the conversion and the digital number representing the analogue signal is read into a designated register of the PLC. To produce an analogue output, a routine must be executed to take a digital value in a designated register and put it out to the module where it is converted into a voltage or current. D.J.Dunn 13
14 RE When a digital number is converted into a voltage, each increment of the binary value corresponds with an increment in the voltage output. The value of this increment is the resolution. Consider an 8 bit system. The minimum and maximum number that can be stored is 0 and 255 so there are 255 steps. An analogue voltage in the range 0 to 10 V van be divided up into 255 steps so the resolution is 10/255 = V. This is adequate for most purposes but if very small changes in voltages are to be detected, a higher resolution is needed. A/D and D/A systems commonly available use anything from 4 bits to 32 bits depending on the resolution required. For example if a thermocouple is used to measure temperature, the voltage change for 1 o C is very small and a fine resolution is needed. Other instruments fall in this category. Digital Analogue Converters (DACs) are usually on a single chip and commonly have 9, 10 or 12 bit resolution. Figure bit DAC chip and technical specification 10BIT DAC DUAL Resolution (Bits): 10bit Sampling Rate: 93kSPS Input Channel Type: Serial Supply Voltage Range: 2.7V to 5.5V Digital IC Case Style: SOIC No. of Pins: 8 Data Interface: 3 Wire, Serial Supply Current: 1.6mA Operating Temperature Min: -40 o C Operating Temperature Max: 85 o C SVHC: No SVHC (19-Dec-2012) Base Number: 5617 IC Case Style: SOIC IC Generic Number: 5617 Input Type: Serial Linearity Error: 0.1% Linearity Error ADC / DAC +: 0.5LSB Linearity Error ADC / DAC -: 0.5LSB No. of Bits: 10 No. of Channels: 2 No. of DACs: 2 Operating Temperature Range: -40 o C to +85 o C Output Type: Voltage Package / Case: SOIC Sample Rate: 0.093MSPS Sample Rate: 93kSPS Settling Time: 2.5µs Supply Voltage Max: 5.5V Supply Voltage Min: 2.7V Supply Voltage Range - Analogue: 2.7V to 3.3V, 4.5V to 5.5V Supply Voltage Range - Digital: 2.7V to 3.3V, 4.5V to 5.5V Termination Type: SMD D.J.Dunn 14
15 WORKED EXAMPLE No.8 An analogue instrument produces a variable voltage of 0 to 10 V. It is processed with an A/D converter using 5 bits. Calculate the minimum change in voltage that can be detected. 5 bits has maximum value of = 31 so the smallest voltage detectable is 10/31 = 0.322V SELF ASSESSMENT EXERCISE No.6 An analogue instrument produces a signal with a range 4 to 20 ma. It is processed with a 9 bit A/D converter. What is the smallest current change that ca be detected. Answer ma D.J.Dunn 15
2011, The McGraw-Hill Companies, Inc. Chapter 3
Chapter 3 3.1 Decimal System 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
Oct: 50 8 = 6 (r = 2) 6 8 = 0 (r = 6) Writing the remainders in reverse order we get: (50) 10 = (62) 8
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
PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15
UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 ASSIGNMENT 3 DESIGN AND OPERATIONAL CHARACTERISTICS NAME: I agree to the assessment as contained in this assignment.
INSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS
INSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS This tutorial provides an overview of signal processing and conditioning for use in instrumentation and automatic control systems.
Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur
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
Base Conversion written by Cathy Saxton
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,
MICROPROCESSOR AND MICROCOMPUTER BASICS
Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit
Numbering Systems. InThisAppendix...
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
DS1621 Digital Thermometer and Thermostat
www.maxim-ic.com FEATURES Temperature measurements require no external components Measures temperatures from -55 C to +125 C in 0.5 C increments. Fahrenheit equivalent is -67 F to 257 F in 0.9 F increments
PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1
UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1 This work covers part of outcome 3 of the Edexcel standard module: Outcome 3 is the most demanding
Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide
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
Digital to Analog and Analog to Digital Conversion
Real world (lab) is Computer (binary) is digital Digital to Analog and Analog to Digital Conversion V t V t D/A or DAC and A/D or ADC D/A Conversion Computer DAC A/D Conversion Computer DAC Digital to
Number Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi)
Conversions Dr. Sarita Agarwal (Acharya Narendra Dev College,University of Delhi) INTRODUCTION System- A number system defines a set of values to represent quantity. We talk about the number of people
DS1621 Digital Thermometer and Thermostat
Digital Thermometer and Thermostat www.dalsemi.com FEATURES Temperature measurements require no external components Measures temperatures from 55 C to +125 C in 0.5 C increments. Fahrenheit equivalent
plc numbers - 13.1 Encoded values; BCD and ASCII Error detection; parity, gray code and checksums
plc numbers - 3. Topics: Number bases; binary, octal, decimal, hexadecimal Binary calculations; s compliments, addition, subtraction and Boolean operations Encoded values; BCD and ASCII Error detection;
Programming Logic controllers
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,
6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10
Lesson The Binary Number System. Why Binary? The number system that you are familiar with, that you use every day, is the decimal number system, also commonly referred to as the base- system. When you
EE 261 Introduction to Logic Circuits. Module #2 Number Systems
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
isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide
November 2005 Introduction Application Note AN6067 The isppac -POWR1220AT8 device from Lattice is a full-featured second-generation Power Manager chip. As part of its feature set, this device supports
Binary, Hexadecimal, Octal, and BCD Numbers
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
COMBINATIONAL CIRCUITS
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
DS1721 2-Wire Digital Thermometer and Thermostat
www.dalsemi.com FEATURES Temperature measurements require no external components with ±1 C accuracy Measures temperatures from -55 C to +125 C; Fahrenheit equivalent is -67 F to +257 F Temperature resolution
PART B QUESTIONS AND ANSWERS UNIT I
PART B QUESTIONS AND ANSWERS UNIT I 1. Explain the architecture of 8085 microprocessor? Logic pin out of 8085 microprocessor Address bus: unidirectional bus, used as high order bus Data bus: bi-directional
NUMBER SYSTEMS. 1.1 Introduction
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.
CPU systron S 200 - S 250 - S 250c. systron S 200 - S 250 - S 250c. CPUs to the process modules. Stand-alone PLC
E031019 000823 systron S 200 - S 250 - S 250c CPU systron S 200 - S 250 - S 250c 45 mm width Flexible and expandable Easy to use software for bus connection (S 250/ S 250c) CPUs to the process modules
ProCod. User Manual. Programming software for TWK - Encoders Series CRF and DAF CRF 11069 DE 08 / 10
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: [email protected]
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION Introduction The outputs from sensors and communications receivers are analogue signals that have continuously varying amplitudes. In many systems
Lecture 11: Number Systems
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
Modbus RTU Communications RX/WX and MRX/MWX
15 Modbus RTU Communications RX/WX and MRX/MWX In This Chapter.... Network Slave Operation Network Master Operation: RX / WX Network Master Operation: DL06 MRX / MWX 5 2 D0 Modbus Network Slave Operation
CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012
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
3. Convert a number from one number system to another
3. Convert a number from one number system to another Conversion between number bases: Hexa (16) Decimal (10) Binary (2) Octal (8) More Interest Way we need conversion? We need decimal system for real
Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.
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 and codes in digital systems
Number and codes in digital systems Decimal Numbers You are familiar with the decimal number system because you use them everyday. But their weighted structure is not understood. In the decimal number
MICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1
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
The Answer to the 14 Most Frequently Asked Modbus Questions
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. Binary Values and Number Systems
Chapter 2 Binary Values and Number Systems Numbers Natural numbers, a.k.a. positive integers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative numbers A
Digital Design. Assoc. Prof. Dr. Berna Örs Yalçın
Digital Design Assoc. Prof. Dr. Berna Örs Yalçın Istanbul Technical University Faculty of Electrical and Electronics Engineering Office Number: 2318 E-mail: [email protected] Grading 1st Midterm -
MACHINE ARCHITECTURE & LANGUAGE
in the name of God the compassionate, the merciful notes on MACHINE ARCHITECTURE & LANGUAGE compiled by Jumong Chap. 9 Microprocessor Fundamentals A system designer should consider a microprocessor-based
PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section
PRELIMINARY DS2434 Battery Identification Chip FEATURES Provides unique ID number to battery packs PACKAGE OUTLINE Eliminates thermistors by sensing battery temperature on chip DALLAS DS2434 1 2 3 256
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV UNIT I THE 8086 MICROPROCESSOR 1. What is the purpose of segment registers
Figure 8-1 Four Possible Results of Adding Two Bits
CHPTER EIGHT Combinational Logic pplications Thus far, our discussion has focused on the theoretical design issues of computer systems. We have not yet addressed any of the actual hardware you might find
BINARY CODED DECIMAL: B.C.D.
BINARY CODED DECIMAL: B.C.D. ANOTHER METHOD TO REPRESENT DECIMAL NUMBERS USEFUL BECAUSE MANY DIGITAL DEVICES PROCESS + DISPLAY NUMBERS IN TENS IN BCD EACH NUMBER IS DEFINED BY A BINARY CODE OF 4 BITS.
8254 PROGRAMMABLE INTERVAL TIMER
PROGRAMMABLE INTERVAL TIMER Y Y Y Compatible with All Intel and Most Other Microprocessors Handles Inputs from DC to 10 MHz 8 MHz 8254 10 MHz 8254-2 Status Read-Back Command Y Y Y Y Y Six Programmable
CPEN 214 - Digital Logic Design Binary Systems
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
(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter
NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter Description: The NTE2053 is a CMOS 8 bit successive approximation Analog to Digital converter in a 20 Lead DIP type package which uses a differential
Industrial Process Controllers
Unit 50: Industrial Process Controllers Unit code: QCF Level 3: Credit value: 10 Guided learning hours: 60 Aim and purpose Y/600/0339 BTEC Nationals This unit provides learners with an opportunity to gain
Decimal Number (base 10) Binary Number (base 2)
LECTURE 5. BINARY COUNTER Before starting with counters there is some vital information that needs to be understood. The most important is the fact that since the outputs of a digital chip can only be
The string of digits 101101 in the binary number system represents the quantity
Data Representation Section 3.1 Data Types Registers contain either data or control information Control information is a bit or group of bits used to specify the sequence of command signals needed for
Part Number Description Packages available
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.
eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.
eztcp Technical Document Modbus/TCP of eztcp Version 1.3 Caution: Specifications of this document may be changed without prior notice for improvement. Sollae Systems Co., Ltd. http://www.sollae.co.kr Contents
Useful Number Systems
Useful Number Systems Decimal Base = 10 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} Binary Base = 2 Digit Set = {0, 1} Octal Base = 8 = 2 3 Digit Set = {0, 1, 2, 3, 4, 5, 6, 7} Hexadecimal Base = 16 = 2
The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual. 14.10.2010 HAW - Arduino 1
The I2C Bus Introduction The I2C-bus is a de facto world standard that is now implemented in over 1000 different ICs manufactured by more than 50 companies. Additionally, the versatile I2C-bus is used
Decimal to Binary Conversion
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
A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware
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
150127-Microprocessor & Assembly Language
Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an
Interfacing Analog to Digital Data Converters
Converters In most of the cases, the PIO 8255 is used for interfacing the analog to digital converters with microprocessor. We have already studied 8255 interfacing with 8086 as an I/O port, in previous
Binary Numbers. Binary Octal Hexadecimal
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
MEP Y9 Practice Book A
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,
User Manual. AS-Interface Programmer
AS-Interface Programmer Notice: RESTRICTIONS THE ZMD AS-INTERFACE PROGRAMMER HARDWARE AND ZMD AS-INTERFACE PROGRAMMER SOFTWARE IS DESIGNED FOR IC EVALUATION, LABORATORY SETUP AND MODULE DEVELOPMENT ONLY.
Goals. Unary Numbers. Decimal Numbers. 3,148 is. 1000 s 100 s 10 s 1 s. Number Bases 1/12/2009. COMP370 Intro to Computer Architecture 1
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
COMPSCI 210. Binary Fractions. Agenda & Reading
COMPSCI 21 Binary Fractions Agenda & Reading Topics: Fractions Binary Octal Hexadecimal Binary -> Octal, Hex Octal -> Binary, Hex Decimal -> Octal, Hex Hex -> Binary, Octal Animation: BinFrac.htm Example
Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the
DVI Interface The outline: The reasons for digital interface of a monitor the transfer from VGA to DVI. DVI v. analog interface. The principles of LCD control through DVI interface. The link between DVI
2011, The McGraw-Hill Companies, Inc. Chapter 5
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
A Step towards an Easy Interconversion of Various Number Systems
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
THE INPUT/OUTPUT SYSTEM. Key Points
M O D U L E T W O THE 2 INPUT/OUTPUT SYSTEM Key Points In the first module, you learned about the basic architecture and operation of the Allen-Bradley Micrologix 1000, including a brief introduction to
MBP_MSTR: Modbus Plus Master 12
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
Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description
MPTH: Commands Table 1 below is a complete list of MPTH commands with descriptions. Note: Commands are three bytes long, Command Start Byte (default is 128), Command Code, Setting value. Table 1 : MPTH
COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design
PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits
Computer Science 281 Binary and Hexadecimal Review
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
AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR
AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR INTRODUCTION This Project "Automatic Night Lamp with Morning Alarm" was developed using Microprocessor. It is the Heart of the system. The sensors
Controller for AD9850 DDS Modules Andy Talbot G4JNT 2012-12-06
Controller for AD9850 DDS Modules Andy Talbot G4JNT 2012-12-06 Latest Comments. Construction notes and feedback from builders at the end The low cost ( 3) Chinese made modules available via Ebay contain
MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012
MIDECO 64-outputs MIDI note decoder USER MANUAL Roman Sowa 2012 www.midi-hardware.com 1.Overview Thank you for choosing MIDECO as your new MIDI-to-digital converter. This short manual will guide you through
Keystation Pro 88 Advanced Guide. Contents: 1 Getting Started. 2 Terminology. 3 Performance Operations of the Keystation Pro 88
Keystation Pro 88 Advanced Guide Contents: 1 Getting Started 2 Terminology 3 Performance Operations of the Keystation Pro 88 Sending Program Changes During Performance Sending Bank Changes During Performance
CHAPTER 11: Flip Flops
CHAPTER 11: Flip Flops In this chapter, you will be building the part of the circuit that controls the command sequencing. The required circuit must operate the counter and the memory chip. When the teach
Digital codes. Resources and methods for learning about these subjects (list a few here, in preparation for your research):
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/,
Programmable set for Ethernet Modbus/TCP in IP67 TI-BL67-PG-EN-2
Type code Ident no. 1545065 Number of channels 2 Dimensions (W x L x H) 108 x 145 x 77.5 mm CoDeSys-programmable acc. to IEC 61131-3 Cable max. 50 m between interface and read/write head 10/100 Mbps Male
Section 3. Sensor to ADC Design Example
Section 3 Sensor to ADC Design Example 3-1 This section describes the design of a sensor to ADC system. The sensor measures temperature, and the measurement is interfaced into an ADC selected by the systems
THE BASICS OF PLL FREQUENCY SYNTHESIS
Supplementary Reading for 27 - Oscillators Ron Bertrand VK2DQ http://www.radioelectronicschool.com THE BASICS OF PLL FREQUENCY SYNTHESIS The phase locked loop (PLL) method of frequency synthesis is now
Application Unit, MDRC AB/S 1.1, GH Q631 0030 R0111
, GH Q631 0030 R0111 SK 0010 B 98 The application unit is a DIN rail mounted device for insertion in the distribution board. The connection to the EIB is established via a bus connecting terminal at the
Analog Inputs and Outputs
Analog Inputs and Outputs PLCs must also work with continuous or analog signals. Typical analog signals are 0-10 VDC or 4-20 ma. Analog signals are used to represent changing values such as speed, temperature,
Section 1.4 Place Value Systems of Numeration in Other Bases
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
ADS9850 Signal Generator Module
1. Introduction ADS9850 Signal Generator Module This module described here is based on ADS9850, a CMOS, 125MHz, and Complete DDS Synthesizer. The AD9850 is a highly integrated device that uses advanced
1.Eastron SDM220Modbus Smart Meter Modbus Protocol Implementation V1.0
1.Eastron SDM220Modbus Smart Meter Modbus Protocol Implementation V1.0 1.1 Modbus Protocol Overview This section provides basic information for interfacing the Eastron Smart meter to a Modbus Protocol
PC2400 EEPROM PROGRAMMER INSTRUCTION MANUAL
PC2400 EEPROM PROGRAMMER INSTRUCTION MANUAL LAST UPDATE 23/09/09 LLOYD RESEARCH LTD., 7&7A BROOK LANE, WARSASH, SOUTHAMPTON, HANTS., SO31 9FH. Tel: +44 (0)1489 885515/574040 Fax: +44 (0)1489 885853 Internet:
IBS IP KIS A. Data Sheet INTERBUS-S. Digital I/O Module
IBS IP KIS A Data Sheet Digital I/O Module Data Sheet Revision C Product Description The IBS KIS IP A module is a digital I/O module for the extended installation remote bus. Features - InterBuS-S protocol
Today. Binary addition Representing negative numbers. Andrew H. Fagg: Embedded Real- Time Systems: Binary Arithmetic
Today Binary addition Representing negative numbers 2 Binary Addition Consider the following binary numbers: 0 0 1 0 0 1 1 0 0 0 1 0 1 0 1 1 How do we add these numbers? 3 Binary Addition 0 0 1 0 0 1 1
HD44780-Based LCD Modules. Introduction to the LM018L
HD44780-Based LCD Modules Hitachi LM018L 40 character x 2 lines Built-in LSI HD44780 controller +5volt single power supply Display Colour: Grey LM018L: Introduction Interfacing Display Pattern and Character
Disturbance Recoder SPCR 8C27. Product Guide
Issued: April 1999 Status: Updated Version: C/26.04.2006 Data subject to change without notice Features Versatile digital disturbance recorder module for recording various phenomena in the electric power
Systems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 2: Number Systems and Arithmetic Number Systems - Base The number system that we use is base : 734 = + 7 + 3 + 4 = x + 7x + 3x + 4x = x 3 + 7x
Part 1. MAX 525 12BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1
MIDI to Voltage Converter Part 1 MAX 525 12BIT DAC with an Arduino Board 1 What you need: 2 What you need : Arduino Board (Arduino Mega 2560) 3 What you need : Arduino Board (Arduino Mega 2560) Digital
S7 for Windows S7-300/400
S7 for Windows S7-300/400 A Programming System for the Siemens S7 300 / 400 PLC s IBHsoftec has an efficient and straight-forward programming system for the Simatic S7-300 and ern controller concept can
TIMING, COUNTING, AND DATA-HANDLING INSTRUCTIONS. Key Points
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,
HP03 BAROMETER MODULE 2007-1-17 Version: 1.1
. Integrated pressure sensor. Pressure Range 300-1100hpa. 16 Bit Σ Δ ADC. 11 coefficients for software compensation stored on chip. I 2 C Serial Interface. One system clock line (32768Hz). One hardware
B0099 - Robo Claw 2 Channel 5A Motor Controller Data Sheet
B0099 - Robo Claw 2 Channel 5A Motor Controller Feature Overview: 2 Channel at 5A, Peak 7A Hobby RC Radio Compatible Serial Mode TTL Input Analog Mode 2 Channel Quadrature Decoding Thermal Protection Lithium
STIM202 Evaluation Kit
Table of contents: 1 FEATURES... 2 2 GENERAL DESCRIPTIONS AND SYSTEM CONTENTS... 2 3 SYSTEM REQUIREMENTS... 2 4 GETTING STARTED... 3 4.1 INSTALLATION OF NI-SERIAL CABLE ASSEMBLY DRIVER... 3 4.2 INSTALLATION
LSN 2 Number Systems. ECT 224 Digital Computer Fundamentals. Department of Engineering Technology
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
UniPi technical documentation REV 1.1
technical documentation REV 1.1 Contents Overview... 2 Description... 3 GPIO port map... 4 Power Requirements... 5 Connecting Raspberry Pi to UniPi... 5 Building blocks... 5 Relays... 5 Digital Inputs...
FORDHAM UNIVERSITY CISC 3593. Dept. of Computer and Info. Science Spring, 2011. Lab 2. The Full-Adder
FORDHAM UNIVERSITY CISC 3593 Fordham College Lincoln Center Computer Organization Dept. of Computer and Info. Science Spring, 2011 Lab 2 The Full-Adder 1 Introduction In this lab, the student will construct
