S7TCP driver

Observe these guidelines when working with the S7TCP driver.

Supported controllers

The driver supports these controller families:
Controller series and supported tag import modes
Controller series
Online tags import
Offline tags import
Siemens® S7-1200 Series
Yes
Yes
Siemens® S7-1500 Series
Yes
Yes
Siemens® S7-300 Series
Yes
Siemens® S7-400 Series
Yes

Controller tags import

The driver supports only non-optimized structures.
You can import tags in these modes:
Online mode
Use online mode to import tags directly from the controller at design time or runtime.
IMPORTANT:
Before importing tags from a controller:
  • Set
    Access level
    to a
    Full access
    option.
  • Enable the
    Permit access with PUT/GET communication from remote partner
    option.
  • If applicable, disable the
    Only allow secure PG/PC and HMI communication
    option.
For more information, refer to the product documentation.
Offline mode
Use offline mode to import tags from these project files:
ap13
,
ap14
,
ap15
,
ap16
,
ap17
,
ap18
.
IMPORTANT:
Before importing tags from a project file:
  • Ensure that the project file is compiled with the
    Optimized block access
    property enabled.
  • If your project has multiple programs, choose the program from which you want to import the tags.
For more information, refer to the product documentation.

Data types

The driver supports these data types:
Controller data type
FactoryTalk Optix
data type
Length
Notes
BOOL
BOOL
1 BIT
BYTE
BYTE
1 BYTE
WORD
UINT16
2 BYTES
DWORD
UINT32
4 BYTES
LWORD
UINT64
8 BYTES
SINT
SBYTE
1 BYTES
INT
INT16
2 BYTES
DINT
INT32
2 BYTES
USINT
BYTE
1 BYTE
UINT
UINT16
2 BYTES
UDINT
UINT32
4 BYTES
LINT
INT64
4 BYTES
ULINT
UINT64
8 BYTES
REAL
FLOAT
4 BYTES
LREAL
DOUBLE
8 BYTES
S5TIME
UINT32
2 BYTES
For more information about the time base, refer to the product documentation.
TIME
DURATION
4 BYTES
LTIME
DURATION
8 BYTES
DATE
DATE
2 BYTES
TIME_OF_DAY(TOD)
UTC TIME
4 BYTES
LTIME_OF_DAY(LTOD)
UTC TIME
8 BYTES
DATE_AND_TIME(DT)
DATE TIME
8 BYTES
DTL
Struct
12 BYTES
CHAR
SByte
1 BYTES
WCHAR
UINT16
2 BYTES
STRING
STRING-MAX254
LENGTH +2 BYTES
An operand of the STRING data type occupies two bytes more than the specified maximum length in the memory. For more information, refer to the product documentation.
WSTRING
STRING-MAX 254
LENGTH+2 WORDS
An operand of the WSTRING data type occupies two WORDs more in the memory than the specified maximum length. For more information, refer to the product documentation.
STRUCT
STRUCT
Timer
UINT32
4 BYTES
COUNTER
UINT16
2 BYTES
IEC_Timer
Struct
16 BYTES
IEC_LTimer
Struct
32 BYTES
IEC_SCounter
Struct
3 BYTES
IEC_USCounter
Struct
3 BYTES
IEC_Counter
Struct
6 BYTES
IEC_UCounter
Struct
6 BYTES
IEC_DCounter
Struct
12 BYTES
IEC_UDCounter
Struct
12 BYTES
IEC_LCounter
Struct
24 BYTES
IEC_ULCounter
Struct
24 BYTES
ARRAY 1 dimensional
Type [dimension]
ARRAY 2 dimensional
Type [1st dimension, 2nd dimension]
ARRAY 3 dimensional
Type [1st dimension ,2nd dimension, 3rd dimension]
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.