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
Process Control Instructions
Chapter 16
16-43
Rung 1 The EAF rung calculates an average upon a false-to-true
transition of bit 15000. This bit must remain energized until
the done bit (bit 16115 in this example) is energized.
Word 0030 the number of samples you want to average.
Word 0031 the number of samples to sum per scan
(from 1 to the total number of samples).
The Data Address of the EAF (040) is reserved for the preset
position. Each value to be averaged requires four
consecutive data table words, beginning at word 041 in this
example. The result address stores intermediate calculations
in the first word (160) and the final result in words 161-163.
Rung 2 This rung is conditioned with a branch end to keep the
File-to-File Move from becoming true. The data values to be
averaged are in addresses 0041-0064. Each value uses 4
words (the format is xxx xxx . xxx xxx). The first word
(0040) is reserved for present position value. (Optional
display rung)
Rung 3 This rung displays the result of the EAF instruction. Word
0160 is an intermediate summation. You do not have to
put this word in the rung. There is an implied decimal
point between words 162 and 163. (Optional display rung)
If you want average a new set of values, you must do the following:
1. Zero the data in the data address or present position word (040 in
this example).
2. Initiate a false to true transition of bit 15000.