Any_To_Lword - 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_LWORD

Parameter
EN
i1
o1
ENO
286
ANY_TO_LWORD converts a value to a 64-bit Long Word value.
Arguments
Parameter Type Data Type
Input
BOOL
Input
BOOL - SINT - USINT - BYTE - INT -
UINT - WORD - DINT - UDINT - DWORD
- LINT - ULINT - REAL - LREAL - TIME -
DATE - STRING
Output
LWORD
Output
BOOL
ANY_TO_LWORD operator ST language example
(* ST Equivalence: *)
bres := ANY_TO_LWORD (true);
tres := ANY_TO_LWORD (t#0s46ms);
mres := ANY_TO_LWORD ('0198');
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When Enable = TRUE, execute the conversion to the 64-bit long Word
computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
Any value other than a long Word.
A 64-bit long Word value.
Enable out.
Applies only to LD programs.
(* bres is 1 *)
(* tres is 46 *)
(* mres is 198 *)

Advertisement

Table of Contents
loading

Table of Contents