November 20, 2023

#172 - Reminder about Data Types and Memory Addresses in Siemens

Bit streams:

BOOL, 1 bit, %M0.0

BYTE, 8 bits, %MB0

WORD, 16 bits, %MW0

DWORD, 32 bits, %MD0

LWORD, 64 bits, %M0.0

Char:

CHAR, Byte, %MB0


Integer:

INT, Word, %IW0

DINT, Double, %ID0


Time:

TIME, Double, %ID0 (time or timer value for ms)


Date and Time:

LDT, Long, %I0.0 (long data and time)

Time_Of_Day, Double, %ID0

Date, Word, %IW0

No comments:

Post a Comment