Mitsubishi MELSEC Q Series Programming Manual page 637

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 sine of the 32-bit floating decimal point real number
at D0 and D1, and outputs the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
Step
Instruction
[Operations involved when the D0 and D1 value is 0.5]
D1
0 . 5
32-bit floating-point
real number
D21
3 0
32-bit floating-point
real number
Device
D0
D11
-1
SIN
operation
0 . 5 2 3 5 9 8 8
ASIN
32-bit floating-point
real number
D30
Conversion
D20
b15
toBIN
30
INT
BIN value
Calculates an angle (radian value)
by SIN
operation (
)
-1
1
Converts the radian value
into an angle (
)
2
Converts the angle in
32-bit floating-point real
number into an integer (
3
Outputs the integer-converted
angle to a display device (
D10
Conversion to angle
DEG
BCD operation
b0
Y40
Y4F
0 0 3 0
BCD
BCD value
ASIN(P)
)
)
4
7-263
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