Appendix 3 Application Program Examples; Concept Of Programs Which Perform Operations Of A Nth Power Of X, A Nth Root X - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Appendix 3
Concept of programs which perform operations of a nth power of
X, a nth root X
The combination of the LOG instruction and the EXP instruction enables the operation of powers and roots (X
Concept of programs which perform operations of X
n
X
can be operated using e
For example, the operation of 10
Concept of program which performs operation of
n
X can be operated using
For example, the operation of
APPENDICES
1070

Appendix 3 Application Program Examples

Application Program Examples
(nlogeX)
.
1.2
(1.2loge10)
is e
, which is represented in the form of a sequence program as shown below.
e
1
(
log
)
eX
.
n
1
e
3
(
log
10)
10 is
e
, which is represented in the form of a sequence program as shown below.
3
n
Converts 10 into a real number format data
and stores the result in D0 and D1.
Executes Loge10 operation and stores the
result in D2 and D3.
Converts 12 into a real number format data
and stores the result into D4 and D5.
Divides D4 and D5 (12) by D0 and D1 (10),
and stores the result (1, 2) in D6 and D7 (1, 2).
Multiplies D2 and D3 (Loge10) by D6 and
D7 (1, 2) and stores the result in D8 and D9.
Executes Loge(D8, D9) operation and stores
the result in D10 and D11.
n
X
Converts 10 into a real number format data
and stores the result in D20 and D21.
Executes Loge10 operation and stores the
result in D22 and D23.
Converts 3 into a real number type data
and stores the result in D24 and D25.
Divides D22 and D23 (Loge10) by D24 and
D25 (3) and stores the result in D26 and D27.
Executes Loge(D26, D27) operation and
stores the result in D28 and D29.
n
n
X).
,

Advertisement

Table of Contents
loading

Table of Contents