![Fuji Electric SPF Series Скачать руководство пользователя страница 59](http://html1.mh-extra.com/html/fuji-electric/spf-series/spf-series_user-manual_2341814059.webp)
1-50
Section 1 Specifications
<About BCD data>
BCD is not defined 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 defined by user or PLC manufacturer. They are defined 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 definition>
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.