CIA405.SDO_WRITE (FB)

( CAA_Cia405.Library)

This function block can be used as alternative to the CIA_SDO_WRITEx function blocks. It supports the arbitrary length of data. The behavior and timing is the same as with CIA405.SDO_WRITE4. The only difference is the data type of the variables DATA and DATALENGTH.

Extends CIA405.CIA405BASE.

Input:

NETWORK

USINT

see CIA405.CIA405BASE 

ENABLE

BOOL

see CIA405.CIA405BASE 

TIMEOUT

UDINT

see CIA405.CIA405BASE 

DEVICE

CIA405.DEVICE

Addressed device; 0 means local device

range: 0 … 127

initial: 0

CHANNEL

USINT

SDO channel number

range: 1 … 128

initial: 1

INDEX

WORD

Object index

range: 0000 … FFFF

initial: 0

SUBINDEX

BYTE

Object subindex

range: 00 … FF

initial: 0

MODE

CIA405.SDO_MODE

 

DATA

POINTER TO BYTE

Object data

range:

initial: 0

DATALENGTH

UINT

Length of valid data in bytes

range: 1 …

Output:

CONFIRM

BOOL

see CIA405.CIA405BASE

ERROR

CIA405.CANOPEN_

KERNEL_ERROR 

see CIA405.CIA405BASE

ERRORINFO

CIA405.SDO_ERROR

SDO Abort code

range: 0 … 232-1

initial: 0