Any_To_Time - 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_TIME

Parameter
EN
i1
o1
ENO
290
ANY_TO_TIME converts a non-Time or non-Date value to a Time value.
Arguments
Parameter Type
Data Type
Input
BOOL
Input
BOOL - SINT - USINT - BYTE - INT -
UINT - WORD - DINT - UDINT -
DWORD - LINT - ULINT - LWORD -
REAL - LREAL - STRING
Output
TIME
Output
BOOL
ANY_TO_TIME operator ST language example
(* ST Equivalence: *)
ares := ANY_TO_TIME (1256);
rres := ANY_TO_TIME (1256.3);
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When Enable = TRUE, execute the conversion to the Time computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
Any positive value other than a Time or Date data type.
IN (or integer part of IN if it is real) is the number of milliseconds.
STRING (number of milliseconds, for example, a value of 300032
represents 5 minutes and 32 milliseconds).
Time value represented by IN. A value of 1193h2m47s295ms indicates an
invalid time.
Enable out.
Applies only to LD programs.
(* ares := t#1s256ms *)
(* rres := t#1s256ms *)

Advertisement

Table of Contents
loading

Table of Contents