Example: Read Out Firmware Version Of The Cpu With Get_Im_Data - Siemens SIMATIC S7-1500 System Manual

Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

Commissioning
11.8 Identification and maintenance data
11.8.3

Example: Read out firmware version of the CPU with Get_IM_Data

Automation task
You want to check whether the modules in your redundant system have the current
firmware. The firmware version of the modules can be found in the I&M 0 data. The IM 0 data
is the basic information for a device. I&M 0 data contains information such as:
• Manufacturer ID
• Article number and serial number
• Hardware and firmware version
To read out the I&M 0 data, use the "Get_IM_Data" instruction. You read the I&M 0 data of all
modules in the user program of the CPU with "Get_IM_Data" instructions and store the I&M 0
data in a data block.
Conditions and parameters
The following block parameters of the "Get_IM_Data" instruction are important for reading
out the I&M data of the CPU:
• LADDR: You enter the system constants or hardware identifier of the CPU at the LADDR
parameter. You have the following options:
– "Local1" (65149): The instruction always returns the I&M data of the CPU with
– "Local2" (65349): The instruction always returns the I&M data of the CPU with
• IM_TYPE: Enter the I&M data number (for example "0" for I&M 0 data) at the IM_TYPE
block parameter.
• DATA: Area for storing the I&M data read (for example in a global data block). Store the
I&M 0 data in an area of the data type "IM0_Data".
This example shows you how to read out the I&M 0 data of a CPU 1513R-1 PN (redundancy ID
1, 6ES7513‑1RM03‑0AB0).
308
redundancy ID 1.
redundancy ID 2.
S7-1500R/H redundant system
System Manual, 11/2022, A5E41814787-AD

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1500rSimatic s7-1500h

Table of Contents