03.01.2013 Views

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7. Instructions<br />

FUN 164 AVE Average value<br />

Expression<br />

Input −[ A AVE (n) B ]− Output<br />

228 <strong>T1</strong>-<strong>16S</strong> User’s <strong>Manual</strong><br />

6F3B0253<br />

Function<br />

When the input is ON, this instruction calculates the average value of the data stored in the n<br />

registers starting with A, and stores the average value in B. The allowable range of the table size n<br />

is 1 to 64.<br />

Execution condition<br />

Input Operation Output<br />

OFF No execution OFF<br />

ON Execution ON<br />

Operand<br />

Name Device Register Constant Index<br />

X Y R S T. C. XWYWRWSW T C D I J K<br />

A Start of table √ √ √ √ √ √ √<br />

n Table size 1 - 64<br />

B Result √ √ √ √ √ √ √ √ √<br />

Example<br />

When R012 is ON, the average value of the data stored in the register table D0200 to D0209<br />

(10 words), and the average value is stored in D0520.<br />

D0200 100<br />

D0201 10000<br />

D0202 -1000<br />

D0203 10<br />

D0204 0 D0520 2900 (Average value)<br />

D0205 200<br />

D0206 -300<br />

D0207 20000<br />

D0208 -30<br />

D0209 20<br />

<strong>CTi</strong> <strong>Automation</strong> - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!