background image

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

5-2-9 

How to Estimate the Number of SQL Statements that can be Spooled....................................5-14

5-3  Stored Procedure Call Function .........................................................................................5-16

5-3-1 

Overview ...................................................................................................................................5-16

5-3-2 

Specifications of the Stored Procedure Call Function for Databases .......................................5-17

5-3-3 

How to Execute the Stored Procedure Call Function................................................................5-19

5-3-4 

Specifying the Table and Applying the Mapping .......................................................................5-20

5-3-5 

Errors during Stored Procedure Call .........................................................................................5-22

5-4  Batch Insert Function ..........................................................................................................5-24

5-4-1 

Overview ...................................................................................................................................5-24

5-4-2 

How to Execute the Batch Insert Function ................................................................................5-25

5-5  DB Connection Service Shutdown Function.....................................................................5-26

5-5-1 

Overview ...................................................................................................................................5-26

5-5-2 

Shutdown System .....................................................................................................................5-26

5-5-3 

How to Execute the Shutdown Function ...................................................................................5-27

5-5-4 

How to Check the Shutdown of the DB Connection Service.....................................................5-27

5-6  How to Prevent Losing SQL Statements at Power Interruption ......................................5-28

5-6-1 

Overview ...................................................................................................................................5-28

5-6-2 

Procedures................................................................................................................................5-28

5-7  Timeout Monitoring Functions ...........................................................................................5-33

5-7-1 

Timeout Monitoring Functions ...................................................................................................5-33

5-7-2 

Login Timeout............................................................................................................................5-33

5-7-3 

Query Execution Timeout..........................................................................................................5-34

5-7-4 

Communications Timeout..........................................................................................................5-34

5-7-5 

Instruction Execution Timeout ...................................................................................................5-35

5-7-6 

Keep Alive Monitoring Time ......................................................................................................5-35

5-8  Other Functions ...................................................................................................................5-36

5-8-1 

Backup/Restore Function in the DB Connection Service..........................................................5-36

5-8-2 

Operation Authority Verification in the DB Connection Service.................................................5-37

5-8-3 

Encrypted Communication ........................................................................................................5-38

Section 6 

How to Use Operation Logs

6-1  Operation Logs ......................................................................................................................6-2

6-2  Execution Log ........................................................................................................................6-3

6-2-1 

Overview .....................................................................................................................................6-3

6-2-2 

Application Procedure .................................................................................................................6-3

6-2-3 

Setting the Execution Log ...........................................................................................................6-3

6-2-4 

Checking the Execution Log .......................................................................................................6-4

6-2-5 

Execution Log File Specifications ...............................................................................................6-4

6-3  Debug Log ............................................................................................................................6-15

6-3-1 

Overview ...................................................................................................................................6-15

6-3-2 

Application Procedure ...............................................................................................................6-15

6-3-3 

Set the Debug Log ....................................................................................................................6-15

6-3-4 

Start Recording to the Debug Log.............................................................................................6-16

6-3-5 

Stopping Recording to Debug Log ............................................................................................6-17

6-3-6 

Checking the Debug Log...........................................................................................................6-18

6-3-7 

Debug Log File Specifications...................................................................................................6-18

6-4  SQL Execution Failure Log .................................................................................................6-29

6-4-1 

Overview ...................................................................................................................................6-29

6-4-2 

Application Procedure ...............................................................................................................6-29

6-4-3 

Setting the SQL Execution Failure Log .....................................................................................6-29

CONTENTS

10

NJ/NX-series Database Connection CPU Units User’s Manual (W527)

Summary of Contents for SYSMAC NX series

Page 1: ...Machine Automation Controller NJ NX series Database Connection CPU Unit CPU Unit User s Manual W527 E1 16 NX701 20 NX102 20 NJ501 20 NJ101 20...

Page 2: ...this publication Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON factory automation products Microsoft Windows Excel and Visual B...

