![Omron SYSMAC C200H Скачать руководство пользователя страница 221](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423221.webp)
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
0
10
1
10
0
10
–1
10
–1
10
–2
10
–3
10
–4
0
3
0
0
5
0
0
0
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
0
10
1
10
0
10
–1
10
–1
10
–2
10
–3
10
–4
0
3
0
0
8
6
6
0
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
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...