
30 / 60
NTI AG / LinMot
4.3.9
Curves start write curve to RAM
Initiates writing a curve to RAM. Then the “Curves write curve info block data to RAM”
service has to be called several times. Only non existing curve IDs can be written. If the
curve exists, it has to be deleted before (Command. “Curves delete single curve in
RAM”). Repeated curve writing can lead to a full curve memory. In this case the
complete curve memory has to be deleted with the command “Delete all curves”.
FUNCTION_BLOCK ADSWRITE
Direction Name
Type
Description
Input
NETID
T_AmsNetId AoE NetID
Input
PORT
T_AmsPort
ADS Port
Input
IDXGRP
UDINT
0055h (LinMot Service ID)
Input
IDXOFFS
UDINT
Curve ID to write
Input
LEN
UDINT
Always 4 bytes
Input
SRCADDR
DWORD
ADR(write_buffer (0bytes))
Bytes 0..1 curve info block size
Bytes 2..3 curve data block size
Input
WRITE
BOOL
Rising edge starts reading
Input
TMOUT
TIME
Timeout value
Output
BUSY
BOOL
Indicates reading active/finished
Output
ERR
BOOL
Indicates reading error
Output
ERRID
UDINT
Error ID
4.3.10 Curves write curve info block data to RAM
Write the curve header data to RAM. This command has to be repeated until the whole
curve info block data is written. Then the “
Curves write curve info block data to
RAM
” service has to be called several times.
FUNCTION_BLOCK ADSWRITE
Direction Name
Type
Description
Input
NETID
T_AmsNetId AoE NetID
Input
PORT
T_AmsPort
ADS Port
Input
IDXGRP
UDINT
0056h (LinMot Service ID)
Input
IDXOFFS
UDINT
Curve ID to write
Input
LEN
UDINT
Always 4 bytes
Input
SRCADDR
DWORD
ADR(write_buffer (4bytes))
Input
WRITE
BOOL
Rising edge starts reading
Input
TMOUT
TIME
Timeout value
Output
BUSY
BOOL
Indicates reading active/finished
Output
ERR
BOOL
Indicates reading error
Output
ERRID
UDINT
Error ID