Mitsubishi MELSEC-Q/L Programming Manual page 541

Table of Contents

Advertisement

Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
Error
code
The value specified in
4100
The value specified in
The specified device value is not within the following range:
-1022
4140
0, 2
| Specified device value | < 2
The value specified by
The operation result is within the following range (when an overflow
occurs):
4141
1024
2
| Operation result |
Program Example
(1) This following program obtains the value for common logarithm of the 64-bit floating-point data type real number
specified by D600 to D603 when M0 is turned on. Then the program stores the operation result into D123 to D126.
[Ladder Mode]
[Operation]
D603 D602
Log
2.806
10
7.12.27 RND, RNDP
Random number generation
SRND, SRNDP
Series updates
7.12.27
RND, RNDP, SRND, SRNDP
RND
RNDP
SRND
SRNDP
: Head number of the devices where random numbers will be stored (BIN 16 bits)
D
: Random number serial data or the first number of the devices where the random number serial data is stored (BIN 16 bits)
S
Setting
Internal Devices
Data
Bit
Word
D
S
Error details
is negative.
S
is 0.
S
1024
is -0.
S
[List Mode]
Step
D601 D600
D126 D125
Command
Command
Command
Command
J
\
R, ZR
Bit
RND, RNDP, SRND, SRNDP
Q00J/
Q00/
QnH
Q01
––
––
––
––
––
––
Instruction
Device
D124 D123
0.448088
Ver.
High
Basic
performance
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
RND
RNDP
SRND
SRNDP
U
\G
Word
QnPH QnPRH
QnU
LCPU
––
––
––
––
––
––
Process
LCPU
Redundant Universal
D
D
S
S
Constants
Zn
Other
K, H
––
––
––
1
2
3
4
4
6
7
8
539

Advertisement

Table of Contents
loading

Table of Contents