Sine (Sin); Relay Ladder; Structured Text; Function Block - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 14
Trigonometric Instructions (SIN, COS, TAN, ASN, ASIN, ACS, ACOS, ATN, ATAN)

Sine (SIN)

dest := SIN(source);
Input Parameter
Data Type
EnableIn
BOOL
Source
REAL
Output Parameter
Data Type
EnableOut
BOOL
Dest
REAL
Description:
Arithmetic Status Flags:
532
The SIN instruction takes the sine of the Source value (in radians) and stores the
result in the Destination.
Operands:

Relay Ladder

Operand
Source
Destination

Structured Text

Use SIN as a function. This function computes the sine of source and stores the
result in dest.
See
Structured Text Programming
within structured text.

Function Block

Operand
SIN tag

FBD_MATH_ADVANCED Structure

Description
Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
Input to the math instruction.
Valid = any float
Description
The instruction produced a valid result.
Result of the math instruction. Arithmetic status flags are set for this output.
The Source must be greater than or equal to -205887.4 (-2πx2
equal to 205887.4 (2πx2
greater than or equal to -1 and less than or equal to 1.
Arithmetic status flags are affected.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
SINT
Immediate
INT
Tag
DINT
REAL
SINT
Tag
INT
DINT
REAL
for information on the syntax of expressions
Type
FBD_MATH_ADVANCED
15
). The resulting value in the Destination is always
Description
Find the sine of this value
Tag to store the result
Format
Description
Structure
SIN structure
15
) and less than or

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents