Page 1
Machine Automation Controller NJ/NX-series Database Connection CPU Unit User’s Manual NX701-20 NX102-20 NJ501-20 NJ101-20 CPU Unit W527-E1-16...
Page 2
Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice. 3. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsi- bility for errors or omissions.
Page 3
Introduction Introduction Thank you for purchasing an NJ/NX-series CPU Unit. This manual contains information that is necessary to use the Database Connection Service with the NJ/NX-series CPU Unit. (Database may be referred to as DB hereinafter.) Please read this manual and make sure you understand the functionality and performance of the NJ/NX-series CPU Unit be- fore you attempt to use it in a control system.
Page 4
¡ Using EtherCAT ¡ ¡ Using EtherNet/IP ¡ Using FINS ¡ Using the database connection service ¡ Using robot control for OMRON robots ¡ Writing the user program Using motion control ¡ ¡ Using EtherCAT ¡ Using EtherNet/IP ¡ ¡...
Page 5
¡ Using EtherCAT ¡ ¡ Using EtherNet/IP ¡ Using FINS ¡ Using the database connection service ¡ Using robot control for OMRON robots ¡ Learning about error management and correc- ¡ tions Maintenance Using motion control ¡ ¡ ¡ ¡...
Page 6
Manual Structure Manual Structure Page Structure The following page structure is used in this manual. Level 1 heading 4 Installation and Wiring Level 2 heading Mounting Units Level 3 heading Level 2 heading Gives the current Level 3 heading headings. 4-3-1 Connecting Controller Components The Units that make up an NJ-series Controller can be connected simply by pressing the Units together...
Page 7
Manual Structure This information is provided to increase understanding or make operation easier. Version Information Information on differences in specifications and functionality for Controller with different unit versions and for different versions of the Sysmac Studio is given. Precaution on Terminology In this manual, "download"...
Page 8
Manual Structure NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Page 9
Sections in this Manual Sections in this Manual Introduction to the DB Index Connection Service DB Connection settings Programming the DB Connection Function Basic Operations and Status Check Other Functions How to Use Operation Logs DB Connection Instruction Troubleshooting Appendix NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Page 10
CONTENTS CONTENTS Introduction ......................1 Intended Audience............................1 Applicable Products ............................1 Relevant Manuals..................... 2 Manual Structure...................... 4 Page Structure..............................4 Special Information ............................4 Precaution on Terminology ..........................5 Sections in this Manual ................... 7 Terms and Conditions Agreement................ 14 Warranty, Limitations of Liability ........................14 Application Considerations ..........................15 Disclaimers ..............................15 Safety Precautions....................
Page 11
CONTENTS 2-1-1 Starting Sysmac Studio .......................2-2 2-1-2 Creating a New Project .......................2-2 2-1-3 Setting the Built-in EtherNet/IP Port ....................2-3 2-1-4 Controller Setup ..........................2-3 DB Connection Settings......................2-5 2-2-1 DB Connection Service Settings ....................2-5 2-2-2 DB Connection Settings ......................2-7 Section 3 Programming the DB Connection Function DB Access Procedure ......................3-2 Creating a Structure Data Type ....................3-3 3-2-1...
Page 12
CONTENTS 5-2-2 Spooling System .........................5-5 5-2-3 Applicable Instructions and Spooling Execution Conditions ............5-5 5-2-4 Memory Area Used by the Spool Function .................5-6 5-2-5 Spool Function Settings ......................5-8 5-2-6 How to Resend the SQL Statements Stored in the Spool Memory..........5-9 5-2-7 Clearing the SQL Statements from the Spool Memory .............5-10 5-2-8 Relationship with the DB Connection Instructions ..............5-12...
Page 13
CONTENTS 6-4-4 Checking the SQL Execution Failure Log .................6-30 6-4-5 SQL Execution Failure Log File Specifications .................6-30 SD Memory Card Operations ....................6-36 6-5-1 Saving Operation Log Files on SD Memory Card ..............6-36 6-5-2 Directory Used for DB Connection Service ................6-36 6-5-3 Operation Log Operations in Replacing the SD Memory Card ..........6-37 6-5-4...
Page 14
CONTENTS Precautions for Correct Use ........................7-43 Sample Programming ..........................7-44 DB_Delete (Delete DB Record) .....................7-45 Variables ..............................7-45 Related System-defined Variables......................7-46 Related Error Codes ...........................7-46 Function ..............................7-47 Precautions for Correct Use ........................7-47 Sample Programming ..........................7-48 DB_ControlService (Control DB Connection Service) ...............7-60 Variables ..............................7-60 Related System-defined Variables......................7-61 Related Error Codes ...........................7-61 Function ..............................7-62...
Page 15
CONTENTS Function ..............................7-110 Precautions for Correct Use ........................7-111 Sample Programming ..........................7-112 DB_ExecuteProcedure (Execute DB Stored Procedure)............7-113 Variables ..............................7-113 Related System-defined Variables......................7-114 Related Error Codes ..........................7-114 Function ..............................7-115 Precautions for Correct Use ........................7-116 Sample Programming ..........................7-116 DB_DetachProcedure (Release DB Stored Procedure Handle)..........7-125 Variables ..............................7-125 Related System-defined Variables......................7-125...
Page 16
Omron’s exclusive warranty is that the Products will be free from defects in materials and work- manship for a period of twelve months from the date of sale by Omron (or such other period ex- pressed in writing by Omron). Omron disclaims all other warranties, express or implied.
Page 17
WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT, WARRANTY, NEGLIGENCE OR STRICT LIABILITY. Further, in no event shall liability of Omron Companies exceed the individual price of the Product on which liability is asserted. Application Considerations...
Page 18
Product. Errors and Omissions Information presented by Omron Companies has been checked and is believed to be accurate; how- ever, no responsibility is assumed for clerical, typographical or proofreading errors or omissions. NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Page 19
Safety Precautions Safety Precautions Refer to the following manuals for safety precautions. • NX-series CPU Unit Hardware User's Manual (Cat. No. W535) • NX-series NX102 CPU Unit Hardware User’s Manual (Cat. No. W593) • NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) •...
Page 20
Precautions for Safe Use Precautions for Safe Use Refer to the following manuals for precautions for safe use. • NX-series CPU Unit Hardware User's Manual (Cat. No. W535) • NX-series NX102 CPU Unit Hardware User’s Manual (Cat. No. W593) • NJ-series CPU Unit Hardware User’s Manual (Cat. No. W500) •...
Need help?
Do you have a question about the SYSMAC NJ Series and is the answer not in the manual?
Questions and answers