Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 492

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Special Math Instructions
Signed Integer Data (Binary)
15
14 13 12 11
10
9
8
7
0
0
0
0
1
0
0
C
Floating-point specification for S and D
0: Integer data
Data length specification for S and D (note 1)
0: 16-bit signed binary data
1: 32-bit signed binary data
Signed data specification for S and D
1: Signed binary data
Single-precision Floating-point Data
15
14 13 12 11
10
9
8
7
0
0
0
0
0
0
1
0
C
Floating-point specification for S and D
1: Single-precision floating-point data
If 16-bit binary or BCD data is being used, the line-segment data is contained
in words C+1 through C+2m+2. If 32-bit binary or floating point data is being
used, the line-segment data is contained in words C+1 through C+4m+4.
Bits 00 to 07 contain the number (binary) of line coordinates less 1, m–1. Bits
08 to 12 are not used. Bit 13 specifies either f(x)=f(S) or f(x)=f(X
specifies f(x)=f(S) and ON specifies f(x)=f(X
the output is BCD or binary: OFF specifies binary and ON specifies BCD. Bit
15 determines whether the input is BCD or binary: OFF specifies binary and
ON specifies BCD.
16-bit BCD16-bit binary (signed
or unsigned) or 16-bit BCD data
C+1
X0 (*1)
C+2
Y0
C+3
X1
C+4
Y1
C+5
X2
C+6
Y2
Xn
Yn
C+ (2m+1)
Xm
C+ (2m+2)
Ym
Note: Write X
(max. X
m
value in the table) in word
C+1 when the I/O data in
S and D contain signed
data (bit 11 of C = 0).
6
5
4
3
2
1
0
Number of coordinates minus one (m-1),
00 to FF hex (1
m
6
5
4
3
2
1
0
Number of coordinates minus one (m-1),
00 to FF hex (1
m
–S). Bit 14 determines whether
m
32-bit signed binary data
X0 (rightmost 16 bits)
C+1
X0 (leftmost 16 bits)
C+2
Y0 (rightmost 16 bits)
C+3
Y0 (leftmost 16 bits)
C+4
X1 (rightmost 16 bits)
C+5
X1 (leftmost 16 bits)
C+6
Y1 (rightmost 16 bits)
C+7
Y1 (leftmost 16 bits)
C+8
to
to
Xn (rightmost 16 bits)
C+ (4n+1)
Xn (leftmost 16 bits)
C+ (4n+2)
Yn (rightmost 16 bits)
C+ (4n+3)
Yn (leftmost 16 bits)
C+ (4n+4)
to
to
Xm (rightmost 16 bits)
C+ (4m+1)
Xm (leftmost 16 bits)
C+ (4m+2)
Ym (rightmost 16 bits)
C+ (4m+3)
Ym (leftmost 16 bits)
C+ (4m+4)
Section 3-13
256)
256)
–S): OFF
m
Floating-point data
X0 (rightmost 16 bits)
C+1
X0 (leftmost 16 bits)
C+2
Y0 (rightmost 16 bits)
C+3
Y0 (leftmost 16 bits)
C+4
X1 (rightmost 16 bits)
C+5
X1 (leftmost 16 bits)
C+6
Y1 (rightmost 16 bits)
C+7
Y1 (leftmost 16 bits)
C+8
to
to
Xn (rightmost 16 bits)
C+ (4n+1)
Xn (leftmost 16 bits)
C+ (4n+2)
Yn (rightmost 16 bits)
C+ (4n+3)
Yn (leftmost 16 bits)
C+ (4n+4)
to
to
Xm (rightmost 16 bits)
C+ (4m+1)
Xm (leftmost 16 bits)
C+ (4m+2)
Ym (rightmost 16 bits)
C+ (4m+3)
Ym (leftmost 16 bits)
C+ (4m+4)
459

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?

Questions and answers

Table of Contents