EasyManua.ls Logo

Allen-Bradley Micro800 - Any_To_Lreal

Allen-Bradley Micro800
652 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...
Data conversion instructions Chapter 12
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 285
ANY_TO_LREAL converts any value to a Long Real value.
Arguments
Parameter Parameter Type Data Type Description
EN Input BOOL Function enable.
When Enable = TRUE, execute the conversion to the long Real computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
i1 Input BOOL - SINT - USINT - BYTE - INT
- UINT - WORD - DINT - UDINT -
DWORD - LINT - ULINT - LWORD
- REAL - TIME - DATE - STRING
Any value other than a long Real.
o1 Output LREAL A long real value.
ENO Output BOOL Enable out.
Applies only to LD programs.
ANY_TO_LREAL operator ST language example
(* ST Equivalence: *)
bres := ANY_TO_LREAL (true);
(* bres is 1.0 *)
tres := ANY_TO_LREAL (t#1s46ms);
(* tres is 1046.0 *)
ares := ANY_TO_LREAL (198);
(* ares is 198.0 *)
ANY_TO_LREAL

Table of Contents

Other manuals for Allen-Bradley Micro800

Related product manuals