Ladder Logic Trigonometric Functions

KronoTech

PLC

Ladder Logic

Basic

Counters

Timer

Arithmetic

Comparison

Functions

Trig Functions

Cosine

Arc Cosine

Sine

Arc Sine

Tangent

Arc Tangent

Log

Natural Log

RSLogix 5000

Structured Text

HMI

Instruments

Introduction

The next step in math instruction is Trigonometric functions. These functions are very useful when trig functionality is need. These functions are more advanced than math instruction.

Definition

The following is a list of the Trigonometric Functions in SLC 500:

ASN - Arc Sine

Symbol

Arc Sine instruction

Definition

Takes the arc sine of a number and stores the result (in radians) in the destination

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow or an unsupported input is detected
  • Zero (Z), Sets if the result is Zero; otherwise resets;
  • Sign (S), Sets if result is negative; otherwise resets;

ACS - Arc Cosine

Symbol

Arc Cosine instruction

Definition

Takes the arc cosine of a number and stores the result (in radians) in the destination

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow or an unsupported input is detected
  • Zero (Z), Sets if the result is Zero; otherwise resets;
  • Sign (S), Always resets

ATN - Arc Tangent

Symbol

Arc Tangent instruction

Definition

Takes the arc tangent of a number and stores the result (in radians) in the destination

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow; otherwise resets
  • Zero (Z), Sets if overflow or an unsupported input is detected
  • Sign (S), Sets if result is negative; otherwise resets;

COS - Cosine

Symbol

Cosine instruction

Definition

Takes the cosine of a number and stores the result in the destination.

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow; otherwise resets
  • Zero (Z), Sets if overflow or an unsupported input is detected
  • Sign (S), Sets if result is negative; otherwise resets;

LN - Natural Log

Symbol

Natural Log instruction

Definition

Takes the natural log of value in the source and stores it in the destination

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow; otherwise resets
  • Zero (Z), Sets if overflow or an unsupported input is detected
  • Sign (S), Sets if result is negative; otherwise resets;

LOG - Log to the Base 10

Symbol

Log to the base 10 instruction

Definition

Takes the log base 10 of the value in the source and stores the result in the destination

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow; otherwise resets
  • Zero (Z), Sets if overflow or an unsupported input is detected
  • Sign (S), Sets if result is negative; otherwise resets;

SIN - Sine

Symbol

Sine instruction

Definition

Takes the sine of a number and stores the result in the destination.

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow; otherwise resets
  • Zero (Z), Sets if overflow or an unsupported input is detected
  • Sign (S), Sets if result is negative; otherwise resets;

TAN - Tangent

Symbol

Tangent instruction

Definition

Takes the tangent of a number and stores the result in the destination

  • Carry (C), Always resets
  • Overflow (V), Sets if overflow; otherwise resets
  • Zero (Z), Sets if overflow or an unsupported input is detected
  • Sign (S), Sets if result is negative; otherwise resets;

Quick Links

PLC Languages

Ladder Logic
Function Block
Structure Text
SFC
Mnemonic

Ladder Logic

Basic
Counters
Timer
Arithmetic
Comparison
Functions
Trig Functions

Instruments

Switches

HMI

Advantages
Alarms
Trends

Other

Bottle Application