12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

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.

plc function ref - 34.16<br />

AVE, STD - AVErage, ST<strong>and</strong>ard Deviation<br />

Description:<br />

A<br />

AVE<br />

AVERAGE FILE<br />

File<br />

#N7:0<br />

Dest<br />

N7:10<br />

<strong>Control</strong> R6:0<br />

Length 10<br />

Postion 0<br />

These functions do the basic statistical calculations, average (AVE) <strong>and</strong><br />

st<strong>and</strong>ard deviation (STD). When the input goes from false to true the<br />

calculation is begun. The values to be used for the calculation are<br />

taken from the memory starting at the start of the file location, for the<br />

length indicated. The final result is stored in the Dest. The control file<br />

is used for the calculation to keep track of position, <strong>and</strong> indicate when<br />

the calculation is done (it may take more than one PLC scan).<br />

Status Bits:<br />

C<br />

V<br />

Z<br />

S<br />

EN<br />

DN<br />

ER<br />

Carry - always 0<br />

Overflow - only set if value exceeds maximum for number type<br />

Zero - sets if the result is zero.<br />

Sign - sets if the result is negative<br />

Enable - on when the instruction input is on<br />

Done - set when the calculation is complete<br />

Error - set if an error was encountered during calculation<br />

Registers: none<br />

Available on: Micrologix, PLC-5<br />

www.PA<strong>Control</strong>.com

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

Saved successfully!

Ooh no, something went wrong!