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

11.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.
SIMATIC Drive Controller
System Manual, 11/2019, A5E46600094-AA
11.10 Identification and maintenance data
Commissioning
225

Advertisement

Table of Contents
loading

Table of Contents