Omron SYSMAC C200H Installation Manual page 151

Programmable
Hide thumbs Also See for SYSMAC C200H:
Table of Contents

Advertisement

Programming Instructions
Name
Mnemonic
VALUE CALCULATE
(@)VCAL(69)
(CPU11)
Data Areas
These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers.
IR
00000 to 23515 23600 to 25507
Downloaded from
Elcodis.com
electronic components distributor
Symbol
VCAL(69)
C
S
D
SR
HR
TR
HR 0000 to 9915
TR 0 to 7
Function
Calculates the cosine, or sine of the given
degree value, or determines the y-coordi-
nate of the given x value in a previously es-
tablished line graph. For the sine and co-
sine conversions, S is entered in BCD as
an angle (in the range 0.0 to 90.0 degrees).
When calculating the y-coordinate in a
graph, S gives the address of the value of
the x-coordinate. The calculated data is
transferred to the destination word (D).
Sine and cosine results are given in BCD.
Line graph coordinate calculations (inter-
polation) can be in BCD or BIN.
The data in the control word (C) deter-
mines which operation is performed. If C is
entered as a constant with a value of 0000
or 0001, the sine or cosine, respectively, of
the source data value is calculated. If C is
entered as a word designation, it gives the
address of the first word of the data table
for the line graph. The value of the first two
digits gives m–1, where m is the number of
data points for which coordinates are given
on the line graph. Bits 14 and 15, respec-
tively, specify the output and input data for-
mats (0 indicates BCD, 1 indicates binary).
Y
Y
m
Y
4
Y
3
Y
1
Y
2
Y
0
X
X
X
1
2
3
Output
data
format
Input
data
format
15
14
000000
C
X
(max. x-coordinate for this table)
C+1
m
C+2
C+3
C+4
C+5
C+6
C+(2m+1)
C+(2m+2)
AR
LR
AR 0000 to 2715
LR 0000 to 6315
TC 000 to 511
Appendix E
Operand Data Areas
C:
IR
SR
HR
AR
LR
TC
DM
#
X
X
X
4
m
m–1, where m is the
number of data points
whose coordinates are
specified in the table
08 07
00
Y
0
X
1
Y
1
X
2
Y
2
X
m
Y
m
TC
DM
Read/Wr: DM 0000 to DM 0999
Rd only: DM 1000 to DM 1999
S:
D:
IR
IR
SR
SR
HR
HR
AR
AR
LR
LR
TC
TC
DM
DM
#
0000 to 9999
or 0000 to FFFF
137

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents