ETC_VoE_SendReceive (FB)ΒΆ

FUNCTION_BLOCK ETC_VoE_SendReceive

fuhction block to read and write VoE (Vendor over EtherCAT) specific mailbox requests

InOut:

Scope

Name

Type

Initial

Comment

Input

xExecute

BOOL

Rising edge: ACTION starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError) are present at the outputs for exactly one cycle.

usiCom

USINT

1

index of master 1: first ETC master

uiDevice

UINT

The physical slave address to access the EtherCAT slave

usiChannel

USINT

1

not used in the moment because channel is set automatically

udiVendorID

UDINT

the required vendor id for the VoE prototcol

uiVendorType

UINT

the required vendor type for the VoE protocol

uiInputMaxLength

UINT

size of buffer for the input data (max 506 bytes)

pbyInputData

POINTER TO BYTE

pointer to the input data

uiOutputLength

UINT

size of output data (max 506 bytes)

pbyOutputData

POINTER TO BYTE

pointer to the output data

udiTimeout

UDINT

the timeout in milliseconds

Output

xDone

BOOL

TRUE: Action successfully completed

xBusy

BOOL

TRUE: Function block active

xError

BOOL

TRUE: Error occurred, function block aborts action, FALSE: No error

xTimeoutError

BOOL

TRUE: request timed out

uiSizeReceived

UINT

Number of bytes received