2 Instruction Descriptions
2-612
NJ-series Instructions Reference Manual (W502)
• 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.
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.
Sample Programming