FB_EcCoESdoAbortCode

FB_EcCoESdoAbortCode 1:

The function block

FB_EcCoESdoAbortCode 2: Inputs

VAR_INPUT
    sNetId          : T_AmsNetId; 
    nSlaveAddr      : UINT; 
    bExecute        : BOOL; 
    tTimeout        : TIME := DEFAULT_ADS_TIMEOUT
END_VAR

Name

Type

Description

sNetId

T_AmsNetId

String containing the AMS network ID of the EtherCAT master device.

nSlave
Addr

UINT

Fixed address of the EtherCAT slave to which the SDO download command should be sent.

bExecute

BOOL

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

tTimeout

TIME

Maximum time allowed for the execution of the function block.

FB_EcCoESdoAbortCode 3: Outputs

VAR_OUTPUT
    bBusy  : BOOL;
    bError : BOOL;
    nErrId : UDINT;
    stAbortCode : ST_EcAbortCode
END_VAR

Name

Type

Description

bBusy

BOOL

This output is set when the function block is activated, and remains set until feedback is received.

bError

BOOL

This output is set after the bBusy output has been reset when an error occurs in the transmission of the command.

nErrId

UDINT

Supplies the ADS error code associated with the most recently executed command if the bError output is set.

stAbortCode

ST_EcAbortCode

Abort code