beautypg.com

Data types – Bird Technologies BDS-Manual User Manual

Page 94

background image

80

Data Types

Table 5-59 CIP™ Elementary Data Types

Table 5-60 DATE_AND_TIME Encoding

Note: Range of Date: D#1972-01-01, the start of the Coordinated Universal Time (UTC) era, to D#2151-06-
06 (a total range of 65536 days).
Note: Range of Time: TOD#00:00:00.000 to TOD#23:59:59.999 to a resolution of 1 millisecond.
Note: DATE_AND_TIME is from DT#1972-01-01-00:00:00.000 to DT#2151-06-06-23:59:59.999.

Table 5-61 SHORT_STRING Encoding

Table 5-62 SHORT_STRING Example

Data Type Name

Data Type Description

BOOL

8-bit OCTET. Logical Boolean with values TRUE (1) and FALSE (0).

SINT

Signed 8-bit integer value.

INT

Signed 16-bit integer value.

DINT

Signed 32-bit integer value.

USINT

Unsigned 8-bit integer value.

UINT

Unsigned 16-bit integer value.

UDINT

Unsigned 32-bit integer value.

REAL

32-bit floating-point value.

BYTE

Bit string (8-bits).

WORD

Bit string (16-bits).

DWORD

Bit string (32-bits).

SHORT_STRING

Character sting (1 byte per character, 1 byte length indicator).

DATE_AND_TIME

Date and time of day.

Octet

(Byte)

Number

1

st

2

nd

3

rd

4

th

5

th

6

th

0LSB –
Time

1LSB –
Time

2LSB –
Time

3LSB –
Time

0LSB –
Date

0LSB -
Date

Data Type

Description

Struct of:
USINT

Character count – the number of characters contained in the string.

ARRAY of:
SINT

String data.

Contents

Character Count

String data

0LSB

0LSB

Character

Count

0LSB

1LSB

2LSB

3LSB

4LSB

5

‘H’

‘E’

‘L’

‘L’

‘O’