Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
ST
Internal
Variables
External
Variables
// Check the value of variable A.
IF (A=TRUE) THEN
TON_instance0(In:=TRUE, PT:=T#5s, Q=>B);
ELSE
TON_instance0(In:=FALSE, Q=>B);
END_IF;
IF (A=FALSE) THEN
TON_instance1(In:=TRUE, PT:=T#5s, Q=>C);
ELSE
TON_instance1(In:=FALSE, Q=>C);
END_IF;
// Create user-defined error.
IF (B=TRUE) OR (C=TRUE) THEN
SetAlarm(
Code
Info1 :=Abc,
info2 :=Def);
END_IF;
// Reset user-defined error.
IF (F=TRUE)
ResetAlarm(Code:=UINT#102);
END_IF;
2-810
Variable
Data type
A
BOOL
B
BOOL
C
BOOL
F
BOOL
Abc
UINT
Def
UINT
TON_instance0
TON
TON_instance1
TON
Variable
Data type
_AlarmFlag
WORD
:=UINT#102
& (B=FALSE) & (C=FALSE) & (_AlarmFlag<>WORD#16#0000) THEN
Initial
value
FALSE
FALSE
FALSE
FALSE
123
456
Constant
Error Status of User-defined Errors

NY-series Instructions Reference Manual (W560)

Comment

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents