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

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

Advertisement

Commissioning
13.10 Identification and maintenance data
13.10.3

Example: Read out firmware version of the CPU with Get_IM_Data

Automation task
You want to check whether the modules in your automation system have the current
firmware. You can find the firmware version of the modules in the I&M0 data. The I&M0 data
is the basic information for a device. The I&M0 data contains information such as:
• Manufacturer ID
• Article number and serial number
• Hardware and firmware version
To read out the I&M0 data, use the "Get_IM_Data" instruction. You read the I&M0 data of all
modules in the user program of the CPU with "Get_IM_Data" instructions and store the I&M
data in a data block.
Conditions and parameters
To read out the I&M data of the CPU, use the following block parameters of the
"Get_IM_Data" instruction:
• LADDR: Enter the hardware identifier of the module at the block parameter "LADDR".
• IM_TYPE: Enter the I&M data number (for example "0" for I&M0 data) at the "IM_TYPE"
block parameter.
• DATA: Area for storing the read I&M data (for example. in a global data block). Store I&M0
data in an area of the data type "IM0_Data".
This example shows how to read out the I&M0 data of a CPU 1504D TF (6ES7615-4DF10-
0AB0) . To read out the I&M0 data of a different module, simply use the hardware identifier
of the module at the LADDR parameter.
Solution
Proceed as follows to read out the I&M0 data of the CPU:
1. Create a global data block to store the I&M0 data.
2. Create a structure of the data type "IM0_Data" in the global data block. You can assign any
name for the structure (in this case "imData").
Figure 13-4
3. Create the "Get_IM_Data" instruction in the user program, for example, in OB 1.
300
Example: Data block for I&M data
SIMATIC Drive Controller
System Manual, 11/2023, A5E46600094-AD

Advertisement

Table of Contents
loading

Table of Contents