Page 3: ...f designing FA systems Personnel in charge of installing and maintaining FA systems Personnel in charge of managing FA systems and facilities For programming this manual is intended for personnel who...

Page 4: ...ies CPU Unit Built in EtherCAT Port User s Manual NJ NX series CPU Unit Built in EtherNet IP Port User s Manual NX series CPU Unit FINS Functions User s Manual NJ NX series Database Connection CPU Uni...

Page 5: ...r s Manual NJ series Robot Integrated CPU Unit User s Manual NJ NX series CPU Unit Troubleshooting Manual Testing operation and debugging Using motion control Using EtherCAT Using EtherNet IP Using FI...

Page 6: ...e sliders toward the back until they lock into place Level 1 heading Level 2 heading Level 3 heading Level 2 heading A step in a procedure Manual name Special information Level 3 heading Page tab Give...

Page 7: ...efers to transferring data from Sysmac Studio to the physical Controller and upload refers to transferring data from the physical Controller to Sysmac Studio For Sysmac Studio synchronization is used...

Page 8: ...Manual Structure 6 NJ NX series Database Connection CPU Units User s Manual W527...

Page 9: ...ser s Manual W527 1 I 2 3 4 5 6 7 8 A 1 I 6 2 3 4 7 8 A Introduction to the DB Connection Service Index DB Connection settings Basic Operations and Status Check Programming the DB Connection Function...

Page 10: ...ons 21 Version Types 21 Checking Versions 21 Unit Versions of CPU Units and Sysmac Studio Versions 23 Related Manuals 24 Terminology 26 Revision History 28 Section 1 Introduction to the DB Connection...

Page 11: ...on Sysmac Studio 3 24 3 5 3 DB Connection Instruction Set 3 24 3 5 4 System defined Variables 3 25 3 5 5 Simulation Debugging of DB Connection Instructions 3 26 3 5 6 Transferring the DB Connection S...

Page 12: ...Prevent Losing SQL Statements at Power Interruption 5 28 5 6 1 Overview 5 28 5 6 2 Procedures 5 28 5 7 Timeout Monitoring Functions 5 33 5 7 1 Timeout Monitoring Functions 5 33 5 7 2 Login Timeout 5...

Page 13: ...Connection 7 6 Variables 7 6 Related System defined Variables 7 7 Related Error Codes 7 7 Function 7 7 Precautions for Correct Use 7 8 Sample Programming 7 9 DB_Close Close DB Connection 7 10 Variable...

Page 14: ...se 7 73 Sample Programming 7 74 DB_ControlSpool Resend Clear Spool Data 7 78 Variables 7 78 Related System defined Variables 7 79 Related Error Codes 7 79 Function 7 79 Precautions for Correct Use 7 7...

Page 15: ...4 Guideline for System Service Execution Time Ratio A 13 A 1 5 Checking the System Service Execution Time Ratio A 15 A 2 Execution Time of DB Connection Instructions A 18 A 2 1 Restrictions to Executi...

Page 16: ...plying Product or iii repay or credit Buyer an amount equal to the purchase price of the non complying Product provided that in no event shall Omron be re sponsible for warranty repair indemnity or an...

Page 17: ...FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY OR IN LARGE QUANTITIES WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON PRODUCT S IS...

Page 18: ...entative at any time to confirm actual specifications of purchased Product Errors and Omissions Information presented by Omron Companies has been checked and is believed to be accurate how ever no res...

Page 19: ...Manual Cat No W593 NJ series CPU Unit Hardware User s Manual Cat No W500 NJ series Robot Integrated CPU Unit User s Manual Cat No O037 For safety precautions on NJ501 4320 please contact our sales rep...

Page 20: ...Manual Cat No W593 NJ series CPU Unit Hardware User s Manual Cat No W500 NJ series Robot Integrated CPU Unit User s Manual Cat No O037 For precautions for safe use on NJ501 4320 please contact our sal...

Reviews: