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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

plc function ref - 34.15<br />

ADD, DIV, MUL, SUB, XPY - ADDition, DIVision, MULtiplication,<br />

SUBtraction, X to the Power of Y<br />

Description:<br />

Status Bits:<br />

A<br />

ADD<br />

ADD<br />

Source A N7:0<br />

Source B N7:1<br />

Dest N7:2<br />

These are binary math functions that will load two values from sources A<br />

<strong>and</strong> B, do the calculation indicated, <strong>and</strong> store the results in the destination.<br />

Functions possible include<br />

ADD - Add two numbers<br />

DIV - Divide source A by source B<br />

MUL - Multiply A <strong>and</strong> B<br />

SUB-SubtractBfromA<br />

XPY - Raise X to the power of Y<br />

C<br />

V<br />

Z<br />

S<br />

Registers: none<br />

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

Carry - sets if a carry is generated<br />

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

Zero-setsiftheresultiszero.<br />

Sign - sets if the result is negative

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

Saved successfully!

Ooh no, something went wrong!