from 0 to 15.
14. Write the corresponding binary numbers of the hexadecimal numbers from 0 to F.
15. Convert the hexadecimal number 67E16 to its equivalent decimal number.
16. Describe the generic procedure of converting a number from one number system to another number system.
17. Describe the technique of converting a decimal number to its equivalent in other number systems.
18. Convert decimal 532 to its binary equivalent.
19. Convert decimal 90 to its binary equivalent.
20. Describe how to convert a decimal number to its octal equivalent.
21. Convert decimal 357 to its octal equivalent.
22. Convert decimal 4367 to its octal equivalent.
23. Describe how to convert a decimal number to its hexadecimal equivalent.
24. Convert decimal 965 to its hexadecimal equivalent.
25. Describe how to convert a binary number to its decimal equivalent.
26. Convert 1101012 to its decimal equivalent.
27. Describe how to convert an octal number to its decimal equivalent.
28. Convert 6748 to its decimal equivalent.
29. Describe how to convert a hexadecimal number to its decimal equivalent.
30. Convert EC5816 to its decimal equivalent.
31. Describe how to convert a binary number to its octal equivalent.
32. Convert 101110012 to its octal equivalent.
33. Describe how to convert an octal number to its binary equivalent.
34. Convert 76428 to its binary equivalent.
35. Describe how to convert a binary number to its hexadecimal equivalent.
36. Convert 11000111012 to its hexadecimal equivalent.
37. Describe how to convert a hexadecimal number to its binary equivalent.
38. Convert CD5316 to its binary equivalent.
39. What is binary encoding?
40. Describe the ASCII code.
41. What is extended ASCII?
42. What is binary coded decimal (BCD)?
43. Derive the BCD equivalent for a decimal number 7654.
44. What is the Gray code?
45. What is a word?
46. Describe the least significant bit and the most significant bit.
47. How many decimals can a two-byte word hold?
48. Describe the difference between signed numbers and unsigned numbers.
49. What are the two methods of expressing negative numbers?
50. Explain the one’s complement method of inverting a positive number to a negative number.
51. Use one’s complement method to express the negative number of 98.
52. Explain the two’s complement method of inverting a positive number to a negative number.
53. Find the two’s complement of +5010.
54. What is a floating-point number?
55. Explain how to use scientific notation to express very large or very small numbers.
Logic Basics and Boolean Algebra
Objectives: Explain the concept of binary operations.
Identify binary elements.
List the three basic logic functions: AND, OR, NOT.
List the mathematical expressions for logic circuits.
Use Boolean algebra to express logic circuits.
Describe the order of Boolean algebra operations.
Convert logic gates to Boolean equations.
Convert Boolean equations to ladder logic diagrams.
Explain the procedure for converting Boolean equations to ladder logic diagrams.
Convert AND, OR, and NOT logic functions to contact instructions.
Describe the characteristics of a state table.
Explain the procedure for constructing a state table from Boolean equations.
Construct a state table from Boolean equations.
Overview
Binary concepts and three basic logic functions are the fundamentals of good logic design. The states of an element are represented in binary because an element exists in only two states. A switch that can be toggled to ON or OFF is an example of binary element. The three basic logic functions are AND, OR, and NOT. There are three commonly used methods for expressing logic circuits: Boolean algebraic expressions, logic gates, and ladder diagrams. This chapter covers essential concepts of binary operations, basic logic functions, Boolean algebraic equations, logic gates, and ladder diagrams. Also, all three forms of logic conversions are explained in detail. The chapter concludes with the construction of state tables that are often used to verify the control logic.
4.1 Binary Operations
Binary operations are those elements that can exist in only one of two predetermined states. This is also known as the binary principle. Two examples of binary devices are a motor, which can have a running or stopped state, and a light switch, which can be in the open or closed state. Because there are only two possible outcomes, this two-state binary concept can be used for making decisions.
Binary symbols are used to translate this two-state logic concept into mathematical expressions. A binary zero (0) is used to represent the absence of a signal or the non-occurrence of an event, such as the de-energized motor or the non-actuated switch. A binary one (1) is used to represent the presence of a signal or the occurrence of an event, such as the energized motor or the activated switch. We would use a “0” to represent an open contact and a “1” to represent a closed contact.
4.1.1Positive Logic Elements
Input switches or contacts can be configured or wired in two types: normally