EasyManua.ls Logo

Fuji Electric SPH Series - Derived Data Types; Array 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-50
Section 1 Specications
<About BCD data>
BCD is not dened as a data type in IEC. BCDs are represented as an encoding option of WORD or DWORD. The MICREX-SX
series handles BCD as unsigned data.
Data length Value range
16 bits (WORD) 0 to 9999
32 bits (DWORD) 0 to 99999999
1-6-3 Derived data types
Derives data types are dened by user or PLC manufacturer. They are dened on the worksheet in the “Data Type” folder of the
project tree.
The MICREX-SX series supports the following derived data types:
Array data types
1-dimensional array
2-dimensional array (array of array)
Structured data types
Structure
Array of structures
Structure of arrays, structure of structures
(1) Array data types
An array is made up of two or more elements of the same data type. Arrays may be either 1- or 2-dimensional arrays.
<Example of using a 1-dimensional array data type>
<Sample data type denition>
Data type “INT_1_10” is made up of 10 integers that are indexed from 1 to 10.
<Example of a variable declaration>
The data type of variable “SET_DATA” is INT_1_10.
(Note)
Notes:
Derived data types such as array variable must be assigned to the address of even number.
1 INT type data
2 INT type data
3 INT type data
4 INT type data
5 INT type data
6 INT type data
7 INT type data
8 INT type data
9 INT type data
10 INT type data
f
To access this data item, code SET_DATA [5]
Notes:
If an out-of-range value is set (for example SET_DATA [11]), SET_DATA [10] is
accessed due to the limiting operation.
Notes:
Signed integers are legitimate values.
Consequently, negative integers such as
“-10” are allowed.

Table of Contents

Related product manuals