![background image](http://html1.mh-extra.com/html/omron/sysmac-cx-programmer-9/sysmac-cx-programmer-9_operation-manual_744241163.webp)
137
Data Types Used in ST Programs
Section 5-2
5-2
Data Types Used in ST Programs
The following tables show the data types used in ST programs. For details on
the data types that can be used in ST programs within function blocks, refer to
Part 1: Function Blocks
in this manual.
5-2-1
Basic Data Types
Note
(1) In ST programs, these data types are recognized as the following data
types.
• UNIT BCD is recognized as WORD.
• UDINT BCD is recognized as DWORD.
• ULINT BCD is recognized as LWORD.
• CHANNEL is recognized as WORD.
(2) This data type cannot be used in an ST program. A program error will oc-
cur if this data type is specified.
5-2-2
Derivative Data Types
Data type
Content
Size
Range of values
BOOL
Bit data
1
0 (FALSE), 1 (TRUE)
INT
Integer
16
−
32,768 to +32,767
DINT
Double integer
32
−
2,147,483,648 to +2,147,483,647
LINT
Long (8-byte) integer
64
−
9,223,372,036,854,775,808 to +9,223,372,036,854,775,807
UINT
Unsigned integer
16
&0 to 65,535
UINT BCD
Unsigned BCD integer
---
(See note 1.)
UDINT
Unsigned double integer 32
&0 to 4,294,967,295
UDINT BCD
Unsigned double BCD
integer
---
(See note 1.)
ULINT
Unsigned long (8-byte)
integer
64
&0 to 18,446,744,073,709,551,615
ULINT BCD
Unsigned long (8-byte)
BCD integer
---
(See note 1.)
REAL
Real number
32
−
3.402823
×
10
38
to
−
1.175494
×
10
−
38
, 0,
+1.175494
×
10
−
38
to +3.402823
×
10
38
LREAL
Long real number
64
−
1.79769313486232
×
10
308
to
−
2.22507385850720
×
10
−
308
, 0,
2.22507385850720
×
10
−
308
to 1.79769313486232
×
10
308
WORD
16-bit data
16
#0000 to FFFF or &0 to 65,535
DWORD
32-bit data
32
#00000000 to FFFFFFFF or &0 to 4,294,967,295
LWORD
64-bit data
64
#0000000000000000 to FFFFFFFFFFFFFFFF or
&0 to 18,446,744,073,709,551,615
STRING Text
string
Variable
---
FUNCTION
BLOCK
Function block instance
---
---
CHANNEL
Word
---
(See note 1.)
NUMBER
Constant or number
---
(See note 2.)
Array
1-dimensional array; 32,000 elements max.
Summary of Contents for SYSMAC CX-Programmer 9
Page 2: ......
Page 4: ...iv ...
Page 6: ...vi ...
Page 8: ......
Page 16: ...xvi ...
Page 20: ...xx ...
Page 26: ...xxvi Application Precautions 4 ...
Page 27: ...Part 1 Function Blocks ...
Page 28: ......
Page 154: ...128 Procedures Section 3 2 ...
Page 155: ...Part 2 Structured Text ST ...
Page 156: ......
Page 160: ...134 CX Programmer Specifications Section 4 2 ...
Page 206: ...180 Procedures Section 6 1 ...
Page 208: ...182 System defined external variables supported in function blocks Appendix A ...
Page 230: ...204 Revision History ...
Page 231: ......