EasyManua.ls Logo

Siemens S7-1200 - Address Handling; LOG2 GEO (Determine the Slot from the Hardware Identifier) Instruction

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Extended instructions
8.9 Address handling
S7-1200 Programmable controller
404 System Manual, 03/2014, A5E02486680-AG
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
SCL
Description
ret_val := LOG2GEO(
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
Parameter and type
Data type
Description
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.
RET_VAL
OUT
Int
Error code of the instruction
GEOADDR
IN_OUT
Variant
Pointer to the GEOADDR system data type

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals