Extended instructions
8.9 Address handling
S7-1200 Programmable controller
404 System Manual, 03/2014, A5E02486680-AG
LOG2GEO (Determine the slot from the hardware identifier) instruction
You use the LOG2GEO instruction to determine the geographical address (module slot) from
the logical address belonging to a hardware identifier.
Table 8- 178 LOG2GEO instruction
laddr:=_word_in_,
GEOADDR:=_variant_in_out_);
You use the LOG2GEO instruction to
determine the module slot belonging to a
hardware identifier.
The LOG2GEO instruction determines the geographic address of a logical address based
upon the hardware identifier:
● Use the LADDR parameter to select the logical address based upon the hardware
identifier.
● The GEOADDR contains the geographic address of the logical address given at the
LADDR input..
Note
In the cases where the HW type does not support a component, a subslot number for a
module 0 is returned.
An error is provided if the LADDR input does not add
ress a HW object.
Table 8- 179 Data types for the parameters
LADDR IN HW_ANY Hardware identifier of the IO system or the module. The number is
assigned automatically and is stored in the properties of the CPU or the
interface of the hardware configuration.
Error code of the instruction
Pointer to the GEOADDR system data type