181
Improved Instructions
Section 7-14
In 32 Bit
[D]: Calculation result (rightmost 4 digits)
[D+1]: Calculation result (leftmost 4 digits)
In 16 Bit
[D]: Calculation result (4 digits)
SIN/COS Calculation
Overview
With -V1 unit with lot No. 0209__ or later, the APR instruction enables the
"SIN/COS Calculation" as well as CS1-H CPU units.
Explanation of Operation
Calculates the sine or cosine of the source data (hexadecimal in
´
10
-
1
unit)
0000 to 0384 (0.0
º
to 90.0
º
), the result is output to result word as hexadecimal
data 0000 to 270F (0.0000 to 0.9999) indicating the 4 digits below the decimal
point. The 5th digit and lower are omitted.
Even though Sin 90
º
or Cos 0
º
is specified in source data, 270F (BCD: 9999)
will be output and stored in the result word.
SIN Function
COS Function
Square Root Operation
Overview
With -V1 unit with lot No. 0209__ or later, the APR instruction enables the
"Square Root Operation".
However, input from CX-Programmer is not possible. Input from a program-
ming console.
Explanation of Operation
Computes the square root of hexadecimal data in S and S+1, and outputs the
integer portion (4-digit hexadecimal) of the result to the result word. The fig-
ures below the decimal point are omitted.
APR
@APR
T
T
T: Control data
S
S
S: Source data
D
D
D: Result word
Operand
Value
Data range
T
#0000
---
S
0000 to 0384 (Hex)
0.0
º
to 90.0
º
D
0000 to 270F (Hex)
0.0000 to 0.9999
270F (Hex)
1.0000
Operand
Value
Data range
T
#0001
---
S
0000 to 0384 (Hex)
0.0
º
to 90.0
º
D
0000 to 270F (Hex)
0.0000 to 0.9999
270F (Hex)
1.0000
APR
@APR
T
T
T: Control data
S
S
S: Source data
D
D
D: Result word
Summary of Contents for CS1W-HCA12-V1
Page 2: ......
Page 6: ...vi...
Page 20: ...xx Conformance to EC Directives 7...
Page 38: ...18 Models and System Configurations Section 1 2...
Page 78: ...58 Fail safe Circuits Section 3 5...
Page 138: ...118 AR Area Section 6 4...
Page 204: ...184 Improved Instructions Section 7 14...
Page 222: ...202 Cycle Time Section 8 3...
Page 240: ...220 Troubleshooting Flowcharts Section 9 5...
Page 244: ...224 Precautions when Using the CX Programmer Appendix A...
Page 252: ......
Page 253: ......