Any_To_Real - Allen-Bradley Micro800 General Instructions Manual

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

Advertisement

ANY_TO_REAL

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

Advertisement

Table of Contents
loading

Table of Contents