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.20<br />

34.1.6 Logical<br />

AND, OR, XOR - AND, OR, eXclusive OR<br />

Description:<br />

Status Bits:<br />

A<br />

AND<br />

BITWISE AND<br />

Source A N7:0<br />

Source B N7:1<br />

Dest N7:2<br />

These functions do basic boolean operations to the numbers in locations<br />

A <strong>and</strong> B. The results of the operation are stored in Dest. These calculations<br />

will be perform whenever the input is true. The functions are,<br />

AND - Bitwise <strong>and</strong><br />

OR - Bitwise or<br />

XOR - Bitwise exclusive or<br />

C<br />

V<br />

Z<br />

S<br />

Registers: none<br />

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

Carry - always 0<br />

Overflow - always 0<br />

Zero-setsiftheresultiszero.<br />

Sign - sets if the MSB of the result is set<br />

NOT - NOT<br />

Description:<br />

A<br />

NOT<br />

NOT<br />

Source N7:0<br />

Dest<br />

N7:1<br />

This function will invert all of the bits in a word in memory whenever the<br />

input is true.<br />

Status Bits:<br />

C<br />

V<br />

Z<br />

S<br />

Carry - always 0<br />

Overflow - always 0<br />

Zero-setsiftheresultiszero.<br />

Sign - sets if the MSB of the result is set<br />

Registers: none<br />

Available on: Micrologix, PLC-5

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

Saved successfully!

Ooh no, something went wrong!