Quick Introduction
50
Operating Manual XCx 300 / 500 / 540 Version 09/08
5.5.5
Diagnosis
Diagnosis can be carried out with the XRIO_STATE function block
from the PLC_Vxxx firmware library. It has to be called cyclically in a
task.
Example for function block call (program in ST):
XRIO_STATE_1(ENABLE:=enable,CARD:=card,STATE:=state
,MODULES:=modules);
state := XRIO_STATE_1.STATE;
modules := XRIO_STATE_1.MODULES;
error := XRIO_STATE_1.ERROR;
enable := FALSE;
Variables:
card USINT
enable BOOL
error WORD
modules XRIO_ModInfoType
state XRIO_StateType
TYPE definition:
XRIO_ModuleInfo : STRUCT
id : UDINT;
EBytes : UINT;
ABytes : UINT;
modClass : UINT;
general1 : UINT;
END_STRUCT (* XRIO_ModInfoType *);
XRIO_ModInfoType : ARRAY [1..16] OF
XRIO_ModuleInfo;
XRIO_StateType : STRUCT
nofModules : INT;
activeErrBits : USINT;
staticErrBits : USINT;
overload : UDINT;
_24VFail : UDINT;
stateErrCount : UDINT;
END_STRUCT (* XRIO_StateType *);