
Siemens TCP/IP Ethernet Driver Help
See Also: Examples
S7 Data Types
The S7 data type is used to coerce the data type for a tag. It does not apply to Timers and Counters. The default
data types are shown in bold.
S7
Data
Type
Description Address Range
Data
Type
B
Byte
Unsigned Byte B0-B65535
BYTE0-
BYTE65535
B0.b-B65535.b
BYTE0.b-
BYTE65535.b
.b is Bit Number
0-7
B0.n-B65535.n
BYTE0.n-
BYTE65535.n
.n is string
length.
0 < n <= 212.
Byte,
Char
Boolean
String*
C
Char
Signed Byte C0-C65535
CHAR0-
CHAR65535
C0.b-C65535.b
CHAR0.b-
CHAR65535.b
.b is Bit Number
0-7
C0.n-C65535.n
CHAR0.n-
CHAR65535.n
.n is string
length.
0<n<= 212.
Byte,
Char
Boolean
String*
D
DWORD
Unsigned
Double Word
D0-D65532
DWORD0-
DWORD65532
D0.b-D65532.b
DWORD0.b-
DWORD65532.b
.b is Bit Number
0-31
DWord,
Long,
LBCD,
Float
Boolean
DATE S7 Date
Stored as WORD in steps of 1 day since January 1, 1990.
Displayed as string format "yyyy-mm-dd" with range "1990-01-01"
to "2168-12-31".
Read/Write
DATE0-
DATE65534
String
DI
DINT
Signed
Double Word
DI0-DI65532
DINT0-
DINT65532
DI0.b-
DWord,
Long,
LBCD,
Float
www. kepware.com
44
Comentarios a estos manuales