SCIT_StartDataTransfer

SCIT_StartDataTransfer 1:

The SCIT_StartDataTransfer function block is used as an auxiliary function block to carry out a Start_Data_Transfer on the Interbus card, which is addressed with the NETID and the PORT. A Start_Data_Transfer places the card into the RUN state.

SCIT_StartDataTransfer 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_StartDataTransfer 3: Outputs

VAR_INPUT
    BUSY       : BOOL;
    ERR        : BOOL;
    ERRID      : UDINT;
    RESULT     : 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.

ADDERRORINFO

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)