Rand - Allen-Bradley Micro800 General Instructions Manual

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

Advertisement

RAND

Parameter
EN
base
RAND
ENO
From a defined range, RAND yields random integer values.
Arguments
Data Type
Parameter
Type
Input
BOOL
Input
DINT
Output
DINT
Output
BOOL
RAND function language examples
Function block diagram
Ladder diagram
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
Description
Function enable.
When EN = TRUE, execute the random integer value computation
When EN = FALSE, there is no computation.
Defines the supported set of numbers.
Random value in set [0..base-1].
Enable out.
Chapter 5
Arithmetic instructions
93

Advertisement

Table of Contents
loading

Table of Contents