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

FRD, TOD, DEG, RAD - FRom bcD to integer, TO bcD from integer,<br />

DEGrees from radians, RADians from degrees<br />

Description:<br />

Status Bits:<br />

A<br />

FRD<br />

FROM BCD<br />

Source N7:0<br />

Dest<br />

N7:1<br />

This function will convert the value in the source location <strong>and</strong> store the<br />

result in the Dest location. The functions possible include,<br />

FRD - From BCD to a 2s compliment integer number<br />

TOD - From 2s compliment integer number to BCD<br />

DEG - Convert from radians to degrees<br />

RAD - Convert from degrees to radians<br />

C<br />

V<br />

Z<br />

S<br />

Carry - always 0<br />

Overflow - sets if an overflow as generated during conversion<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!