EasyManua.ls Logo

Omron NX701-1620

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
Loading...
Appendix A
A-62
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Name
Data type
Initial value
Comment
RS_instance
RS
---
Instance of RS instruction
MyStatus _sDBC_SERVICE_STATUS --- This variable is assigned to the ServiceStatus
input variable to
DB_GetServiceStatus_instance.
Warning BOOL FALSE This variable changes to TRUE when the
number of error executions is 100 or greater.
GetServiceStatus_OK BOOL FALSE This variable changes to TRUE when the
DB_GetServiceStatus instruction is completed
normally.
Sample Programming
- Change the value of the variable Warning to TRUE when the number of error executions is 100 or greater.
Check the completion of the DB_GetServiceStatus instruction.
DB_GetServiceStatus_instance.Done
OperatingEnd
DB_GetServiceStatus
_instance.Error
Accept the trigger.
Trigger
Operating
RS_instance
OperatingEnd
Set
Reset1
RS
Q1
Get the status of the DB Connection Service.
Operating
DB_GetServiceStatus_instance
Execute
DB_GetServiceStatus
Done
Busy
Error
ErrorID
ServiceStatus
MyStatus
When the instruction is normally completed, change the variable Warning to TRUE if the number of error executions is 100 or greater.
Operating
DB_GetServiceStatus_instance.Done
DINT#100
MyStatus.FailedCnt
EN
In1
In2
<=
Warning
S
GetServiceStatus_OK
S
When the instruction is terminated due to an error, change the variable Warning to FALSE.
Operating
DB_GetServiceStatus_instance.Error
// Error handler
GetServiceStatus_OK := FALSE;

Table of Contents

Related product manuals