EasyManua.ls Logo

Fuji Electric SPH Series - Page 62

Fuji Electric SPH Series
151 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1-53
Section 1 Specications
<Array of structures>
Structures may be contained in an array.
<Sample data type denition>
The example shown below denes an array of 10 machines, indexed from 1 to 10, which are dened in the above example.
<Sample variable declaration>
The data type of variable “num_hole_pro” is machine_1_10.
<Access method>
Structures in an array are accessed in the form of <variable name>[<array index>].<member name>. Examples of <member
name> in the above example are X_POS, Y_POS, DEPTH, RPM, and FLAG. For example, in order to access the 5th row (RPM)
of num_hole_pro, “num_hole_pro[5].RPM” is specied.
<Structure of arrays>
Array is dened as an element of a structure.
<Sample data type denition>
The example shown below denes a structure “machine2” of which the “DEPTH” member is an array of depths. of depths.
<Sample variable declaration>
The data type of variable “hole_pro_02” is machine2.
<Access method>
An array in a structure is accessed in the form of <variable name>.<member name>[<array index>]. To access the 5th depth
in the member “DEPTH” of “hole_pro_02,” you specify hole_pro_02.DEPTH[5].

Table of Contents

Related product manuals