User Manual Owner's manual
Table Of Contents
- 1772-6.5.8, Mini-PLC-2/02, -2/16, -2/17 Processor, User Manual
- Important User Information
- Summary of Changes
- Table of Contents
- 1 - Using This Manual
- 2 - Fundamentals of a Programmable Controller
- 3 - Hardware Features
- 4 - Installing Your Programmable Controller
- 5 - Starting Your Processor
- 6 - Maintaining and Troubleshooting Your Processor
- 7 - Memory Organization
- 8 - Scan Theory
- 9 - Relay-Like Instructions
- 10 - Program Control Instructions
- 11 - Timers and Counters
- 12 - Data Manipulation and Compare Instructions
- 13 - Three-Digit Math Instructions
- 14 - EAF Math Instructions
- 15 - EAF Log, Trig, and FIFO Instructions
- 16 - EAF Process Control Instructions
- 17 - Jump Instructions and Subroutines
- 18 - Block Transfer
- 19 - Data Transfer Instructions
- 20 - Bit Shift Registers
- 21 - Sequencers
- 22 - Selectable Timer Interrupts
- 23 - Report Generation
- 24 - Program Editing
- 25 - Programming Techniques
- 26 - Program Troubleshooting
- A - Specifications
- B - Processor Comparison Chart
- C - Number Systems
- D - Glossary
- E - Quick Reference
- Index
- Back Cover

EAF Math Instructions
Chapter 14
14-20
Enter the BCD number. Entry of the BCD number 004 095 produces the
hexadecimal number FFF. If the Operand is greater than +32 767, the
result 7FFFh is stored in the data table. However, you will see only FFF
below the instruction. You must use a SEARCH 53 to see the entire word.
If the Operand is more negative than –32 767, 8001 is displayed at the
result address. All negative values are stored as two’s complement.
Figure 14.22 shows how the result is stored in the data table.
Figure 14.22
EAF
BCD to Binary Conversion Format in the Data T
able After Execution
17 16 15 14 10 7 4 3
Data
Address
0
Result
Address
10359-I
13
040
041
060
04
F
0
509
X00 0 F F
Operand A
Result
Bit 16 of the first data address word is the sign bit of the BCD number. Bit
17 of the result address is the sign bit of the binary number. Bits 14-16 of
the Result Address word are used if the operand is greater than 4095.
The BCD to Binary EAF function converts a Binary number into a BCD
number. Its function number is 14 and the conversion takes the form:
x xxx = 0yy yyy
Enter an EAF rung like that in Figure 14.23
Figure 14.23
EAF
Binary to BCD Conversion Function Input and Display Rung
060
EXECUTE AUX
FUNCTION
FUNCTION NUMBER:
DATA ADDR:
RESULT ADDR:
14
040
060
G
040
G
FFF
004
061
G
095
Binary to BCD