10. SPM | 10.3 - Addressing | 129
Data type
Description
Value range
REAL
real number
±1.18E-38 bis 3.4E38 (with ap
prox. 7 significant digits)
LREAL
long real number
±1.18E-308 bis 3.4E308 (with
approx. 16 significant digits)
TIME
time duration
1 ms to ±2
47
ms
DATE
date (only)
1.1.1900 to 31.12.2099
TIME_OF_DAY
time of day (only)
00:00:00.00 to 23:59:59.99
DATE_AND_TIME
Date and time of day
see DATE and TIME_OF_DAY
STRING
variable-long charac
ter string
max. 255 characters (ISO)
WSTRING
variable-long wide
character string
max. 255 characters (Uni
code)
BYTE
bit-sequence 8
…
WORD
bit-sequence 16
…
DWORD
bit-sequence 32
…
LWORD
bit-sequence 64
…
10.3 Addressing
The SPM table can be addressed via different counts. Bit addressing is used
to count the individual bits (MX). Byte addressing is used to count individual
bytes (MB), whereby, e.g. bits MX0–MX7 are identical to byte MB0.
Code
Data type
Address example
%ML
LWORD
L21
%MD
DINT
D42–43
%MW
WORD
W84–87
%MB
BYTE
B168–175
%MX
BOOL (bit)
X1344–1407