Add variables to the S7 data source
Assign a name for the variable under “Name” and select the “Data type“.

By selecting the data type, the creation mask and the specific area are automatically adjusted.


Once all the entries have been made, click on “Add” to create the variable.
The window remains open so that you can create further variables. Once this has been done,“Close” the window.
The variable for the S7 data source has been successfully created and can now be used.
S7 address syntax for quick entry
S7 variables can also be added with a quick entry.
A variable with a single field entry can be created here using the correct syntax.
In general, the following syntax applies to S7 addresses:
- [Area][Data Type][Start Address]
For variables from the data block and instance data block areas, the number of the data block must be separated from the data type by a dot (.):
- [DB/DI][Number].[DataType][StartAddress]
However, if it is a string or Boolean variable, the length of the string or the position of the bit must be specified at the end:
- [Area][DataType][StartAddress].[BitPositionOrLength]
Areas:
| Abbreviation | Abbreviation – alternative | Description |
| DB | Data module | |
| DI | Instance module | |
| M | F | Marker |
| T | Timer | |
| Z | C | Counter |
| E | I | Entrance |
| A | O | Output |
| PE/PA | PI/PO | Peripheral input / output |
Data types:
| Abbreviation | Description |
| X | Boolen |
| I | Int |
| D | DInt |
| B | Byte |
| W | Word |
| DW | DWord |
| R | Float |
| S | String |
| BCDB | BCD8 |
| BCDW | BCD16 |
| BCDDW | BCD32 |
| BCDLW | BCD64 |
| DT | DateTime |
| S5T | S5Time |
| G | S7String |
| T | Time |
| TOD | TimeOfDay |
| D | Date |
