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

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

Advertisement

Function
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.
LD
UINT#40001
abc
def
The SetInfo instruction generates the user-defined information specified by event code Code.
Also, 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.
Event code
Code
Time of occurrence
Event code Code
Event level
Attached information: Info1 = abc
Attached information: Info2 = def
Precautions for Correct Use
• Always use variables for the input parameters that are passed to Info1 and Info2. If the attached
information is not used, specify a dummy variable. A building error will occur if a constant is specified.
• 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.

NY-series Instructions Reference Manual (W560)

ST
SetInfo(UINT#40001, abc, def);
SetInfo
EN
ENO
Code
Info1
Info2
UINT#40001
UINT#40001
Written.
2 Instruction Descriptions
User-defined information generated.
User-defined Event Log Area
2
2-835

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents