2 Instruction Descriptions
2-640
NJ-series Instructions Reference Manual (W502)
The SetInfo instruction generates the user-defined information specified by event code Code. The time
of occurrence, event code Code, event level, attached information Info1, and attached information Info2
are stored in the user event log area that corresponds to the level of the event code.
The following figure shows a programming example. User-defined information for event code 40001 is
generated. The values of variables abc and def are stored as attached information.
• Always use variables for the input parameters that are passed to Info1 and Info2. If the attached infor-
mation is not used, specify a dummy variable.
• Return value Out is not used when the instruction is used in ST.
• An error occurs in the following case. ENO will be FALSE.
• The value of Code is outside of the valid range.
Function
Precautions for Correct Use
SetInfo(UINT#40001, abc, def);
LD
UINT#40001
abc
def
ST
SetInfo
EN ENO
Code
Info1
Info2