Mitsubishi Electric melsec q00ujcpu User Manual page 585

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

(2) Floating-point operation instructions for the Universal model QCPU
TableApp.30 lists floating-point operation instructions for the Universal model QCPU.
Specifications of the single-precision floating-point operation instructions are compatible with those for
the High Performance model QCPU.
TableApp.32 List of floating-point operation instructions supported in the Universal model QCPU
Instruction name
Comparison
Floating-point data comparison
Data transfer
Floating-point data transfer
Floating-point data addition
Floating-point data subtraction
Four arithmetic
operation
Floating-point data multiplication
Floating-point data division
Conversion from BIN 16-bit data
to floating-point data
Conversion from BIN 32-bit data
to floating-point data
Data conversion
Conversion from floating-point
data to BIN 16-bit data
Conversion from floating-point
data to BIN 32-bit data
Floating-point sign inversion
SIN operation
COS operation
TAN operation
SIN-1 operation
COS-1 operation
Special function
TAN-1operation
Conversion from angle to radian
Conversion from radian to angle
Square root
Exponential operation
Natural logarithm operation
Floating-point data can be converted mutually between single precision and double precision using
instructions in
TableApp.33 Floating-point data conversion instructions (single precision
Single precision to double precision conversion
Double precision to single precision conversion
App - 41
TableApp.31.
Instruction name
Instruction symbol
Single-precision
floating-point data
LDE
LDED
ANDE
ANDED
ORE
ORED
EMOV(P)
EDMOV(P)
E+(P)
ED+(P)
E-(P)
ED-(P)
E*(P)
ED*(P)
E/(P)
ED/(P)
FLT(P)
FLTD(P)
DFLT(P)
DFLTD(P)
INT(P)
INTD(P)
DINT(P)
DINTD(P)
ENEG(P)
EDNEG(P)
SIN(P)
SIND(P)
COS(P)
COSD(P)
TAN(P)
TAND(P)
ASIN(P)
ASIND(P)
ACOS(P)
ACOSD(P)
ATAN(P)
ATAND(P)
RAD(P)
RADD(P)
DEG(P)
DEGD(P)
SQR(P)
SQRD(P)
EXP(P)
EXPD(P)
LOG(P)
LOGD(P)
Double-precision
floating-point data
indicates one of
the followings;
<>,=,<,>,<=,>=
double precision)
Instruction symbol
ECON(P)
EDCON(P)
Remarks
---
---
---
---

Advertisement

Table of Contents
loading

Table of Contents