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-87
A
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_Shutdown (Shutdown DB Connection Service)
Sample Programming
(* ---------------------------------------------------------------------------------------------------------------------
Shut down the DB Connection Service.
--------------------------------------------------------------------------------------------------------------------- *)
// Start the sequence when the variable Trigger changes to TRUE.
IF ( (Trigger=TRUE) AND (LastTrigger=FALSE) ) THEN
OperatingStart := TRUE;
Operating := TRUE;
END_IF;
LastTrigger := Trigger;
// Sequence start processing
IF (OperatingStart=TRUE) THEN
// Initialize the instruction instance.
DB_Shutdown_instance( Execute:=FALSE );
OperatingStart := FALSE;
END_IF;
IF (Operating=TRUE) THEN
// Shut down the DB Connection Service.
DB_Shutdown_instance( Execute:=TRUE );
IF (DB_Shutdown_instance.Done=TRUE) THEN
// Normal end processing
ShutdownOK := TRUE;
Operating := FALSE;
END_IF;
IF (DB_Shutdown_instance.Error=TRUE) THEN
// Error handler
Operating := FALSE;
END_IF;
END_IF;
DB Connection Instructions

Table of Contents

Related product manuals