EasyManuals 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 #249 background imageLoading...
Page #249 background image
Appendix A
A-61
A
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_GetServiceStatus (Get DB Connection Service Status)
Related Error Codes
Error code
Meaning
Description
041D hex Too Many Instructions Executed at the
Same Time
More than 32 DB Connection Instructions were executed at the same
time.
3002 hex DB Connection Service Shutdown or
Shutting Down
The instruction was executed after the DB Connection Service was
shut down or while the DB Connection Service was being shut down.
3013 hex DB Connection Service Error Stop The instruction was executed while the DB Connection Service was
stopped due to an error.
3015 hex DB Connection Service Initializing The instruction was executed while the initialization processing of the
DB Connection Service was in progress.
Function
This instruction is used to get the current status of the DB Connection Service. The current status is output to the
ServiceStatus output variable.
Refer to the ■ ServiceStatus of A-1-2 Variables Used in the DB Connection Instructions for the status.
Precautions for Correct Use
Execution of this instruction is continued until processing is completed even if the value of Execute changes to
FALSE or the execution time exceeds the task period. The value of Done changes to TRUE when processing
is completed. Use this to confirm normal completion of processing.
Refer to Using this Section of the NJ/NX-series Instructions Reference Manual (Cat. No. W502) for a timing
chart for Execute, Done, Busy, and Error.
This instruction cannot be used on an event task. A compiling error will occur.
An error occurs for this instruction in the following cases. Error will be TRUE.
When the instruction was executed while the initialization processing of the DB Connection Service
was in progress
When the instruction was executed while the DB Connection Service was stopped due to an error
When the instruction was executed after the DB Connection Service was shut down or while the DB
Connection Service was being shut down
When more than 32 DB Connection Instructions were executed at the same time
Sample Programming
This section gives sample programming for the following operations.
Get the status of the DB Connection Service when the trigger variable changes to TRUE.
Change the value of the Warning variable to TRUE if the number of error executions is 100 or greater.
Ladder Diagram
Main Variables
Name
Data type
Initial value
Comment
DB_GetServiceStatus_instance
DB_GetServiceStatus
---
Instance of DB_GetServiceStatus instruction
Trigger BOOL FALSE Variable used as a trigger for getting the status
of the DB Connection Service
Operating BOOL FALSE The DB_GetServiceStatus instruction is
executed when this variable is TRUE.
OperatingEnd BOOL FALSE This variable changes to TRUE when the
DB_GetServiceStatus instruction is completed.
DB Connection Instructions

Table of Contents

Questions and Answers:

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
BrandOmron
ModelNX701-1620
CategoryController
LanguageEnglish

Related product manuals