Any_To_Bool - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

Chapter 12
Data conversion instructions

ANY_TO_BOOL

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

Advertisement

Table of Contents
loading

Table of Contents