page 129
11.1.Data exchange and variable definition
Function
TDM_CONFIG
Library TDM.LIB
Function symbol
Purpose
The function serves to define those data objects (variables)
during initialisation which are to be shown in the tdm R 360.
Parameter
Function inputs
Function outputs
Description
TDM_CONFIG is only called once during the initialisation
routine of the application software. The execution can then be
blocked via the function call ENABLE.
The input ADDRESS must be allocated the physical address of
the variable. Determine the hardware address with the address
operator ADR. The result has to be transferred to ADDRESS.
LEN sets the number of bytes to be transferred from the
address (e.g. 2 = 2 bytes (WORD), 4 = 4 bytes (DWORD).
Depending on the preset value in the library TDM_x.LIB only 50
values can be defined.
HANDLE is allocated the set variable number from the tdm R
360. HANDLE is the tdm address of the variable. A handle
number must only be allocated once in the tdm as well as in the
application software.
Name Data type Description
ENABLE BOOL TRUE: function is executed
FALSE: function is not executed
ADDRESS DINT variable address
LEN BYTE number of bytes to be transferred
HANDLE WORD designation (number) of the variable in the
tdm
Name Data type Description
RESULT BOOL TRUE: function call was successful