Internal datapoints of the S7 driver

For the S7 driver a datapoint is required for each peripheral connection. The internal datapoint type is _S7_Conn and the single datapoints are indicated with _<connection name>. The connection name has to be unique in the system (the internal datapoint is created when creating and configuring the connections - see also Configuration of the S7 driver). Furthermore, there are three datapoint types when working with the S7 driver - _S7_Config, _S7_Symbolics and _S7_AlarmParam.
Note:
The structure of internal S7 datapoints was changed for the version 3.19

_S7_Conn

The following table shows the elements of the datapoint type _S7_Conn

_S7_Config

The following table shows the elements of the datapoint type _S7_Config. There is only one instance of this datapoint type with the name "_S7_Config". It is used to store the definitions made with the configuration panel (see also Configuration of the S7 driver). In the _S7_Config datapoint the configuration of all configured PLCs is saved. For the DPE ConnectionType there are three different values: 0 means ”PG connection”, 1 means ”OP connection”, 2 means ”Other connection”, 3 means ”TSPP S7 connection” (this value is automatically used when the check box Use TSPP is activated).

Datapoint element Type Description
AvailableS7AlarmClasses dyn_string Available S7 alert classes.
AvailableS7ACPrios dyn_int Available priorities of the S7 alert classes.
S7AlarmClass dyn_string S7 alert classes (optionally incl. priority for a more detailed segmentation)
AlarmClass dyn_string Mapped WinCC OA alert class.
Connections.All dyn_string

Each entry of this element contains a <connection> <driver number> pair. E.g.: PLC 1 2

This element is only read by the driver at startup.

Connections.Add string This element is for adding a new connection during runtime of the driver. The syntax of an entry is the same as above (<connection> <driver number>).

_S7_Symbolics

The following table shows the elements of the datapoint type _S7_Symbolics. This datapoint type is used for storing the information received from browsing the symbolic addresses of a project.

Datapoint element Type Description
S7Address dyn_string Addresses in the S7 address format, for example, DB1.DBW100.
SymbolicAddress dyn_string Symbolic address, for example, "Water_level".
SymbolicFormat dyn_int

Contains the information about the data type of the address. Following types are possible:

#define AGLSYM_FORMAT_BOOL 1

#define AGLSYM_FORMAT_BYTE 2

#define AGLSYM_FORMAT_CHAR 3

#define AGLSYM_FORMAT_WORD 4

#define AGLSYM_FORMAT_INT 5

#define AGLSYM_FORMAT_DWORD 6

#define AGLSYM_FORMAT_DINT 7

#define AGLSYM_FORMAT_REAL 8

#define AGLSYM_FORMAT_DATE 9

#define AGLSYM_FORMAT_TIMEOFDAY 10

#define AGLSYM_FORMAT_TIME 11

#define AGLSYM_FORMAT_S5TIME 12

#define AGLSYM_FORMAT_COUNTER 28

#define AGLSYM_FORMAT_TIMER 29.

ScreenRefresh bool For internal use.

_S7_AlarmParam

The following table shows the elements of the datapoint type _S7_AlarmParam. This datapoint type stores the information according S7 alarms (unique for each S7 project and S7 program). A datapoint name of this type is composed of the connection name, the S7 project name and the station name, e.g. "_S7300_TestProject_SIMATIC300".