2-639
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
System Control Instructions
2
SetInfo
SetInfo
The SetInfo instruction creates user-defined information.
* If you omit the input parameter, the default value is not applied. A building error will occur.
Instruction Name FB/FUN Graphic expression ST expression
SetInfo Create User-
defined Information
FUN SetInfo(Code, Info1, Info2);
Variables
Name Meaning I/O Description Valid range Unit Default
Code Event code
Input
Event code of user-defined
information to generate
40001 to 60000
---
40001
Info1 Attached
information
1
Values recorded in event log
when the user-defined infor-
mation is generated
Depends on data type. *
Info2 Attached
information
2
Out Return
value
Output Always TRUE TRUE only
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Code OK
Info1 OKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOK
Info2 OKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOK
Out OK
(@)SetInfo
EN ENO
Code Out
Info1
Info2