FB_CxGetDeviceIdentification

FB_CxGetDeviceIdentification 1:

The function block FB_CxGetDeviceIdentification can be used to read device ID data of the CX.

FB_CxGetDeviceIdentification 2:

Obsolete functionality

  • Use the FB_GetDeviceIdentificationEx from the Tc2_Utilities library.

FB_CxGetDeviceIdentification 3: Inputs

VAR_INPUT
    bExecute : BOOL;
    tTimeout : TIME;
END_VAR

Name

Type

Description

bExecute

BOOL

The command is executed with the rising edge.

tTimeout

TIME

States the time before the function is canceled.

FB_CxGetDeviceIdentification 4: Outputs

VAR_OUTPUT
    bBusy      : BOOL;
    bError     : BOOL;
    nErrorID   : UDINT;
    stDevIdent : ST_CxDeviceIdentification;
END_VAR

Name

Type

Description

bBusy

BOOL

The data are read from the CX. After error-free execution, the data are in the structure stDevIdent if bBusy = FALSE.

bError

BOOL

Becomes TRUE, as soon as an error occurs.

nErrorID

UDINT

Supplies the error number when the bError output is set.

stDevIdent

ST_CxDeviceIdentification

Contains the read device data. (Type: ST_CxDeviceIdentification)

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1

CX (WES7/Win7/Win10: TC RT x86/x64, WEC6/7 :TC TR x86, WEC7: TC CE7 ARMV7)

Tc2_SystemCX