Any_To_String - Allen-Bradley Micro800 General Instructions Manual

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

Advertisement

ANY_TO_STRING

Parameter
EN
i1
o1
ENO
ANY_TO_STRING converts a value to a String value.
Arguments
Parameter Type
Data Type
Input
BOOL
Input
BOOL - SINT - USINT - BYTE - INT -
UINT - WORD - DINT - UDINT - DWORD
- LINT - ULINT - LWORD - REAL - LREAL
- TIME - DATE
Output
STRING
Output
BOOL
ANY_TO_STRING operator ST language example
(* ST Equivalence: *)
bres := ANY_TO_STRING (TRUE);
ares := ANY_TO_STRING (125);
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Data conversion instructions
Description
C Function enable.
When Enable = TRUE, execute the conversion to String computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
Any value other than 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' *).
Enable out.
Applies only to LD programs.
(* bres is 'TRUE' *)
(* ares is '125' *)
Chapter 12
289

Advertisement

Table of Contents
loading

Table of Contents