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 #270 background imageLoading...
Page #270 background image
Appendix A
A-82
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Structured Text (ST)
Main Variables
Name
Data type
Initial value
Comment
DB_PutLog_instance
DB_PutLog
---
Instance of DB_PutLog instruction
Trigger
BOOL
FALSE
Variable used as a trigger for recording the user-specified log
LastTrigger
BOOL
FALSE
Variable to retain the trigger status of the previous execution
Operating BOOL FALSE When this variable is TRUE, recording of the user-specified log is
executed.
OperatingStart
BOOL
FALSE
The initialization processing is executed when this variable is TRUE.
RecipeCode
UDINT
1234678
Recipe code used in the log message.
Msg
STRING[256]
‘’
Log message to record
Sample Programming
(* -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Record the log code 100, log name Production Order, and log message Production Start, RecipeCode=12345678 into the Execution Log.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- *)
// 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_PutLog_instance( Execute:=FALSE );
// Create the log message.
Msg := CONCAT('Production Start,RecipeCode=',UDINT_TO_STRING(RecipeCode));
OperatingStart := FALSE;
END_IF;
IF (Operating=TRUE) THEN
// Record the log message into the Execution Log.
DB_PutLog_instance(
Execute := TRUE,
LogType := _DBC_LOGTYPE_EXECUTION,
LogCode := 100,
LogName := 'Production Order',
LogMsg := Msg );
IF (DB_PutLog_instance.Done=TRUE) THEN
// Normal end processing
Operating := FALSE;

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