Mitsubishi Electric MELSEC-Q/L Programming Manual page 621

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

Advertisement

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]
Step
Instruction
[Operations involved when X20 to X2F designate a value of 120]
Conversion
X2F
X20
b15
to BIN
0
1 2 0
120
BCD value
BIN
BIN value
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 (
Device
D0
Conversion to
D11
b0
floating-point
FLT
)
1
)
2
)
3
D10
1 2 0
RAD
D21
D20
2 . 0 9 4 3 9 5
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
7
619

Advertisement

Table of Contents
loading

Table of Contents