CIA405.SDO_READ (FB)

( CAA.CiA405.Library)

This function block can be used as alternative to the CIA_SDO_READx 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

initial: 0

SUBINDEX

BYTE

Object subindex

initial: 0

Output:

CONFIRM

BOOL

see CIA405.CIA405BASE

ERROR

CIA405.CANOPEN_

KERNEL_ERROR

see CIA405.CIA405BASE

DATA

POINTER TO BYTE

Object data

initial: 0

ERRORINFO

CIA405.SDO_ERROR

SDO Abort code

initial: 0

In/Output:

DATALENGTH

UINT

Input: Capacity of the Buffer

Output: Length of valid data in bytes

initial: 0