Function library "canopensdodrv – Lenze Function library CANopenSdoDrv User Manual

Page 20

Advertising
background image

Function library "CANopenSdoDrv"

Function blocks

BlockWrite - write CAN index per segmented data transfer

20

L

DMS 1.0 EN - 07/2011 - TD05

Inputs

Outputs

Identifier/data type

Information/possible settings

bExecute

BOOL

FALSEÊTRUE Activate a write 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 write 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.

nIndexSize

INT

Number of data bytes to be sent

pData

POINTER

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

• 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

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