Floating-Point Data Transfer (Double Precision) - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Floating-point data transfer (double precision)

EDMOV(P)
High
Basic
Process
Redundant
performance
EDMOV
EDMOVP
(S): Data to be transferred or number of the device to which the data to be transferred is stored (real number)
(D): The number of the device to which the transferred data will be stored (real number)
Setting
Internal device
data
Bit
Word
(S)
(D)
Processing details
• Transfers 64-bit floating decimal point type real number data being stored at the device designated by (S) to a device
designated by (D).
S
+3
S
+2
S
+1
S
4.23542
64-bit floating-point real number
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
Operation error
• There is no operation error in the EDMOV(P) instruction.
Program example
• The following program stores the 64-bit floating decimal point type real number at D10 to D13 at D0 to D3.
[Ladder Mode]
[Operation]
D13 D12
D11
D10
36.475
• The following program stores the real number -1.23 at D10 to D13 when X8 is ON.
[Ladder Mode]
[Operation]
Universal
LCPU
Command
Command
R, ZR
J\
Bit
D
+3
D
+2
D
+1
Transfer
4.23542
64-bit floating-point real number
D3 D2
D1
D0
36.475
D13 D12
D11 D10
EDMOV
EDMOVP
U\G
Zn
Word
D
[List Mode]
Step
Instruction
[List Mode]
Step
Instruction
S
D
S
D
Constant
Others
E
Device
Device
6 BASIC INSTRUCTIONS
6.4 Data Transfer Instructions
6
301

Advertisement

Table of Contents
loading

Table of Contents