Appendix EProgramming Instructions
137
IR SR HR TR AR LR TC DM #
00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315 TC 000 to 511 Read/Wr: DM 0000 to DM 0999
Rd only: DM 1000 to DM 1999
0000 to 9999
or 0000 to FFFF
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.
Data
Areas
Name
Mnemonic
Operand Data AreasFunctionSymbol
VALUE CALCULATE
(@)VCAL(69)
(CPU11)
VCAL(69)
C
S
D
X
m
(max. x-coordinate for this table)
Y
0
X
1
Y
1
X
2
Y
2
X
m
Y
m
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
XX
m
X
4
X
3
X
2
X
1
Y
m
Y
4
Y
3
Y
1
Y
2
Y
0
15 14 08 07 00
000000
Input
data
format
Output
data
format
m–1, where m is the
number of data points
whose coordinates are
specified in the table
C
C+1
C+2
C+3
C+4
C+5
C+6
C+(2m+1)
C+(2m+2)
C:
IR
SR
HR
AR
LR
TC
DM
#
S:
IR
SR
HR
AR
LR
TC
DM
D:
IR
SR
HR
AR
LR
TC
DM
Downloaded from Elcodis.com electronic components distributor