SCIT_GetErrorInfo

SCIT_GetErrorInfo 1:

The SCIT_GetErrorInfo function block reads the exact error cause and the exact error location of a previously occurred bus error from the Interbus card, which is addressed with the NETID and the PORT.

SCIT_GetErrorInfo 2: Inputs

VAR_INPUT
    NETID    : T_AmsNetId;
    PORT     : T_AmsPort;
    WRTRD    : BOOL;
    TMOUT    : TIME := DEFAULT_ADS_TIMEOUT;
END_VAR

Name

Type

Description

NETID

T_AmsNetId

The network address of the computer in which the card is installed can be entered here. If the card is on the same system, an empty string can also be specified.

PORT

T_AmsPort

Contains the ADS port number of the card assigned by the TwinCAT system.

WRTRD

BOOL

The function block is enabled by a positive edge at this value.

TMOUT

TIME

Maximum time allowed for the execution of the command.

SCIT_GetErrorInfo 3: Outputs

VAR_INPUT
    BUSY       : BOOL;
    ERR        : BOOL;
    ERRID      : UDINT;
    RESULT     : WORD;
    ERRORCODE  : WORD;
    ADDERRINFO : WORD;
END_VAR

Name

Type

Description

BUSY

BOOL

When the function block is enabled, this output is set and remains set until a feedback is received.

ERR

BOOL

If an error should occur during the transfer of the command, then this output is set once the BUSY output was reset.

ERRID

UDINT

Returns the ADS error number when the ERR output is set.

RESULT

WORD

Returns the result from the card (assuming an error-free ADS transport (ERR = FALSE)). RESULT = 0 identifies successful execution of the command. A value other than 0 contains the error number from the Phoenix card.

ERRORCODE

WORD

Provides information related to the error type (cf. the Phoenix card error descriptions).

ADDERRINFO

WORD

Contains additional error information in the event of a negative feedback from the card (see Phoenix card command description).

Requirements

Development environment

Target platform

IO Hardware

PLC libraries to be integrated (category group)

TwinCAT v3.1.0

None. This functionality is not supported by TwinCAT 3 at present!

Phoenix: IBS SC/I-T; IBS SC/RI/RT-LK

Tc2_IoFunctions (IO)