Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 502

Table of Contents

Advertisement

3. Instructions
FIX/FIXL
Instruction
FLOATING TO 16-BIT
FLOATING TO 32-BIT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
R
First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Negative Flag
464
Mnemonic
Variations
FIX
@FIX
FIXL
@FIXL
FIX
FIX(450)
S
S: First source word
R
R: Result word
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
ER
• FIX
ON if the integer portion of S+1 and S is not within the range of -32,768 to 32,767.
• FIXL
ON if the integer portion of S+1 and S is not within the range of -2,147,483,648 to 2,147,483,647.
• ON if the data in S+1 and S is not a number (NaN).
• OFF in all other cases.
=
• ON if the result is 0000.
• OFF in all other cases.
N
• ON if bit 15 of the result is ON.
• OFF in all other cases.
Function
code
Converts a 32-bit floating-point value to 16-bit
450
signed binary data and places the result in the
specified result word.
Converts a 32-bit floating-point value to 32-bit
451
signed binary data and places the result in the
specified result words.
Subroutines
OK
Data type
FIX
REAL
INT
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
---
OK
OK
---
OK
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
FIXL
FIXL(451)
S: First source word
S
R
R: First result word
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
FIXL
FIX
REAL
2
DINT
1
Registers
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
FIXL
2
2
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents