Solution
Proceed as follows to read out the I&M0 data of the CPU with the redundancy ID 1:
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 11-15Example: Data block for I&M data
3.
Create the "Get_IM_Data" instruction in the user program, for example in OB1.
4.
Connect the "GET_IM_DATA" instruction as follows:
Figure 11-16Example: Read out I&M0 data from the S7-1500R redundant system
5.
Call the "Get_IM_Data" instruction in the user program.
Result
The "Get_IM_Data" instruction has stored the I&M0 data of the CPU with redundancy ID 1 in
the data block.
309
Commissioning
11.8 Identification and maintenance data
S7-1500R/H redundant system
System Manual, 11/2022, A5E41814787-AD