Data Types Used In St Programs; Basic Data Types; Derivative Data Types - Omron CX-PROGRAMMER V8.1 Operation Manual

Function blocks/ structured text
Table of Contents

Advertisement

Data Types Used in ST Programs

5-2

Data Types Used in ST Programs

5-2-1

Basic Data Types

Data type
Content
BOOL
Bit data
INT
Integer
DINT
Double integer
LINT
Long (8-byte) integer
UINT
Unsigned integer
UINT BCD
Unsigned BCD integer
UDINT
Unsigned double integer 32
UDINT BCD
Unsigned double BCD
integer
ULINT
Unsigned long (8-byte)
integer
ULINT BCD
Unsigned long (8-byte)
BCD integer
REAL
Real number
LREAL
Long real number
WORD
16-bit data
DWORD
32-bit data
LWORD
64-bit data
STRING
Text string
FUNCTION
Function block instance
BLOCK
CHANNEL
Word
NUMBER
Constant or number
Note
5-2-2

Derivative Data Types

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.
Size
1
0 (FALSE), 1 (TRUE)
−32,768 to +32,767
16
−2,147,483,648 to +2,147,483,647
32
−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807
64
16
&0 to 65,535
---
(See note 1.)
&0 to 4,294,967,295
---
(See note 1.)
64
&0 to 18,446,744,073,709,551,615
---
(See note 1.)
−3.402823 × 10
32
+1.175494 × 10
−1.79769313486232 × 10
64
2.22507385850720 × 10
16
#0000 to FFFF or &0 to 65,535
32
#00000000 to FFFFFFFF or &0 to 4,294,967,295
64
#0000000000000000 to FFFFFFFFFFFFFFFF or
&0 to 18,446,744,073,709,551,615
Variable
---
---
---
---
(See note 1.)
---
(See note 2.)
(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.
Array
1-dimensional array; 32,000 elements max.
Range of values
−38
38
to −1.175494 × 10
, 0,
−38
to +3.402823 × 10
38
308
to −2.22507385850720 × 10
−308
to 1.79769313486232 × 10
Section 5-2
−308
, 0,
308
137

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac ws02-cxpc1-v8Sysmac cx-programmer 8.1

Table of Contents