Address Handling; Log2Geo (Determine The Slot From The Hardware Identifier) Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
Extended instructions

8.9 Address handling

8.9
Address handling
8.9.1

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
LAD / FBD
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 address a HW object.
Table 8- 179 Data types for the parameters
Parameter and type
LADDR
IN
RET_VAL
OUT
GEOADDR
IN_OUT
404
SCL
ret_val := LOG2GEO(
laddr:=_word_in_,
GEOADDR:=_variant_in_out_);
Data type
Description
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.
Int
Error code of the instruction
Variant
Pointer to the GEOADDR system data type
Description
You use the LOG2GEO instruction to
determine the module slot belonging to a
hardware identifier.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents