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...
Data conversion instructions Chapter 12
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 289
ANY_TO_STRING converts a value to a String value.
Arguments
Parameter Parameter Type Data Type Description
EN Input BOOL C Function enable.
When Enable = TRUE, execute the conversion to String 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 - LREAL
- TIME - DATE
Any value other than String.
o1 Output STRING If IN is a Boolean, 'FALSE' or 'TRUE'.
If IN is an Integer or a real, a decimal representation.
If IN is a TIME, can be:
TIME time1
STRING s1
time1 :=13 ms;
s1:=ANY_TO_STRING(time1);
(* s1 = '0s13' *).
ENO Output BOOL Enable out.
Applies only to LD programs.
ANY_TO_STRING operator ST language example
(* ST Equivalence: *)
bres := ANY_TO_STRING (TRUE);
(* bres is 'TRUE' *)
ares := ANY_TO_STRING (125);
(* ares is '125' *)
ANY_TO_STRING

Table of Contents

Other manuals for Allen-Bradley Micro800

Related product manuals