Table of Contents

Advertisement

3. Instructions

MOVF

Instruction
MOVE FLOATING-POINT
(SINGLE)
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
D
First destination word
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
S
OK
OK
OK
OK
D
Flags
Name
Error Flag
Equals Flag
Negative Flag
Function
MOVF(469) outputs the single-precision floating-point number (32-bit source data in IEEE754 format)
from source words S+1 and S to destination words D+1 and D.
S+1
D+1
Example Programming
W0.00
514
Mnemonic
Variations
MOVF
@MOVF
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
addresses
@DM
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
P_ER
OFF
P_EQ
• ON if the source data is 0.
• OFF in all other cases.
P_N
• ON if the source data is negative.
• OFF in all other cases.
S
D
When input condition W0.00 is ON, the content of D0 and D1 (+3.0)
MOVF
is stored in floating-point format (IEEE754 format).
+3.0
D0
D1
#4040
Function
code
Transfers the specified 32-bit floating-point num-
469
ber to the destination words.
MOVF
MOVF(469)
S: First source word
S
D
D: First destination word
Subroutines
OK
Data type
REAL
REAL
Registers
Con-
stants
*DM
DR
*EM
OK
OK
---
---
Operation
Source words
Destination words
D0
#0000
Equivalent to +3.0 in floating-point format
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
2
2
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
TR
bits
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents