EasyManua.ls Logo

Allen-Bradley Micro800

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...
Chapter 12 Data conversion instructions
278 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
ANY_TO_BOOL converts a value to a Boolean value.
Arguments
Parameter
Parameter
Type
Data Type Description
EN Input BOOL Function enable.
When Enable = TRUE, execute the conversion to BOOLEAN
computation.
When Enable = FALSE, there is no computation.
i1 Input SINT - USINT - BYTE - INT - UINT - WORD -
DINT - UDINT - DWORD - LINT - ULINT -
LWORD - REAL - LREAL - TIME - DATE -
STRING
Any non-Boolean value.
o1 Output BOOL Boolean value.
ANY_TO_BOOL operator ST language example
(* ST Equivalence: *)
ares := ANY_TO_BOOL (10);
(* ares is TRUE *)
tres := ANY_TO_BOOL (t#0s);
(* tres is FALSE *)
mres := ANY_TO_BOOL ('FALSE');
(* mres is FALSE *)
ANY_TO_BOOL

Table of Contents

Other manuals for Allen-Bradley Micro800

Related product manuals