521
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Double-precision Floating-point Instructions
3
FIXD/FIXLD
FIXD/FIXLD
Applicable Program Areas
Operands
îš„ Operand Specifications
•FIXD
•FIXLD
Instruction Mnemonic Variations
Function
code
Function
DOUBLE FLOATING TO 16-BIT FIXD @FIXD 841
Converts a double-precision (64-bit) floating-point
value to 16-bit signed binary data and places the
result in the specified result word.
DOUBLE FLOATING TO 32-BIT FIXLD @FIXLD 842
Converts a double-precision (64-bit) floating-point
value to 32-bit signed binary data and places the
result in the specified result words.
Symbol
FIXD FIXLD
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description
Data type Size
FIXD FIXLD FIXD FIXLD
S First source word LREAL LREAL 4 4
D Destination word INT DINT 1 2
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK ---
---
--- OK --- --- --- ---
D OK
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK --- --- --- OK --- --- --- ---
D
S: First source word
D: Destination word
FIXD(841)
S
D
FIXLD(842)
S
D
S: First source word
D: First destination word