How To Measure Db Response Time - Omron NX701-1620 User Manual

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

Advertisement

Appendix B
B-2-3

How to Measure DB Response Time

The DB response time refers to the time since an SQL statement is sent from the CPU Unit until the
SQL execution result is returned from the DB. You can find the DB response time by executing a
DB_GetConnectionStatus instruction after executing an instruction that sends an SQL statement.
An example user program is given below.
 Measurement example of DB response time for a DB_Insert instruction
Find the DB response time for a DB_Insert instruction.
Operating
MyDB1
MapVar_Insert
Normal end processing
Operating
DB_Insert_instance.Done
You can also check the DB response time with the Execution Log or Debug Log.
B-18
DB_Insert_instance
DB_Insert
Execute
Done
DBConnection
Busy
MapVar
Error
TimeOut
ErrorID
SendStatus
DB_GetConnectionStatus_instance.Done
DB_GetConnectionStatus_instance
DB_GetConnectionStatus
Execute
'MyDatabase1'
DBConnectionName
// Output the DB response time to DB1ResTime[] variable.
DB1ResTime[index] := MyStatus.DBResTime;
Index := index + 1;
IF index = 1000 THEN
Index := 0;
END_IF;
NJ/NX-series Database Connection CPU Units User's Manual (W527)
Done
Busy
Error
ErrorID
MyStatus
ConnectionStatus

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents