SCP 111-2
S-DIAS SAFETY CPU MODULE
Page 40
08.09.2022
12.4 Global Methods
12.4.1
FetchDiagState
This method is used to read the diagnostic status information (Run State, Config State, Login
Level, Error Counter IO State) from The Safety CPU.
12.4.2
GetDiagState
This method is used to retrieve the read diagnostic information of the class.
Input Parameters
Type
Description
pDiagState
^SafetyDiagState
Pointer to the structure in which the diagnostic data should
be provided.
Return Parameters
Type
Description
StateReady
BOOL
FALSE ... Status is not yet ready (values from the input
parameter have not changed).
TRUE … Status is ready
12.4.3
FetchDiagInfo
This method is used to read the diagnostic status information (Controller ID, Act Error Code,
First Error Code, Reason Code 0 und 1) from the Safety CPU.
Input Parameters
Type
Description
ucChoice
USINT
Selection of the microcontroller from which the diagnostic
information should be read.
12.4.4
GetDiagInfo
This method is used to retrieve the read diagnostic information of the class.
Input Parameters
Type
Description
pDiagInfo
^SafetyDiagInfo
Pointer to the structure in which the diagnostic data should
be provided.
Return Parameters
Type
Description
StateReady
BOOL
FALSE ... No new data available
TRUE … New data available