EasyManua.ls Logo

Siemens SIMATIC ET 200pro - Example: Read out Firmware Version of the CPU with Get_Im_Data

Siemens SIMATIC ET 200pro
156 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...
Commissioning
8.7 Identification and maintenance data
CPU 1516pro-2 PN (6ES7516-2PN00-0AB0)
94 Operating Instructions, 11/2019, A5E35873416-AC
8.7.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. The firmware version of the modules can be found in the I&M0 data. The I&M0
data are the basic information of a device and contain information such as the manufacturer
ID, article number, serial number and the 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&M0
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 HW ID 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 1516pro-2 PN (6ES7516-
2PN00-0AB0). To read out the I&M0 data of a different module, simply use the HW ID of the
module at the parameter LADDR.
Solution
To read out the I&M0 data of the CPU, proceed as follows:
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 to the structure ("imData") in this case.
Figure 8-6 Example: Data block for I&M data
3. Create the Insert the "Get_IM_Data" instruction in the user program, e.g. in OB 1.

Table of Contents

Other manuals for Siemens SIMATIC ET 200pro

Related product manuals