ich empfehle allen beteiligten erst einmal zu lesen:
und bitte bedenkt wir sprechen bei sps von einem internationalen standard nach iec 61131 und nicht von irgendeinem hersteller wie
codesys oder siemens. oder ist dies kein sps forum?????
http://www.fen-net.de/karlheinz.john/IEC61131-3JohnTiegelkampDeutschV1.2.pdf
seite 347 definition der std datentypen
auch ein studium des standards selbst waere vielleicht ganz angebracht:
hier dcer auszug data types
Table 10 - Elementary data types
No.
Keyword
Data type
N a
1
[FONT=Courier New, monospace]BOOL[/FONT]
Boolean
1 h
2
[FONT=Courier New, monospace]SINT[/FONT]
Short integer
8 c
3
[FONT=Courier New, monospace]INT[/FONT]
Integer
16 c
4
[FONT=Courier New, monospace]DINT[/FONT]
Double integer
32 c
5
[FONT=Courier New, monospace]LINT[/FONT]
Long integer
64 c
6
[FONT=Courier New, monospace]USINT[/FONT]
Unsigned short integer
8 d
7
[FONT=Courier New, monospace]UINT[/FONT]
Unsigned integer
16 d
8
[FONT=Courier New, monospace]UDINT[/FONT]
Unsigned double integer
32 d
9
[FONT=Courier New, monospace]ULINT[/FONT]
Unsigned long integer
64 d
10
[FONT=Courier New, monospace]REAL[/FONT]
Real numbers
32 e
11
[FONT=Courier New, monospace]LREAL[/FONT]
Long reals
64 f
12
[FONT=Courier New, monospace]TIME[/FONT]
Duration
-- b
13
[FONT=Courier New, monospace]DATE[/FONT]
Date (only)
-- b
14
[FONT=Courier New, monospace]TIME_OF_DAY [FONT=Arial, sans-serif]or[/FONT] TOD[/FONT]
Time of day (only)
-- b
15
[FONT=Courier New, monospace]DATE_AND_TIME [FONT=Arial, sans-serif]or[/FONT] DT[/FONT]
Date and time of Day
-- b
16
[FONT=Courier New, monospace]STRING[/FONT]
Variable-length single-byte character string
8 i,g
17
[FONT=Courier New, monospace]BYTE[/FONT]
Bit string of length 8
8 j,g
18
[FONT=Courier New, monospace]WORD[/FONT]
Bit string of length 16
16 j,g
19
[FONT=Courier New, monospace]DWORD[/FONT]
Bit string of length 32
32 j,g
20
[FONT=Courier New, monospace]LWORD[/FONT]
Bit string of length 64
64 j,g
21
[FONT=Courier New, monospace]WSTRING[/FONT]
Variable-length double-byte character string
16 i,g
a Entries in this column shall be interpreted as specified in the footnotes.
b The range of values and precision of representation in these data types is implementation-dependent.
c The range of values for variables of this data type is from [FONT=Courier New, monospace]-(2N-1)[/FONT] to [FONT=Courier New, monospace](2N-1)-1[/FONT].
d The range of values for variables of this data type is from [FONT=Courier New, monospace]0[/FONT] to [FONT=Courier New, monospace](2N)-1[/FONT].
e The range of values for variables of this data type shall be as defined in IEC 559 for the basic single width floating-point format.
f The range of values for variables of this data type shall be as defined in IEC 559 for the basic double width floating-point format.
g A numeric range of values does not apply to this data type.
h The possible values of variables of this data type shall be 0 and 1, corresponding to the keywords [FONT=Courier New, monospace]FALSE[/FONT] and [FONT=Courier New, monospace]TRUE[/FONT], respectively.
i The value of [FONT=Courier New, monospace]N[/FONT] indicates the number of bits/character for this data type.
j The value of [FONT=Courier New, monospace]N[/FONT] indicates the number of bits in the bit string for this data type.