Mitsubishi Electric MELSEC-Q/L Programming Manual page 623

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 64-bit
floating decimal point type real number at D20 to D23.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operations involved when X20 to X2F designate a value of 120]
Conversion
1
X2F
X20
b15
to BIN
0
1 2 0
BCD value
BIN
BIN value
Inputs an angle to be converted into a
radian value (
Converts the input angle into a 64-bit
floating-point real number (
Converts the converted angle into a
radian value (
Device
D0
Conversion to
2
D13 D12
b0
floating-point
120
FLTD
).
1
).
2
).
3
Conversion
3
D11
D10
D23 D22
to radian
120
RADD
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
D21
D20
2.094395···
7
621

Advertisement

Table of Contents
loading

Table of Contents