EasyManua.ls 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 #67 background imageLoading...
Page #67 background image
3 Programming the DB Connection Function
3-15
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
3
3-3 Creating a DB Map Variable
3-3-1 DB Map Variables and DB Mapping
3-3 Creating a DB Map Variable
After creating a user-defined structure data type for DB access, you create a variable using the
data type. The variable is called “DB Map Variable”.
This section describes the specifications and creation procedure of DB Map Variables.
3-3-1 DB Map Variables and DB Mapping
Each DB Map Variable uses a structure data type for DB access as its data type.
You create a mapping* for a DB Map Variable to the connected DB for each SQL type (i.e.,
INSERT, UPDATE, and SELECT) by executing a DB_CreateMapping (Create DB Map)
instruction.
After creating the DB mapping, you can execute each record processing for inserting, updating,
and retrieving records using the DB Map Variable by executing a DB_Insert (Insert DB Record),
DB_Update (Update DB Record), or DB_Select (Retrieve DB Record) instruction.
Structure data type for
DB access
DB
Map Variable
Var_Insert
DB Map Variable
Var_Update
DB Map Variable
Var_Select
Use
INSERT
SQL type
UPDATE
SELECT
DB mapping
By executing a
DB_CreateMapping (Create DB Map) instruction
Var_Update
can be used in
DB_Update (Update DB Record) instructions.
Var_Insert can be used in DB_Insert (Insert
DB Record) instructions.
Var_Select can be used in
DB_Select (Retrieve
DB Record) instruction
s.
* The DB mapping means to assign each member of a DB Map Variable to the corresponding column of
a table in the connected DB. You need to execute the DB mapping for each record processing for
inserting, updating, and retrieving records.
You can map more than one DB Map Variable for a DB Connection.
The following table shows the operation of each record processing (i.e., INSERT, UPDATE, and
SELECT) to be performed when you create a structure where not all, but some of the columns
are specified as members.
Record processing
Operation
Inserting records (INSERT) The record values are written to the specified columns of the DB.
NULL is entered in the unspecified columns. You need to make a setting for allowing
NULL in the DB.
Updating records (UPDATE) Values are updated only in the specified columns.
Values are not changed in the unspecified columns.
Retrieving records (SELECT) Values are retrieved only from the specified columns.
You need to specify only the columns that do not contain NULL.
Precautions for Correct Use
If you retrieve a record that includes a column of NULL value when executing a DB_Select
(Retrieve DB Record) instruction, the instruction will result in an instruction error (SQL
Execution Error).

Table of Contents

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
ModelNX701-1620
TypeCPU Unit
Power Supply24 VDC
Programming SoftwareSysmac Studio
Operating Temperature0 to 55°C
Storage Temperature-25 to 70°C
SeriesNX Series
Digital InputsDependent on I/O modules
Digital OutputsDependent on I/O modules
Communication PortsEthernet
Humidity10% to 90% (non-condensing)
Shock Resistance147 m/s², 3 times each in X, Y, and Z directions
Vibration Resistance10 to 57 Hz, 0.075 mm amplitude; 57 to 150 Hz, 9.8 m/s² acceleration

Summary

Introduction

Intended Audience

Specifies the target audience for this manual, requiring knowledge of electrical systems and FA.

Applicable Products

Lists the specific CPU Unit models and Sysmac Studio versions covered by this manual.

Relevant Manuals

Manual Structure

Page Structure

Details the components of a typical page, including headings, procedures, and icons.

Special Information

Precautions for Safe Use

Outlines precautions to ensure the safe usage of the product.

Precautions for Correct Use

Provides precautions for ensuring proper operation and performance of the product.

Additional Information

Offers extra details to enhance understanding or make operations easier.

Version Information

Details differences in specifications and functionality based on unit and Sysmac Studio versions.

Precaution on Terminology

Defines key terms like "download" and "synchronize" as used in the manual.

Sections in this Manual

Terms and Conditions Agreement

Warranty, Limitations of Liability

Details Omron's warranty terms, limitations, and buyer remedies for product defects.

Limitation on Liability; Etc

Limits Omron's liability for damages related to product use or consequential losses.

Application Considerations

Discusses suitability of use, programmable products, and critical safety considerations for applications.

Disclaimers

Covers performance data, specification changes, and errors/omissions.

Programmable Products

Clarifies Omron's non-responsibility for user programming of programmable products.

Performance Data

Explains that presented performance data is a guide and not a warranty.

Change in Specifications

States that product specifications may change without notice.

Errors and Omissions

Disclaims responsibility for clerical, typographical, or proofreading errors or omissions in the manual.

Safety Precautions

Precautions for Safe Use

Refers to hardware manuals for safety precautions and provides contact information for specific models.

Precautions for Correct Use

Regulations and Standards

Conformance to EU Directives

Details how NJ/NX-series Controllers comply with EU Directives and installation requirements.

Conformance to KC Standards

Provides precautions for using NX-series Units in Korea, noting Class A device registration.

Conformance to Shipbuilding Standards

Explains compliance with shipbuilding standards, including usage conditions for NK and LR standards.

Software Licenses and Copyrights

Informs about third-party software licenses and copyright information availability.

Versions

Unit Versions

Defines unit versions for hardware/software of Units and EtherCAT slaves.

Version Types

Describes the two types of versions: unit version and DB Connection Service version.

Checking Versions

Details methods for checking unit versions using ID information labels and Sysmac Studio.

Unit Versions of CPU Units and Sysmac Studio Versions

Relates supported functions to CPU Unit and Sysmac Studio versions, referring to B-4.

Related Manuals

Terminology

Revision History

Introduction to the DB Connection Service

1-1 Overview and Features

Introduces the DB Connection Service, its overview, and key features.

1-2 DB Connection Service Specifications and System

Details the specifications and system architecture of the DB Connection Service.

1-3 Operation Flow of the DB Connection Service

Outlines the basic operational flow for using the DB Connection Service.

Related product manuals