The text of a manual · part 24 of 29
1772 Mini PLC-2/05 Processor (Cat. No. 1772-LS, LSP) Programming and Operations Manual, pages 231 to 240
Pages 231 to 240 of 289
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1772-LSP
Page 231
Appendix
A
Number Systems
Objectives
This appendix describes the four numbering systems the Mini-PLC-2/05 processor uses: decimal octal binary hexadecimal These numbering systems differ by their number sets and place values.
Decimal Numbering System Timers, counters, and math operations word values use the decimal numbering system. This is a numbering system made up of ten digits: the numbers 0 through 9 (Table A.A). All decimal numbers are composed of these digits. The value of a decimal number depends on the digits used and the place value of each digit. Table A.A Numbering System Conversion Chart Hexadecimal
Binary
Decimal
Octal
0
0000
0
000
1
0001
1
001
2
0010
2
002
3
0011
3
003
4
0100
4
004
5
0101
5
005
6
0110
6
006
7
0111
7
007
8
1000
8
010
9
1001
9
011
A
1010
10
012
B
1011
11
013
C
1100
12
014
D
1101
13
015
E
1110
14
016
F
1111
15
017
A-1
Page 232
Appendix A Numbering Systems
Each place value in a decimal number represents a power of ten starting with ten raised to the zero power (100=1) (Figure A.1). You can compute the decimal value of a number by multiplying each digit by its corresponding place value and adding these numbers together. Figure A.1 Decimal Numbering System 2 x 102 = 20010 3 x 101 = 3010 9 x 100 = 910
2
3
9
200 30 9 23910
10
10238
Octal Numbering System Byte word values use the octal numbering system. This is a numbering system made up eight digits: the numbers 0 through 7 (Table A.A). All octal numbers are composed of these digits. The value of a octal number depends on the digits used and the place value of each digit. Each place value in an octal number represents a power of eight starting with eight raised to the zero power (80=1) (Figure A.2). You can compute the decimal value of an octal number by multiplying each octal digit by its corresponding place value and adding these numbers together. Figure A.2 Octal Numbering System 3 x 82 = 192 5 x 81 = 40 7 x 80 = 7
3
Binary Numbering System
A-2
5
7
192 40 7 23910
23910 = 3578 8
10239
Binary numbering is used in all digital systems to store and manipulate data. This is a numbering system made up of two numbers: 0 and 1 (Table A.A). All binary numbers are composed of these digits. Information in memory is stored as an arrangement of 1 and 0. The value of a binary number depends on the digits used and the place value of each digit.
Page 233
Appendix A Numbering Systems
Each place value in a binary number represents a power of two starting with two raised to the zero power (20=1) (Figure A.3). You can compute the decimal value of a binary number by multiplying each binary digit by its corresponding place value and adding these numbers together. Figure A.3 Binary Numbering System 1 x 27 = 128 1 x 26 = 64 1 x 25 = 32 0 x 24 = 0
128 64 32 8 4 2 1 23910
1 x 23 = 8 1 x 22 = 4 1 x 21 = 2 1 x 20 = 1
1
1
1
0
1
1
1
1
2
111011112 = 23910 1
Binary Coded Decimal Binary coded decimal (BCD) format expresses a decimal value as an arrangement of binary digits. Each group of 4 binary digits is used to represent a decimal number from 0 to 9. All BCD numbers are composed of these digits. The value of BCD number depends on the digits used and the place value of these digits. Each place value in a BCD number represents a power of two starting with two raised to the zero power (20=1) (Figure A.4).
A-3
Page 234
Appendix A Numbering Systems
Figure A.4 Binary Coded Decimal 0 x 23 = 0 0 x 22 = 0 1 x 21 = 2 0 x 20 = 0
2 0 x 23 = 0 0 x 22 = 0 1 x 21 = 2 1 x 20 = 1
3 1 x 23 = 8 0 x 22 = 0 0 x 21 = 0 1 x 20 = 1
910
0 0 1 0 0 0 1 1 1 0 0 1
2
3
10241
9
You can compute the decimal value of a binary number by multiplying each binary digit by its corresponding place value and adding these numbers together (Table A.B). Table A.B BCD Representation Decimal Equivalent
Place Value
A-4
23 (8)
22 (4)
21 (2)
20 (1)
0
0
0
0
0
0
0
0
1
1
0
0
1
0
2
0
0
1
1
3
0
1
0
0
4
0
1
0
1
5
0
1
1
0
6
0
1
1
1
7
1
0
0
0
8
1
0
0
1
9
Page 235
Appendix A Numbering Systems
Binary Coded Octal Binary coded octal (BCO) format expresses an octal value as an arrangement of binary digits (eight bits or one byte). The 8 bits are broken down into three groups: 2 bits, 3 bits and 3 bits. Each group of binary digits is used to represent a decimal number from 0 to 9. All BCO numbers are composed of these digits. Each place value in a BCD number represents a power of two 1 starting with two raised to the zero power (20 = 1) (Figure A.5). Figure A.5 Binary Coded Octal
21
20
22
21 20
22
21 20
1
1
1
0
1
1
3
5
1
1
78
10242
You can compute the octal number for each group of bits by multiplying the binary digit by its corresponding place value and adding these numbers together (Table A.C). Table A.C Octal Representation Place Value
Octal Equivalent
22 (4)
21 (2)
20 (1)
0
0
0
0
0
0
1
1
0
1
0
2
0
1
1
3
1
0
0
4
1
0
1
5
1
1
0
6
1
1
1
7
A-5
Page 236
Appendix A Numbering Systems
Hexadecimal Numbering System Get and put word values use the hexadecimal numbering system. This is a numbering system made up of 16 digits: the numbers 0–9 and the letters A–F (Table A.C). The letters A–F represent the decimal numbers 10–15, respectively. Four binary digits represent each hexadecimal character, you can convert between hexadecimal to a binary by writing out the patterns for each hexadecimal character or group of four binary digits (Figure A.6). Figure A.6 Hexadecimal to Decimal Conversion 0 x 163 = 0 1 x 162 = 256 10 x 161 = 160 7 x 160 = 7
0
1
A
256 160 7 42310 = 01A716
7 10243
Each place value in a hexadecimal character represents a power of 16 starting with 16 raised to the zero power (160=1) (Figure A.6). You can compute a decimal number for each group of hexadecimal characters by multiplying the decimal digit equivalent of each hexadecimal character by its corresponding place value and adding these numbers together.
A-6
Page 237
Appendix
B
Glossary
Introduction
You’ll find that each term in this glossary is concisely defined. These definitions will provide you with a basis for understanding Allen-Bradley PCs. In cases where a term may have more than one meaning, we give only those definitions directly related to our products. When reading this glossary, you’ll notice that common electrical terms and symbols are not defined. We assume you have a working knowledge of basic electricity. This appendix contains defines terms and abbreviations that because of their complexity or recent introduction are not widely understood. These terms are: AC Input Module An I/O module that converts various AC signals originating at user devices to the appropriate logic level signal for use within the processor. AC Output Module An I/O module that converts the logic level signal of the processor to a usable output signal to control a user AC device. Adapter Module A module that provides communication between an I/O chassis and the processor. It transmits I/O chassis input information to and receives output information from the processor. Address 1) An alphanumeric value that uniquely identifies where data is stored. 2) An alphanumeric value used to identify a specific I/O rack, module group, and terminal. Algorithm A set of procedures used for solving a problem in a finite number of steps. Analog An expression of values which can vary continuously between specified limits. Analog Input Module A module that converts an analog input signal to a number that can be manipulated by the processor.
B-1
Page 238
Appendix B Glossary
Analog Output Module A module that outputs a signal proportional to a number transferred to the module from the processor. Application 1) A machine or process monitored and controlled by a programmable controller. 2) The use of computer-based or processor-based routines for specific purposes. Arithmetic Capability The ability to do addition, subtraction, multiplication, division, and other advanced math functions with the programmable controller. ASCII American Standards Code for Information Interchange. It is a seven-bit code with an optional parity bit used to represent alphanumerics, punctuation marks, and control code characters. Asynchronous Scanning A scanning technique performed by the CPU where two scanners (I/O and user program) operate independently of each other. Backplane A printed circuit board, located in the back of a chassis, that contains a data bus, power bus, and connectors for modules to be inserted in the chassis. Backup A device or system that is kept available to replace something that may fail in operation. Also see Hot Backup. Battery Backup A battery or set of batteries that provide power to processor memory only in case of a system power outage. Battery Low A condition that exists when the backup battery voltage drops low enough to require battery replacement. Generally, an indicator or status bit signals this condition. Baud A unit of signaling speed equal to the number of discrete conditions or signal events per second. BCD See Binary Coded Decimal. Binary A numbering system using only the digits 0 and 1. Also called base 2. B-2
Page 239
Appendix B Glossary
Binary Coded Decimal (BCD) A numbering system used to express individual decimal digits (0 through 9) in four-bit binary notation. Binary Word A related group of ones and zeros that has meaning assigned by position, or by numerical value in the binary system of numbers. Bit Binary digit. The smallest unit of information in the binary numbering system. Represented by the digits 0 and 1. The smallest division of a programmable controller word. Bit Manipulation The process of controlling data table bits (on or off) through user instructions or keyboard entry. Bit Rate See Baud. Bit Storage A user-defined data table area in which bits can be set or reset without directly affecting or controlling output devices. However, any storage bit can be monitored as necessary in the user program. Block A group of words transmitted as a unit. Block Length The total number of words transferred at one time. Block Transfer A programming technique used to transfer up to 64 words of data to, or from, an intelligent I/O module. Branch A parallel logic path with a rung. Buffer 1) In software terms, a register or group or registers used for temporary storage of data, to compensate for transmission rate differences between the transmitter and receiving device. 2) In hardware terms, an isolating circuit used to avoid the reaction of one circuit with another. Build A programming concept that takes a user keyboard command (source code) and converts it into hexadecimal format to generate an object code for program execution. B-3
Page 240
Appendix B Glossary
Bus 1) One or more conductors considered as a single entity that interconnect various parts of a system. Example: a data bus or address bus. 2) An electrical channel used to send or receive data. Byte Equals eight consecutive bits. Cascading A programming technique that extends the ranges of timer and/or counter instructions beyond the maximum values that may be accumulated in a single instruction. Central Processing Unit (CPU) The circuits in a programmable controller that control the interpretation and execution of the user program stored in programmable controller memory. Character One symbol of a set of symbols which normally include alpha codes, numeric codes, punctuation marks, and other symbols which may be read, stored, or written. Chassis A hardware assembly used to house devices such as I/O modules, adapter modules, processor modules, and power supplies. Checksum A character placed at the end of a data block which corresponds to the binary sum of all characters in that block. A technique used for error detection. Clear To return memory to a non-programmed state; erased. Clock 1) A pulse generator which synchronizes the timing of various logic circuits. 2) Circuitry used to measure time. CMOS Complementary Metal Oxide Semiconductor circuitry. See MOS. Command A function initiated by a user action Communication Rate See Baud. Contact Histogram A feature which allows a display (or printout) of the on and off times for any selected data table bit. B-4