Overview
Type:
|
Function
|
Available as of:
|
SystemInterface_1.32.6.0
|
Versions:
|
Current version
|
Task
Determine the logical address of an object (for example, LXM62DxS, logical encoder, ...).
Description
Determines the logical address of an object instance (for example, LXM62DxS, logical encoder, ...) based on their name from the PLC configuration. The object is determined via sequential searching and name comparison. The runtime of the function therefore depends on the number of objects and can take several 100 µs.
Interface
Input
|
Data type
|
Description
|
i_sObjInstanceName
|
STRING[80]
|
Name of the object instance
|
Return Value
Data type
|
Description
|
ST_LogicalAddress
|
>0: Instance found (logical address)
-1: Instance not found
|
Examples
i_stLogAdr:=FC_GetObjInstanceLogAddrByName('Axis_1');
-> i_stLogAdr = 16#03020000