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 #62 background imageLoading...
Page #62 background image
3 Programming the DB Connection Function
3-10
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
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 The DB can handle up to 18 digits. If an over-18-digit value is written by a DB Connection
Instruction, an error will occur.
*4 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.
ï‚– PostgreSQL
Data type category
Data type in DB
Data type in NJ/NX-series Controllers
Numbers boolean BOOL
smallint
INT
integer
DINT
bigint LINT
TIME
serial
UDINT
bigserial
ULINT
Fixed-point
numbers
*1
decimal(3)
decimal (5)
decimal (10)
decimal (20)
decimal (3)
decimal (5)
decimal (10)
decimal (20)
*2
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
numeric (3)
numeric (5)
numeric (10)
numeric (20)
numeric (3)
numeric (5)
numeric (10)
numeric (20)
*2
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
Real numbers
real
REAL
double precision
LREAL
Date and time
timestamp [ (p) ] [ without time zone]
DATE_AND_TIME
timestamp [ (p) ] with time zone
DATE_AND_TIME
date
DATE
time [ (p) ] [ without time zone]
TIME_OF_DAY
time [ (p) ] with time zone
TIME_OF_DAY
String
character(n), char(n)
STRING
*3

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