Any_To_Date - 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_DATE

Parameter
EN
i1
o1
ENO
280
ANY_TO_DATE converts a value to a Date 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 - STRING
Output
DATE
Output
BOOL
ANY_TO_DATE operator ST language example
(* ST Equivalence: *)
ares := ANY_TO_DATE (1109110199);
rres := ANY_TO_DATE (1109110199.3);
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When Enable = TRUE, execute the conversion to the Date computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
Any value other than Date.
Date represented by IN. A value of -1 indicates an invalid date.
Enable out.
Applies only to LD programs.
(* ares := d#2005-02-22 *)
(*rres := d#2005-02-22 *)

Advertisement

Table of Contents
loading

Table of Contents