Getplcerror - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

GetPLCError

The GetPLCError instruction gets the highest level status (partial fault or minor fault) and highest level
event code of the current Controller errors in the PLC Function Module.
Instruction
GetPLCError
Get PLC Controller
Error Status
Variables
Name
Meaning
Out
Error flag
Level
Highest
level status
Code
Highest
level event
code
Bit strings
Out
OK
Level
Code
Function
The GetPLCError instruction gets the highest level status and the highest level event code of the cur-
rent Controller errors in the PLC Function Module and outputs them to Level and Code.
If there are currently no Controller errors, the value of error flag Out is FALSE.
If there is more than one Controller error at the highest event level, the value of Code is the event code
for the Controller error that occurred first.
2-818
Name
FB/FUN
FUN
I/O
Description
TRUE: Controller error
exists.
FALSE:No Controller error
Highest level status of all
current Controller errors in
the PLC Function Module
0: No Controller error
2: Partial fault level
Output
3: Minor fault level
Highest level event code of
all current Controller errors
in the PLC Function Module
16#0000_0000: No Control-
ler error
16#0007_0000 to
16#FFFF_FFFF: Event
code
OK
OK
Graphic expression
(@)GetPLCError
EN
Level
Code
Valid range
Depends on data type.
0, 2, or 3
16#00000000
16#00070000 to
16#FFFFFFFF
Integers
NY-series Instructions Reference Manual (W560)
ST expression
Out:=GetPLCError(Level,
Code);
Out
Unit
Default
Times, durations, dates,
and text strings

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents