EasyManua.ls Logo

Siemens SIMATIC S7-1200

Siemens SIMATIC S7-1200
1614 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
9.11 Address handling
S7-1200 Programmable controller
548 System Manual, V4.2, 09/2016, A5E02486680-AK
9.11.3
IO2MOD (Determine the hardware identifier from an I/O address)
You use the IO2MOD instruction to determine the hardware identifier of the module from an
I/O address of a (sub)module.
Table 9- 231 IO2MOD instruction
LAD / FBD
SCL
Description
ret_val := IO2MOD(
ADDR:=_word_in_,
LADDR:=_word_out_);
You use the IO2MOD instruction to de-
termine the module slot belonging to a
hardware identifier.
The IO2MOD instruction determines the hardware identifier of the module from an IO
address (I, Q, PI, PQ) of a (sub)module.
Enter the IO address at the ADDR parameter. If a series of IO addresses is used at this
parameter, only the first address is evaluated to determine the hardware identifier. If the first
address is correctly specified, the length for the address specification at the ADDR is of no
significance. If an address area is used that encompasses several modules or non-used
addresses, the hardware identifier of the first module can also be determined.
If no IO address of a (sub)module is specified at the ADDR parameter, the error code "8090"
is output at the RET_VAL parameter.
Note
Input of IO address in SCL
You cannot program using the IO access ID "%QWx:P" in SCL. In this case, use the
symbolic tag name or
the absolute address in the process image.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals