Function library "canopensdodrv – Lenze Function library CANopenSdoDrv User Manual

Page 14

Advertising
background image

Function library "CANopenSdoDrv"

Function blocks

IndexWrite - write CAN index

14

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

nIndexSize

INT

Size of the data type of the CAN index to be written

• Permissible values: 1, 2 or 4 [Byte]

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.

dnValue

DINT

Value to be written

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