EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 621

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
619
7
Program example
The following program converts the angle set by the 4 BCD digits at X20 to X2F to radians, and stores results as 32-bit
floating decimal point type real number at D20 and D21.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2F designate a value of 120]
Inputs an angle to be converted
into a radian value ( )
Converts the input a 32-bit
floating-point real number ( )
Converts the converted angle into
a radian value ( )
1
2
3
Step Instruction Device
X2F
BCD value
0
D0
120
X20
Conversion
to BIN
BIN
b15
b0
BIN value
120
Conversion to
floating-point
FLT
Conversion
to radian
D11 D10
RAD
D21
D20
120 2
.
0 94395

Table of Contents

Related product manuals