Extended instructions
9.11 Address handling
S7-1200 Programmable controller
546 System Manual, V4.2, 09/2016, A5E02486680-AK
LOG2GEO (Determine the slot from the hardware identifier)
You use the LOG2GEO instruction to determine the geographical address (module slot) from
the logical address belonging to a hardware identifier.
Table 9- 228 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.
ed if the LADDR input does not address a HW object.