Introduction

Add to My manuals
704 Pages

advertisement

Introduction | Manualzz

Chapter

16

Math Conversion Instructions

(DEG, RAD, TOD, FRD, TRN, TRUNC)

Introduction

If You Want To

Convert radians to degrees.

Convert degrees to radians.

Convert an integer value to a BCD value.

Convert a BCD value to an integer value.

Remove the fractional part of a value

The math conversion instructions convert values.

Use This Instruction

DEG

RAD

TOD

FRD

TRN

TRUNC

(1)

Available In These Languages

relay ladder structured text function block relay ladder structured text function block relay ladder function block relay ladder function block relay ladder structured text function block

See Page

550

553

556

559

561

(1)

Structured text only.

You can mix data types, but loss of accuracy and rounding error might occur and the instruction takes more time to execute. Check the S:V bit to see whether the result was truncated.

For relay ladder instructions, bold data types indicate optimal data types. An instruction executes faster and requires less memory if all the operands of the instruction use the same optimal data type, typically DINT or REAL.

549 Publication 1756-RM003K-EN-P - July 2008

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

549

advertisement

Related manuals

advertisement

Table of contents