Function library "canopensdodrv – Lenze Function library CANopenSdoDrv User Manual

Page 11

Advertising
background image

DMS 1.0 EN - 07/2011 - TD05

L

11

Function library "CANopenSdoDrv"

Function blocks

IndexRead - read CAN index

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.

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

dnValue

DINT

Value of the read CAN index

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