Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

ST
Variable
Trigger
LastTrigger
OperatingStart
Operating
ResetPLCError_instance
// Detect when Trigger changes to TRUE.
IF ( (Trigger=TRUE) AND (LastTrigger=FALSE) ) THEN
OperatingStart:=TRUE;
Operating:=TRUE;
END_IF;
LastTrigger:=Trigger;
// Initialize ResetPLCError_instance.
IF (OperatingStart=TRUE) THEN
ResetPLCError_instance(Execute:=FALSE);
OperatingStart:=FALSE;
END_IF;
// Execute ResetPLCError instruction.
IF (Operating=TRUE) THEN
ResetPLCError_instance(Execute:=TRUE);
IF (ResetPLCError_instance.Done=TRUE) THEN
// Processing after normal end
Operating:=FALSE;
END_IF;
IF (ResetPLCError_instance.Error=TRUE) THEN
// Processing after error end
Operating:=FALSE;
END_IF;
END_IF;

NJ-series Instructions Reference Manual (W502)

Data type
Initial value
BOOL
Execution condition
False
Value of Trigger from previous task period
BOOL
False
BOOL
False
Processing started
BOOL
Processing
False
ResetPLCError
2 Instruction Descriptions
Comment
2
2-621

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents