HSCGetDiag: Provides Detail of Error Detected on HSC

Function Block Description

This administrative function block returns the details of a detected HSC error.

Graphical Representation

 

G-RU-0010466.2.gif-high.gif

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to Function and Function Block Representation.

I/O Variables Description

This table describes the input variables:

Inputs

Type

Comment

HSC_REF_IN

HSC_REF

Reference to the HSC.

Must not be changed during block execution.

Execute

BOOL

On rising edge, starts the function block execution.

On falling edge, resets the outputs of the function block when its execution terminates.

This table describes the output variables:

Outputs

Type

Comment

HSC_REF_OUT

HSC_REF

Reference to the HSC.

Done

BOOL

TRUE = indicates that HSCDiag is valid.

Function block execution is finished.

Busy

BOOL

TRUE = indicates that the function block execution is in progress.

Error

BOOL

TRUE = indicates that an error was detected.

Function block execution is finished.

ErrID 

HSC_ERR_TYPE

When Error is TRUE: type of the detected error.

HSCDiag

DWORD

When Done is TRUE: diagnostic value is valid, refer to the table below.

NOTE: For more information about Done, Busy and Execution pins, refer to General Information on Function Block Management.

This table indicates the diagnostic values:

Bit

BASE (HSCMain or HSCSimple)

Description

0

Inputs error detected

1

Outputs error detected

2

3

4

Internal error detected on self test

5

6

Bus error detected

7

Configuration error detected

Configuration error detected

8

9

Configuration initialization

10

Sensor supply low voltage

11

Actuator supply low voltage

12

Output0 short-circuit or over-current detected

13

Output1 short-circuit or over-current detected

14

15

Adding the HSCGetdiag Function Block

Step

Description

1

Select the Libraries tab in the Software Catalog and click Libraries.

Select Controller > M218 > M218 HSC > Administrative > HSCGetDiag in the list, drag-and-drop the item onto the POU window.

2

Link the HSC_REF_IN input to the HSC_REF output of the HSC.