Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
6-7
E=,E<>,E>,E<=,E<,E>=
1
2
3
4
4
6
7
8
6.1 Comparison Operation Instructions
6.1.3 Floating decimal point data comparisons (Single precision) (E=,E<>,E>,E<=,E<,E>=)
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.
The value of the specified device is 0.
*1
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant
CPU) (Error code: 4100)
*1: There are CPU modules that will not result in an operation error if 0 is specified. For details, refer to
Section 3.2.4.
The value of the specified device is outside the following range. (For the Universal model
QCPU)
0, 2
-126
| value of specified device | < 2
128
(Error code: 4140)
The value of the specified device is 0, unnormalized number, nonnumeric, and ± .
(For the Universal model QCPU only) (Error code: 4140)
Program Example
(1) 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] [List Mode]
(2) 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] [List Mode]
(3) 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] [List Mode]
(4) 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] [List Mode]
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device