EasyManua.ls Logo

Fuji Electric SPH Series - Structured Data Types

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-52
Section 1 Specications
(2) Structured data types
A structured data type is made up of two or more similar or different data types. Structured data type is used in situations where
data items of different data types are necessary for a single operation. Structured data type may be contained in an array (array
of structures) or contain arrays (structures of arrays).
<Examples of using structured data types>
<Sample data type denition>
The structured data type “machine” consists of ve data types, namely, X_POS (UDINT), Y_POS (DINT), DEPTH (UINT),
RPM (UINT), and FLAG (BOOL).
<Sample variable declaration>
The data type of variable "hole_pro" is machine.
<Access method>
Variables of a structured data type are accessed in the form of <variable name>.<member name>. Examples of
<member name> in the above example are X_POS, Y_POS, DEPTH, RPM, and FLAG. To access the rotational speed
(RPM) in hole_pro, you specify hole_pro. RPM.

Table of Contents

Related product manuals