Mitsubishi MELSEC Q Series Programming Manual page 647

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

Advertisement

Program Example
(1) The following program seeks the inverse tangent of the 64-bit floating decimal point real
number at D0 to D3, and outputs the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operations involved when D0 to D3 value is 1]
D3 D2
D1
1
64-bit floating-point
real number
D23 D22
D21
45
64-bit floating-point
real number
Device
D0
D13 D12
1
TAN operation
1
0.785398
ATAND
64-bit floating-point
real number
Conversion
D30
3
b15
D20
to BIN
45
BIN value
INTD
Calculates an angle (radian value) by TAN
operation (
).
1
Converts the radian value into
an angle (
).
2
Converts the angle in 64-bit floating-point
real number into an integer (
Outputs the integer-converted angle
to a display device (
).
4
D11
D10
Conversion to angle
2
DEGD
BCD operation
b0
4
Y4F
Y40
0 0 4 5
BCD value
BCD
ATAND(P)
1
).
3
7-273
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