
47 / 60
NTI AG / LinMot
FUNCTION_BLOCK FB_EcCoESdoReadEx
Direction Name
Type
Description
Input
sNetId
T_AmsNetId AMS NetID
Input
nSlaveAddr
T_AmsPort
ADS Port
Input
nSubIndex
UDINT
0027h (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.18 Stop MC and Application SW instances
This service stops the execution of the MC and application SW layers. This command
should be used before configuring (writing to ROM values) of these instances.
FUNCTION_BLOCK: FB_EcCoeSdoWriteEx
Direction Name
Type
Description
Input
sNetId
T_AmsNetId
AmsNetId of master
Input
nSlaveAddr
UINT
Address of slave
Input
nSubIndex
Byte
35h (LinMot Sdo Service ID)
Input
nIndex
WORD
2000h
Input
pSrcBuf
DWORD
ADR(write_buffer (0 bytes))
Input
cbBufLen
UDINT
0 bytes (4 bytes also accepted)
Input
bExecute
BOOL
Rising edge starts writing
Input
tTimeout
TIME
Timeout value
Input
bComplAccess BOOL
FALSE
Output
bBusy
BOOL
Indicates reading active/finished
Output
bError
BOOL
Indicates reading error
Output
nErrId
UDINT
Error ID
5.2.19 Start MC and Application SW instances
This service starts the execution of the MC and application SW layers. This command
should be used after configuring (writing to ROM values) of these instances are
finished.