Mitsubishi MELSEC Q Series Programming Manual page 651

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Program Example
(1) 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]
1
Conversion
X2F
X20
to BIN
0
1 2 0
BCD value
BIN
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
2
Conversion to
D13 D12
b15
b0
floating-point
120
BIN value
FLTD
).
1
).
2
).
3
Conversion
3
D11
D10
D23 D22
to radian
120
RADD
RADD(P)
1
2
3
4
6
6
7
8
D21
D20
2.094395···
7-277

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents