Nj-Series Cpu Unit Opc Ua User's Manual (W588) - Omron NJ501-1300 User Manual

Machine automation controller nj-series cpu unit opc ua
Hide thumbs Also See for NJ501-1300:
Table of Contents

Advertisement

Structured Text (ST)
Main Variables
Name
OPCUA_Shutdown_instance
Trigger
LastTrigger
Operating
OperatingStart
ShutdownOK
Sample Programming
(*----------------------------------------------------------------------------------
Shutdown the OPC UA Server.
----------------------------------------------------------------------------------*)
// 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.
OPCUA_Shutdown_instance( Execute:=FALSE );
OperatingStart := FALSE;
END_IF;
IF (Operating=TRUE) THEN
// Shutdown OPC UA Server
OPCUA_Shutdown_instance( Execute:=TRUE );
IF (OPCUA_Shutdown_instance.Done=TRUE) THEN
// Normal end processing
ShutdownOK := TRUE;
Operating := FALSE;
END_IF;
IF (OPCUA_Shutdown_instance.Error=TRUE) THEN
// Processing after error end
Operating := FALSE;
END_IF;
END_IF;

NJ-series CPU Unit OPC UA User's Manual (W588)

Data type
OPCUA_Shutdown
---
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
BOOL
FALSE
Initial value
Comment
Instance of OPCUA_Shutdown
(Shutdown OPC UA Function)
instruction.
Variable used as a trigger for shut-
ting down the OPC UA Server.
Variable to retain the trigger status
of the previous execution.
The OPC UA Server is shutdown
when this variable is TRUE.
The initialization processing is
executed when this variable is
TRUE.
This variable changes to TRUE
when the OPCUA_Shutdown
(Shutdown OPC UA Function)
instruction terminates normally.
Appendices
A
A - 9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1400Nj501-1500

Table of Contents