SIN_LREAL (sine Long Real)

The SIN_LREAL instruction calculates the sine of a Long Real value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
SIN_LREAL
SIN_LREAL
SIN_LREAL parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
When set to true, the instruction is enabled.
  • TRUE: Execute the current computation.
  • FALSE: There is no computation.
Applies to ladder diagram programs.
IN
Input
LREAL
Any Long Real value.
SIN_LREAL
Output
LREAL
Sine of the input value (in set [-1.0 .. +1.0]).
ENO
Output
BOOL
Enables output. Applies to ladder diagram programs.

SIN_LREAL examples

SIN_LREAL function block diagram example
SIN_LREAL function block diagram example
SIN_LREAL ladder diagram example
SIN_LREAL ladder diagram example
SIN_LREAL structured text example
SIN_LREAL structured text example
(* ST Equivalence: *) TESTOUTPUT1 := SIN_LREAL(TESTINPUT1) ;
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal