
46 / 60
NTI AG / LinMot
FUNCTION_BLOCK FB_EcCoESdoReadEx
Direction Name
Type
Description
Input
nSlaveAddr
T_AmsPort
ADS Port
Input
nSubIndex
UDINT
0025h (LinMot Service ID)
Input
nIndex
UDINT
2000h
Input
pDstBuf
Struct
ADR(read_buffer (10bytes))
Input
cbBufLen
UDINT
Always 10 bytes
Input
bExecute
BOOL
Rising edge starts writing
Input
tTimeout
TIME
Timeout value
Input
bCompleteAccess BOOL
FALSE
Output
bBusy
BOOL
Indicates reading active/finished
Output
bError
BOOL
Indicates reading error
Output
nErrId
UDINT
Error ID
Response Data Structure
Offset Name
Type Description
0
Res State
UINT 0x0000: No error
0x00C5: Reading not initialized
0x00C6: No UPID found (finished)
2
UPID
UINT UPID of Parameter Or Variable
4
Value
UDINT Value of Parameter
8
Address usage UINT
5.2.16 Start read modified UPID List
Specify the SW layer by its start UPID of which the UPID list will be read out. The list
contains all parameters and variables of the SW layer.
FUNCTION_BLOCK FB_EcCoESdoWriteEx
Direction Name
Type
Description
Input
sNetId
T_AmsNetId AoE NetID
Input
nSlaveAddr
T_AmsPort
ADS Port
Input
nSubIndex
UDINT
0026h (LinMot Service ID)
Input
nIndex
UDINT
2000h
Input
pSrcBuf
DWORD
ADR(write_buffer (4bytes))
Start UPID:
0000h: OS SW layer
1000h: MC SW layer
2000h: Intf SW layer
3000h: Appl SW layer
Input
cbBufLen
UDINT
Always 4 bytes
Input
bExecute
BOOL
Rising edge starts writing
Input
tTimeout
TIME
Timeout value
Input
bCompleteAccess BOOL
FALSE
Output
bBusy
BOOL
Indicates reading active/finished
Output
bError
BOOL
Indicates reading error
Output
nErrId
UDINT
Error ID
5.2.17 Read next modified UPID List entry
Read the response state, UPID, address usage and ROM value of the next modified
parameter. The reading of the list doesn't stop at the end of a SW instance, only at the
end of all instances.