208
Limitations Can be performed with the CPU11-E only. For trigonometric functions, x, the
content of S, must be in BCD form and satisfy the condition 0000 ≤ x ≤ 0900
(0°≤Θ≤ 90°).
When the execution condition is OFF, VCAL(69) is not executed. When the
execution condition is ON, the operation of VCAL(69) depends on the control
word C. If C is #0000 or #0001, VCAL(69) computes sin(x) or cos(x)*. If C is
an address, VCAL(69) computes f(x) of the function entered in advance at
word C. The function is a series of line segments (which can approximate a
curve) determined by the operator.
* x is the content of S.
Flags ER: Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
For trigonometric functions, x > 0900. (x is the content of S.)
The linear approximation data is not readable.
EQ: The result is 0.
The following example demonstrates the use of the VCAL(69) sine function
to calculate the sine of 30°. The sine function is specified when C is #0000.
Input data, x Result data
S: DM 0000 D: DM 0100
010
1
10
0
10
–1
10
–1
10
–2
10
–3
10
–4
0300 5000
VCAL(69)
#0000
DM 0000
DM 0100
00000
Enter input data not exceeding #0900
in BCD form.
Result
data
has
four
significant
digits,
fifth
and
higher
digits
are
ignored.
The
result
for
sin(90)
will
be
0.9999,
not
1.
Address Instruction Operands
00000 LD 00000
00001 VCAL(69)
# 0000
DM 0000
DM 0100
The following example demonstrates the use of the VCAL(69) cosine func-
tion to calculate the cosine of 30°. The cosine function is specified when C is
#0001.
Input data, x Result data
S: DM 0010 D: DM 0110
010
1
10
0
10
–1
10
–1
10
–2
10
–3
10
–4
0300 8660
VCAL(69)
#0001
DM 0010
DM 0110
00000
Enter input data not exceeding #0900
in BCD form.
Result
data
has
four
significant
digits,
fifth
and
higher
digits
are
ignored.
The
result
for
cos(0)
will
be
0.9999,
not
1.
Address Instruction Operands
00000 LD 00000
00001 VCAL(69)
# 0001
DM 0010
DM 0110
Description
Sine Function
Cosine Function
Special Instructions Section 5-22