Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| devices_plcs [2021/02/01 00:27] – wikiadmin | devices_plcs [2021/02/01 00:32] (current) – wikiadmin |
|---|
| **S7 Arrays** | **S7 Arrays** |
| |
| An S7 Array is configured with the size and type of the array using the type of data read in the address. In the example | An S7 Array is configured with the size (Register Count) and starting register (Start Register), and the data type of the array is taken from the address designation. In the example |
| |
| {{:pasted:20210131-232432.png}} | {{:pasted:20210131-232432.png?400}} |
| |
| The data type is "B" in the starting address DB195:B0, and the number of elements in the array is 6. This means that the S7Array will read 6 byte registers starting at DB195:B0, so DB195:B0,DB195:B1,DB195:B2,DB195:B3,DB195:B4,and DB195:B5. | The data type is "B" in the starting address DB195:B0, and the number of elements in the array is 6. This means that the S7Array will read 6 byte registers starting at DB195:B0, so DB195:B0,DB195:B1,DB195:B2,DB195:B3,DB195:B4,and DB195:B5. If the Start Register was set to read words, such as DB195:W8, and the array size was set to 3, DB195:W8,DB195:W9,and DB195:W10 would be returned in the array. |