Mitsubishi MELSEC Q Series Programming Manual page 655

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

Advertisement

Program Example
(1) The following program converts the radian value set with 64-bit floating decimal point type
real number at D20 to D23 to angles, and stores the result as a BCD value at Y40 to Y4F.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operations involved when the values at D20 to D23 are 1.435792]
D23 D22
D21
D20
1.435792
64-bit floating-point
real number
Device
1
Conversion
D13 D12
D11
to angle
82.26482
DEGD
64-bit floating-point
real number
Converts a radian value into an angle (
Converts the angle in 64-bit floating-point
real number into an integer (
2
Outputs the converted integer to a display
device (
).
3
2
Conversion
D0
D10
to BIN
b15
b0
82
INTD
BIN value
DEGD(P)
).
1
).
BCD operation
3
Y4F
Y40
0 0 8 2
BCD
BCD value
7-281
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents