Toshiba PROSEC T1 User Manual page 248

Programmable controller
Hide thumbs Also See for PROSEC T1:
Table of Contents

Advertisement

7. Instructions
FUN 164
Expression
Input -[ A AVE ( n ) B ]- Output
Function
When the input is ON, this instruction calculates the average value of the data stored in the n registers
starting with A , and stores the average value in B . The allowable range of the table size n is 1 to 64.
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
A Start of table
n Table size
B Result
Example
When R012 is ON, the average value of the data stored in the register table D0200 to D0209 (10
words), and the average value is stored in D0520.
D0200
100
D0201
10000
D0202
-1000
D0203
10
D0204
D0205
200
D0206
-300
D0207
20000
D0208
-30
D0209
20
246
T1/T1S User's Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
AVE
Average value
Operation
Device
X
Y
R
S
T.
C. XW YW RW SW T
0
Output
OFF
ON
Register
C
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
D0520
2900
6F3B0250
T1S only
Constant Index
D
I
J
K
Ö
1 - 64
Ö
Ö
Ö
Ö
(Average value)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents