Data Types Supported In Function Blocks; Basic Data Types; Derivative Data Types - Omron WS02-CXPC1-V9 - V9 Operation Manual

Table of Contents

Advertisement

Data Types Supported in Function Blocks

Comment
2-2

Data Types Supported in Function Blocks

2-2-1

Basic Data Types

Data type
Content
BOOL
Bit data
INT
Integer
DINT
Double integer
LINT
Long (8-byte) integer
UINT
Unsigned integer
UDINT
Unsigned double integer 32
ULINT
Unsigned long (8-byte)
integer
REAL
Real number
LREAL
Long real number
WORD
16-bit data
DWORD
32-bit data
LWORD
64-bit data
STRING
Text string (See note.)
TIMER
Timer
COUNTER
Counter
FUNCTION
Function block instance
BLOCK
2-2-2

Derivative Data Types

Array
1-dimensional array; 32,000 elements max.
• Structured text (ST language): Enter decimal numerical values as is
and enter hexadecimal numerical values after 16#.
A comment of up to 30,000 characters long can be entered.
Size
1
16
32
64
16
64
32
64
16
32
64
Variable
Flag: 1 bit
PV: 16 bits
Flag: 1 bit
PV: 16 bits
---
Note
The TIMER and COUNTER data types cannot be used in structured text func-
tion blocks.
Range of values
0 (FALSE), 1 (TRUE)
−32,768 to +32,767
−2,147,483,648 to +2,147,483,647
−9,223,372,036,854,775,808 to +9,223,372,036,854,775,807
&0 to 65,535
&0 to 4,294,967,295
&0 to 18,446,744,073,709,551,615
38
−3.402823 × 10
to −1.175494 × 10
−38
+1.175494 × 10
to +3.402823 × 10
−1.79769313486232 × 10
308
−308
2.22507385850720 × 10
#0000 to FFFF or &0 to 65,535
#00000000 to FFFFFFFF or &0 to 4,294,967,295
#0000000000000000 to FFFFFFFFFFFFFFFF or
&0 to 18,446,744,073,709,551,615
1 to 255 ASCII characters
Timer number: 0 to 4095
Completion Flag: 0 or 1
Timer PV: 0 to 9999 (BCD), 0 to 65535 (binary)
Counter number: 0 to 4095
Completion Flag: 0 or 1
Counter PV: 0 to 9999 (BCD), 0 to 65535 (binary)
---
Section 2-2
−38
, 0,
38
to −2.22507385850720 × 10
to 1.79769313486232 × 10
−308
, 0,
308
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cx-programmer 9Sysmac ws02-cxpc1-v9

Table of Contents