Function library "canopensdodrv – Lenze Function library CANopenSdoDrv User Manual

Page 17

Advertising
background image

DMS 1.0 EN - 07/2011 - TD05

L

17

Function library "CANopenSdoDrv"

Function blocks

BlockRead - read CAN index per segmented data transfer

Inputs

Outputs

Identifier/data type

Information/possible settings

bExecute

BOOL

FALSEÊTRUE Activates a read request

nAddress

INT

CAN node address

1 ... 63 Parameter channel 1

65 ... 127 Parameter channel 2

nIndex

INT

CAN index

• For converting a code number into the required CAN index, you can use the

L_FUNCodeIndexConv function from the »LenzeDrive.lib« library.

nSubIndex

INT

CAN subindex

tRxTimeout

TIME

TimeOut time

• After the read request has been sent, the FB must receive a response from the

target device within this time. Otherwise, a timeout error will be output.

• If the input is not connected, the timeout time is one second.

nBufferSize

INT

Maximum number of the data bytes that are allowed to be received as a function of

the size of the variables created at the pData.

pData

POINTER

Pointer to the address of the memory area for storing the received data bytes.

• The address of a variable can be determined with the address function ADR.

Identifier/data type

Value/meaning

bDone

BOOL

TRUE Request executed successfully

bDone is set to TRUE for at least one processing cycle.

bDone will only be reset to FALSE if the bExecute input is set to

FALSE as well.

bBusy

BOOL

TRUE Request in process

nIndexSize

INT

Size of the data type of the read CAN index or number of the received data bytes.

bError

BOOL

TRUE An error has occurred during job execution

• For details see dnErrorNo.

bError is set to TRUE for at least one processing cycle.

bError will only be reset to FALSE if the bExecute input is set to

FALSE as well.

Advertising