Chapter 8 CIP Object
8-5
8.2 Data Type
This section will provide an overview of the supported data types by objects.
Data Type Description
BOOL False(16#00) or True(16#01)
SIGNED
INTEGER
SINT(1 byte), INT(2 bytes), DINT(4 bytes), LINT(8 bytes)
Number 1st 2nd 3rd 4th 5th 6th 7th 8th
SINT 0LSB
INT 0LSB 1LSB
DINT 0LSB 1LSB 2LSB 3LSB
LINT 0LSB 1LSB 2LSB 3LSB 4LSB 5LSB 6LSB 7LSB
Ex: DINT value = 16#12345678
Number 1st 2nd 3rd 4th
DINT 78 56 34 12
UNSIGNED
INTEGER
USINT(1 byte), UINT(2 bytes), UDINT(4 bytes), ULINT(8 bytes)
Ex: UDINT value = 16#AABBCCDD
Number 1st 2nd 3rd 4th
UDINT DD CC BB AA
STRING
ASCII CODES, 1 or 2 bytes/words
STRING: 2 bytes character count + 1 byte character
Contents (Charcount) Contents (String contents)
STRING 04 00 4D 69 6C 6C
STRING2: 2 bytes character count + 2 byte character
Contents (Charcount) Contents (String contents)
STRING2 04 00 4D 00 69 00 6C 00 6C 00
SHORT_STRING: 1 bytes character count + 1 byte character
Contents (Charcount) Contents (String contents)
STRING 04 4D 69 6C 6C
Fixed LENGTH
BIT STRING
BYTE (1 byte), WORD (2 bytes), DWORD (4 bytes), LWORD (8 bytes)
1st 2nd 3rd 4th 5th 6th 7th 8th
Byte 7…0
WORD 7…0 15…8
DWORD 7…0 15…8 23…16 31…24
LWORD 7…0 15…8 23…16 31…24 39…32 47…40 55…48 63…56