EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instruction Descriptions
2-174
NJ-series Instructions Reference Manual (W502)
SIN, COS, and TAN
These instructions perform trigonometric calculations on real numbers.
*1 If you omit an input parameter, the default value is not applied. A building error will occur.
*2 The valid range is 1.000000e+0 to 1.000000e+0 for REAL data. The valid range is
1.00000000000000e+0 to 1.00000000000000e+0 for LREAL data.
SIN: Finds the sine of a number.
COS: Finds the cosine of a number.
TAN: Finds the tangent of a number.
Instruction Name FB/FUN Graphic expression ST expression
SIN Sine in Radians FUN Out:=SIN(In);
COS Cosine in Radians FUN Out:=COS(In);
TAN Tangent in Radians FUN Out:=TAN(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Number to
process
Input Number to process Depends on data type. Radians
*1
Out Calculation
result
Output Calculation result
SIN
*2
COS
*2
TA N
Depends on data
type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK OK
Out OK OK
(@)SIN
EN ENO
In Out
(@)COS
EN ENO
In Out
(@)TAN
EN ENO
In Out

Table of Contents

Related product manuals