Omron trajexia CJ1W-MCH72 Operation Manual page 264

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-236 TABLE
/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.
/i
Table entry
100
101
102
103
104
105
106
Section 4-2
Value
0
120
250
370
470
530
550
253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents