Omron NX701-1620 User Manual page 59

Machine automation controller nj/nx-series database connection cpu units
Hide thumbs Also See for NX701-1620:
Table of Contents

Advertisement

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
Numbers
Fixed-point
*1
numbers
Real numbers
Date and time
String
Binary string
Others
*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
NJ/NX-series Database Connection CPU Units User's Manual (W527)
3 Programming the DB Connection Function
Data type in DB
INT
INTEGER
BIGINT
SMALLINT
DECIMAL(1)
DECIMAL(3)
DECIMAL(5)
DECIMAL(10)
DECIMAL(20)
DECIMAL(3)
DECIMAL(5)
DECIMAL(10)
DECIMAL(20)
DECIMAL(20)
FLOAT
REAL
DOUBLE
DATE
TIME
TIMESTAMP
CHAR
CHARACTER
VARCHAR
CHAR VARYING
CHARACTER VARYING
LONG VARCHAR
CLOB
BLOB
GRAPHIC
VARGRAPHIC
LONG VARGRAPHIC
DBCLOB
DATALINK
Data type in NJ/NX-series Controllers
DINT
DINT
LINT
TIME
INT
*2
BOOL
SINT
INT
DINT
LINT
USINT
UINT
UDINT
ULINT
TIME
REAL
LREAL
REAL
LREAL
DATE
TIME_OF_DAY
DATE_AND_TIME
*3
STRING
*3
STRING
*3
STRING
*3
STRING
*3
STRING
*3
STRING
None
None
None
None
None
None
None
3
3-7

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents