![Omron CX-PROGRAMMER V8.1 Operation Manual Download Page 66](http://html1.mh-extra.com/html/omron/cx-programmer-v8-1/cx-programmer-v8-1_operation-manual_744203066.webp)
41
Data Types Supported in Function Blocks
Section 2-2
• Structured text (ST language): Enter decimal numerical values as is
and enter hexadecimal numerical values after 16#.
Comment
A comment of up to 30,000 characters long can be entered.
2-2
Data Types Supported in Function Blocks
2-2-1
Basic Data Types
Note
The TIMER and COUNTER data types cannot be used in structured text func-
tion blocks.
2-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
UDINT
Unsigned double integer 32
&0 to 4,294,967,295
ULINT
Unsigned long (8-byte)
integer
64
&0 to 18,446,744,073,709,551,615
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 (See note.)
Variable
1 to 255 ASCII characters
TIMER
Timer
Flag: 1 bit
PV: 16 bits
Timer number: 0 to 4095
Completion Flag: 0 or 1
Timer PV: 0 to 9999 (BCD), 0 to 65535 (binary)
COUNTER
Counter
Flag: 1 bit
PV: 16 bits
Counter number: 0 to 4095
Completion Flag: 0 or 1
Counter PV: 0 to 9999 (BCD), 0 to 65535 (binary)
FUNCTION
BLOCK
Function block instance
---
---
Array
1-dimensional array; 32,000 elements max.
Summary of Contents for CX-PROGRAMMER V8.1
Page 3: ...iv...
Page 5: ...vi...
Page 7: ......
Page 15: ...xvi...
Page 19: ...xx...
Page 25: ...xxvi Application Precautions 4...
Page 26: ...Part 1 Function Blocks...
Page 27: ......
Page 153: ...128 Procedures Section 3 2...
Page 154: ...Part 2 Structured Text ST...
Page 155: ......
Page 159: ...134 CX Programmer Specifications Section 4 2...
Page 205: ...180 Procedures Section 6 1...
Page 207: ...182 System defined external variables supported in function blocks Appendix A...
Page 229: ...204 Revision History...
Page 230: ......