Setalarm - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

SetAlarm

The SetAlarm instruction creates a user-defined error.
Instruction
SetAlarm
Create User-
defined Error
Variables
Name
Meaning
Code
Event code
Info1
Attached
information
1
Info2
Attached
information
2
Out
Return
value
* If you omit the input parameter, the default value is not applied. A building error will occur.
Bit strings
Code
Info1
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Info2
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Out
OK
Function
The SetAlarm instruction generates the user-defined error that corresponds to event code Code. Event
codes are defined in the event setting table on the Sysmac Studio. The time of occurrence, event name,
event group, event code Code, event level, additional information Info1, additional information Info2,
and detailed information are stored in the user event log area that corresponds to the level of the event
code. The value for the time of occurrence is automatically obtained. The event name, event group, and
detailed information that are set from the Sysmac Studio are recorded. The event level that corre-
sponds to the event code is recorded. The event levels are given below. The smaller the event code is,
the higher the event level is.
2-806
Name
FB/FUN
FUN
I/O
Description
Event code of user-defined
error to generate
Input
Values recorded in event log
when the user-defined error
is generated
Output
Always TRUE
OK
Graphic expression
(@)SetAlarm
EN
ENO
Code
Out
Info1
Info2
Valid range
1 to 40000
Depends on data type.
TRUE only
Integers
NY-series Instructions Reference Manual (W560)
ST expression
SetAlarm(Code, Info1,
Info2);
Unit
Default
1
---
*
---
---
Times, durations, dates,
and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents