Extended instructions
9.7 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
452 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 9- 152 Data types for the parameters
IM_TYPE Input UInt Identification and maintenance (I&M) data number:
• 0: I&M0 (MLFB, serial number, version, and other information)
• 1: I&M1 (Designators)
• 2: I&M2 (Installation date)
• 3: I&M3 (Descriptor)
• 4: I&M4 (Signature)
DATA InOut Variant I&M data (STRING or an array of BYTE); recommend use of the SDT
"IM0_Data" for IM_TYPE = 0.
Identification and maintenance (I&M) data can help you to check the system configuration,
detect hardware changes, or view maintenance data. Module identification data (I data) is
read only. Module maintenance data (M data) depends on system information, such as the
installation date. M data are created during maintenance planning and written to the module:
● If the data type used at the parameter DATA is a string, then the current length of the
string is set according to the length of the I&M data.
● If the data type used at the parameter DATA is an array of Byte or Char, then the I&M
data are copied in as a sequence of bytes.
● If the data type used at the parameter DATA is a structure, then the I&M data are copied
in as a sequence of bytes.
● If the given array of byte/char at DATA is longer than the requested I&M data, then the
byte value 16#00 is appended.
● Other data types are not supported and error 8093 is returned.
Table 9- 153 Condition codes
LADDR does not address a HW object which supports I&M data
Data type given at parameter DATA is not supported
DATA instruction not supported by the CPU for this LADDR
IM_TYPE not supported by the CPU
8452 The complete I&M information does not fit into the variable given at the DATA parameter. A par-
tial result up to the byte length of the variable is returned.