![Fuji Electric SPF Series User Manual Download Page 61](http://html1.mh-extra.com/html/fuji-electric/spf-series/spf-series_user-manual_2341814061.webp)
1-52
Section 1 Specifications
(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 definition>
The structured data type “machine” consists of five 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.