EasyManua.ls Logo

Omron CJ2 CPU UNIT SOFTWARE - Symbol Data Types

Omron CJ2 CPU UNIT SOFTWARE
670 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 Understanding Programming
5-56
CJ2 CPU Unit Software User’s Manual
It is possible to specify the data type for addresses allocated for symbols.
The data types that can be specified inside function blocks may be different from the types that be spec-
ified outside function blocks. The data types that can be used for each are specified in the following
table.
*1 Data types will be converted as follows in ST programming.
UINT BCD: WORD
UDINT BCD: DWORD
ULINT BCD: LWORD
CHANNEL: WORD
*2 These data types cannot be used in ST programming. A program error will occur.
*3 Only internal symbols in function blocks written with ladder diagrams.
5-5-7 Symbol Data Types
Data Types That Can Be Set for Symbols
Data type Symbols in programming Variable in function blocks
BOOL (bit) OK OK
UINT (one-word unsigned binary) OK OK
UDINT (two-word unsigned binary) OK OK
ULINT (four-word unsigned binary) OK OK
INT (one-word signed binary) OK OK
DINT (two-word signed binary) OK OK
LINT (four-word signed binary) OK OK
UINT BCD (one-word unsigned binary)
*1
OK No
UDINT BCD (two-word signed binary)
*1
OK No
ULINT BCD (four-word signed binary)
*1
OK No
REAL (two-word floating point) OK OK
LREAL (four-word floating point) OK OK
CHANNEL (word)
*1
OK No
NUMBER (constant or number)
*2
OK No
WORD (one-word hexadecimal) OK OK
WORD (two-word hexadecimal) OK OK
LWORD (four-word hexadecimal) OK OK
STRING (character string: 1 to 255 ASCII characters) OK OK
TIMER No OK
COUNTER No OK
User-defined data types (data structures) OK
OK
*3

Table of Contents

Related product manuals