EasyManuals Logo

Omron NX701-1620 User Manual

Omron NX701-1620
306 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
Page #61 background imageLoading...
Page #61 background image
3 Programming the DB Connection Function
3-9
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
3
3-2-2 Specifications of Structure Data Type for DB Access
3-2 Creating a Structure Data Type
*1 The DECIMAL(p[ ,s]) is expressed in the short form where the number of digits after the decimal
point (s) is omitted. When the short form is used, the number of digits after the decimal point (s) is
0. If the number of digits after the decimal point (s) is not omitted and 1 or greater numerical value
is set, only the integer portion of the value is applicable.
*2 Digit overflow may occur even in the above data types due to the difference in the valid range.
Example: When the data type in DB is DECIMAL(3) and the data type in NJ/NX-series Controllers
is USINT:
DECIMAL(3)’s range: 0 to 999
USINT’s range: 0 to 255
*3 A NULL character is attached to the end of each text string. Therefore, you need to set the value
that is one byte bigger than the number of bytes of the DB’s data type for the number of bytes to be
used in STRING data.
You need to set an appropriate value for the number of bytes used in the STRING data according
to the data type and character code in the DB. In NJ/NX Series, text strings are handled as UTF-8.
One byte is used for each single-byte alphanumeric character and multiple bytes are used for each
multi-byte character. Three bytes are used for each Japanese character as a guide.
ï‚– Firebird
Data type category
Data type in DB
Data type in NJ/NX-series Controllers
Integers INTEGER DINT
BIGINT LINT
TIME
SMALLINT
INT
Fixed-point
numbers
*1
DECIMAL(1)
DECIMAL(3)
DECIMAL(5)
DECIMAL(10)
DECIMAL(18)
DECIMAL(3)
DECIMAL(5)
DECIMAL(10)
DECIMAL(18)
*2
BOOL
SINT
INT
DINT
LINT
*3
USINT
UINT
UDINT
ULINT
*3
NUMERIC(1)
NUMERIC(3)
NUMERIC(5)
NUMERIC(10)
NUMERIC(18)
NUMERIC(3)
NUMERIC(5)
NUMERIC(10)
NUMERIC(18)
*2
BOOL
SINT
INT
DINT
LINT
*3
USINT
UINT
UDINT
ULINT
*3
Real numbers
FLOAT
REAL
DOUBLE
PRECISION
LREAL
Date
DATE
DATE
TIME
TIME_OF_DAY
TIMESTAMP
DATE_AND_TIME
String
CHAR
STRING
*4
VARCHAR
STRING
*4
Others
BLOB
None
*1 The DECIMAL(p[ ,s]) and NUMERIC(p[ ,s]) are expressed in the short form where the number of

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX701-1620 and is the answer not in the manual?

Omron NX701-1620 Specifications

General IconGeneral
BrandOmron
ModelNX701-1620
CategoryController
LanguageEnglish

Related product manuals