Beckhoff Automation GmbH & Co. KG TX1200 — 7.1.1.4 DWORD

Reference programming A BOOL type variable is true, if the least significant bit in the memory is set (e.g. 2#00000001 ). If no bit is set in the memory, the variable is FALSE (2#00000000). All other values canґt be interpeted accurately and be displayed (***INVALID: 16#xy *** in the Online View). Such problems may appear, if for example overlapped memory ranges are used in the PLC program. Example: The boolean variable is in the same memory range as the byte variable. PROGRAM MAIN VAR bBool AT%MB0 : BOOL; nByte AT%MB0 : BYTE := 3; bIsTRUE : BOOL; END_VAR IF bBool THEN bIsTRUE := TRUE; ELSE bIsTRUE := FALSE; END_IF Online display after program start 7.1.1.2 BYTE Integer data type.

7.1.1.3 WORD Integer data type. 7.1.1.4 DWORD Integer data type. TX1200 183 Version: 1.3 Type Lower bound Upper bound Memory use BYTE 0 255 8 Bit Type Lower bound Upper bound Memory use WORD 0 65535 16 Bit Type Lower bound Upper bound Memory use DWORD 0 4294967295 32 Bit