Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 490

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

• Using Floating-point Data (CJ2, CS1-H, CJ1-H, CJ1M, and CS1D Only)
In this example, APR(069) is used to convert the fluid height in a tank to fluid volume based on the
shape of the holding tank.
Y data range:
38
, 3.402823
10
to
38
1.175494
10
,
38
1.175494
10
to
3.402823
10
38
, or +
High-resolution
floating point data
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Fluid volume
= Y
0.00
APR
C
S
R
Y: Fluid volume
Y
m
R
R+1
Y
0
0
X
0
X data range:
1.175494
Fluid height to volume
conversion table
(Floating-point data)
Fluid height = X
to
C+ (4n+1)
C+ (4n+2)
C+ (4n+3)
C+ (4n+4)
to
C+ (4m+1)
C+ (4m+2)
C+ (4m+3)
C+ (4m+4)
Linear extrapolation of table
X: Fluid height
S
S+1
38
, 3.402823
10
to 1.175494
10
38
38
10
to 3.402823
10
, or +
3. Instructions
C+1
X0 (rightmost 16 bits)
C+2
X0 (leftmost 16 bits)
Y0 (rightmost 16 bits)
C+3
C+4
Y0 (leftmost 16 bits)
C+5
X1 (rightmost 16 bits)
C+6
X1 (leftmost 16 bits)
C+7
Y1 (rightmost 16 bits)
Y1 (leftmost 16 bits)
C+8
to
Xn (rightmost 16 bits)
Xn (leftmost 16 bits)
Yn (rightmost 16 bits)
Yn (leftmost 16 bits)
to
Xm (rightmost 16 bits)
Xm (leftmost 16 bits)
Ym (rightmost 16 bits)
Ym (leftmost 16 bits)
The linear extrapolation can
provide a smooth, high-resolution
curve floating-point data is used.
X
m
38
,
3
453

Advertisement

Table of Contents
loading

Table of Contents