10. SPM | 10.3 - Addressing | 170
Data type Description Value range
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 byteMB0.
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