All BASIC commands
Section 4-2
252
4-2-232 TABLE
/i
/i
Type
System command
Syntax
TABLE(address, value {, value})
TABLE(address)
Description
The
TABLE
command loads data to and reads data from the TABLE
array. The TABLE has a maximum length of 64000 elements. The
TABLE values are floating-point numbers with fractions. The TABLE can
also be used to hold information, as an alternative to variables. The
TABLE
command has two forms.
•
TABLE(address, value{, value})
writes a sequence of values to the
TABLE array. The location of the first element to write is specified by
address. The sequence can have a maximum length of 20 elements.
•
TABLE(address)
returns the TABLE value at the entry specified by
address.
A value in the TABLE can be read-only if a value of that number or
higher has been previously written to the TABLE. For example, printing
TABLE(1001)
will produce an error message if the highest TABLE loca-
tion previously written to the TABLE is location 1000. The total TABLE
size is indicated by the
TSIZE
parameter. Note that this value is one
more than the highest defined element address.The TABLE can be
deleted with by using
DEL "TABLE"
or
NEW "TABLE"
on the com-
mand line.
Notes:
•
Applications like the
CAM
command,
CAMBOX
command and the
SCOPE
command in Trajexia Studio all use the same TABLE as the
data area. Do not use the same data area range for different pur-
poses.
•
The TABLE and VR data can be accessed from all different running
tasks. To avoid problems of two program tasks writing unexpectedly
to one global variable, write the programs in such a way that only
one program writes to the global variable at a time.
Arguments
•
address
The first location in the TABLE to read or write. Range: [0,63999]
•
value
The value to write at the given location and at subsequent locations.
Example
TABLE(100,0,120,250,370,470,530,550)
The above line loads an internal table as below.
Table entry
Value
100
0
101
120
102
250
103
370
104
470
105
530
106
550
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...