7.12 Special Function Instructions
7.12.23 Random number generation and series update
7-277
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
RND
, SRND
RND, SRND
7.12.23
Random number generation and series update
RND, SRND
Function
The random number generation instruction generates random numbers conforming to a certain
calculation formula. In the calculation using the formula, the result of previous calculation is used
as a coefficient.
The random series update instruction can change the random number generation pattern.
RND(P)
SRND(P)
P: Executing condition
:
indicates any of the following
instructions.
RND
RNDP
SRND
SRNDP
Input argument,
EN:
Executing condition
:Bit
s:
Random number series data, or start number of the device
that stores random number series data (When using the SRND
instruction)
:ANY16
Output argument,
ENO:
Execution result
:Bit
d:
Start number of the device that stores random numbers
(When using the RND instruction)
:ANY16
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
RN
D
EN
ENO
d
RN
D
(EN, d);
ENO:=
Structured ladder
ST
SRN
D
EN
ENO
S
SRN
D
(EN,
s
);
ENO:=
s
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......