Cm598CanopenSdoWrite (FB)

FUNCTION_BLOCK PUBLIC FINAL Cm598CanopenSdoWrite EXTENDS Cm598Base

The Function Block used to write object data with SDO protocol Its behavior is implemented according to the ETrig Function Block.

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

Device

IDeviceCM598Can

0

Instance of CM598Can device

Cm598Base

Output

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

Error code that describes the occured error

Cm598Base

Input

NodeId

UDINT

0

Node ID (1..127)

ObjIndex

UDINT

0

Object index (0..65535)

ObjSubIndex

UDINT

0

Object SubIndex (0..255)

ObjData

POINTER TO BYTE

0

Pointer to Object data

ObjLength

UDINT

0

Length of Object data to be write (1..512)

Output

AddErrorID

UDINT

CM598Defines.CM598_ADD_ERROR_NONE

Additional description of error, when ErrorID is “REQUEST_FAILED”

SdoError

UDINT

0

SDO tranfer error