848
7 APPLICATION INSTRUCTIONS
7.10 Random Number Instructions
Changing random sequence
SRND(P)
These instructions change the random number sequence according to the content of the 16-bit binary data stored in the
specified device.
■Execution condition
■Description, range, data type
■Applicable devices
These instructions change the random number sequence according to the content of the 16-bit binary data stored in the
device specified by (s). The SRND(P) instruction can change the random number calculation pattern.
There is no operation error.
Ladder ST
ENO:=SRND(EN,s);
ENO:=SRNDP(EN,s);
FBD/LD
Instruction Execution condition
SRND
SRNDP
Operand Description Range Data type Data type (label)
(s) Random number sequence data -32768 to 32767 16-bit signed binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)