Any_To_Byte - Allen-Bradley Micro800 General Instructions Manual

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

Advertisement

ANY_TO_BYTE

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

Advertisement

Table of Contents
loading

Table of Contents