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
DeviceIDeviceCM598Can0
Instance of CM598Can device
Output
ErrorIDERROR_ID.NO_ERROR
Error code that describes the occured error
Input
NodeIdUDINT0
Node ID (1..127)
ObjIndexUDINT0
Object index (0..65535)
ObjSubIndexUDINT0
Object SubIndex (0..255)
ObjDataPOINTER TO BYTE
0
Pointer to Object data
ObjLengthUDINT0
Length of Object data to be write (1..512)
Output
AddErrorIDUDINTCM598Defines.CM598_ADD_ERROR_NONE
Additional description of error, when ErrorID is “REQUEST_FAILED”
SdoErrorUDINT0
SDO tranfer error