Appendix
  • 23 Feb 2024
  • 1 Minute to read
  • PDF

Appendix

  • PDF

Article summary

Reading Arrays and Strings from a Siemens PLC

Reading arrays

 The image below shows the data that will be read from a Siemens PLC. 

Figure 15- Data block


Addresses in the Siemens Client module in N3uron will have the following format:

Siemens
N3uron
Name Data TypeOffsetAddressData Type
int01Int0.0db102:00Int16
arr01[0]Int2.0 + 0.0 = 2.0db102:02Int16
arr01[1]Int2.0 + 2.0 = 4.0db102:04Int16
arr01[2]Int2.0 + 4.0 = 6.0db102:06Int16
arr01[3]Int2.0 + 6.0 = 8.0db102:08Int16
arr01[4]Int2.0 + 8.0 = 10.0db102:10Int16
arr01[5]Int2.0 + 10.0 = 12.0db102:12Int16
arr01[6]Int2.0 + 12.0 = 14.0db102:14Int16
arr01[7]Int2.0 + 14.0 = 16.0db102:16Int16
arr01[8]Int2.0 + 16.0 = 18.0db102:18Int16
arr01[9]Int2.0 + 18.0 = 20.0db102:20Int16
float01Real22.0db102:22Float32
arr02[0]Sint26.0 + 0.0 = 26.00db102:26Int8
arr02[1]Sint26.0 + 1.0 = 27.00db102:27Int8
arr02[2]Sint26.0 + 2.0 = 28.00db102:28Int8
arr02[3]Sint26.0 + 3.0 = 29.00db102:29Int8
arr02[4]Sint26.0 + 4.0 = 30.00db102:30Int8
arr02[5]Sint26.0 + 5.0 = 31.00db102:31Int8
arr02[6]Sint26.0 + 6.0 = 32.00db102:32Int8
arr02[7]Sint26.0 + 7.0 = 33.00db102:33Int8
arr02[8]Sint26.0 + 8.0 = 34.00db102:34Int8
arr02[9]Sint26.0 + 9.0 = 35.00db102:35Int8
float02Real36.0db102:36Float32

The offset for each tag in N3uron is the result of the sum of the array offset and the offset of each element within the array. 

Figure 16- Final addresses

Considerations for Using Ethernet/MPI Converters

Most extended MPI to Ethernet converters use a rack and a slot number for addressing processes. These elements aredirectly converted into the MPI address. For example, in order to access the MPI address 2, you would need to use the value 0 as the rack number and 2 for the slot number on theconverter side. For precise assignment, please refer to the manufacturer's documentation for the converter. The table below provides the most common address assignments for these types of converters.

MPIRackSlotTSAP
0000200
1010201
2020202
...


31031021F
32100220
33110221
...


63131023F
64200240
65210241
...


95231025F
96300260
97310261
...


126330027E



Was this article helpful?

What's Next