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
Additional Information
You can specify either global variables or local variables for Info1 and Info2.
Precautions for Correct Use
• Up to 32 user-defined errors can be generated in each of the eight event levels (for up to 256 user-
defined errors total).
• If a user-defined error for the same event code already exists, the new error is not recorded in the
event log.
• Always use variables for the input parameters that pass Info1 and Info2. If you use a constant, a
building error will occur.
• An error does not occur even if the value of Code is not set as a event code on the Sysmac Studio. If
the event code is not registered, the event group and detailed information are not recorded in the
user-defined event log. The value of Code is recorded for the event name.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following cases. ENO will be FALSE.
• The value of Code is outside of the valid range.
• An attempt was made to generate more than the maximum number of user-defined errors.
Sample Programming
In this sample, the value of variable A changes between TRUE and FALSE every five seconds. The
value of A is monitored. If it does not change for more than five seconds, a user-defined error with
event code 102 is generated. UINT#123 and UINT#456 are given as the attached information.
When variable F changes to TRUE, the user-defined error is cleared.
LD
Internal
Variables
External
Variables
2-808
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
Initial value
FALSE
FALSE
FALSE
FALSE
123
456
Constant
Comment
Error Status of User-defined Errors

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents