Mitsubishi Electric MELSEC-Q/L Programming Manual page 194

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Operation error
• 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
Error details
code
4100
The specified device value is -0.
4140
The specified device value is not within the following range:
-126
 | Specified device value | < 2
0, 2
The specified device value is -0, unnormalized number, nonnumeric, and .
*2 There are CPU modules that will not result in an operation error if -0 is specified. For details, refer to Page 87 Using single/double-
precision real number data.
Program example
• The following program compares 32-bit floating decimal point real number data at D0 and D1 to 32-bit floating decimal point
real number data at D3 and D4.
[Ladder Mode]
• The following program compares the floating decimal point real number 1.23 to the 32-bit floating decimal point real number
data at D3 and D4.
[Ladder Mode]
• The following program compares 32-bit floating decimal point real number data at D0 and D1 to 32-bit floating decimal point
real number data at D3 and D4.
[Ladder Mode]
• The following program compares the 32-bit floating decimal point data at D0 and D1 to the floating decimal point real
number 1.23.
[Ladder Mode]
6 BASIC INSTRUCTIONS
192
6.1 Comparison Operation Instructions
*2
128
Q00J/
QnH
Q00/
Q01
*2
[List Mode]
Instruction
Step
[List Mode]
Instruction
Step
[List Mode]
Instruction
Step
[List Mode]
Instruction
Step
QnPH
QnPRH
QnU
*2
Device
Device
Device
Device
LCPU

Advertisement

Table of Contents
loading

Table of Contents