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 #59 background imageLoading...
Page #59 background image
3 Programming the DB Connection Function
3-7
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
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.
ï‚– DB2
Data type category
Data type in DB
Data type in NJ/NX-series Controllers
Numbers INT DINT
INTEGER DINT
BIGINT LINT
TIME
SMALLINT
INT
Fixed-point
numbers
*1
DECIMAL(1)
DECIMAL(3)
DECIMAL(5)
DECIMAL(10)
DECIMAL(20)
DECIMAL(3)
DECIMAL(5)
DECIMAL(10)
DECIMAL(20)
*2
BOOL
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
DECIMAL(20)
TIME
Real numbers FLOAT REAL
LREAL
REAL
REAL
DOUBLE
LREAL
Date and time
DATE
DATE
TIME
TIME_OF_DAY
TIMESTAMP
DATE_AND_TIME
String
CHAR
STRING
*3
CHARACTER
STRING
*3
VARCHAR
STRING
*3
CHAR VARYING
STRING
*3
CHARACTER VARYING
STRING
*3
LONG VARCHAR
STRING
*3
CLOB
None
Binary string
BLOB
None
Others
GRAPHIC
None
VARGRAPHIC
None
LONG VARGRAPHIC
None
DBCLOB
None
DATALINK
None
*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

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