Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-290
SQRD(P)
Program Example
(1) The following program seeks the square root of the value set by the 4 BCD digits from X20
to X2F, and stores the result as a 64-bit floating decimal point type real number at D0 to D3.
[Ladder Mode]
[List Mode]
[Operations involved when value designated by X20 to X2F is 650]
Inputs data used for square root
operation ( ).
Converts the input data into a 64-bit
floating-point real number ( ).
Executes square root operation ( ).
1
2
3
Step Instruction Device
X2F
BCD value
0
D20
650
X20
Conversion
to BIN
BIN
b15 b0
BIN value
650
Conversion to
floating-point
FLTD
SQR operation
SQRD
D11
650
D10D13 D12
D1
25.4951
D0D3 D2
1
2
3