Internal ANY-Format

Top 

 

For specification of an ANY 10 bytes are used internally.

Byte 0 is always 10h.

Byte 2 and 3 specifies of how many elements the any consists.

Byte 4 and 5 specifies the DB-No. If the data are not in a DB a 0 will be displayed here.

Byte 6 specifies the memory area.

Byte 7 till 9 code the starting address.

These four bytes together correspond to the simple pointer-format.

 

Identification of the data types: (Byte1)

 

$01              BOOL

$02              BYTE

$03              CHAR

$04              WORD

$05              INT

$06              DWORD

$07              DINT

$08              REAL

$09              DATE

$0A              TIME_OF_DAY

$0B              TIME

$0C              S5TIME

$0E             DATE_AND_TIME

$13              STRING

$17              BLOCK_FB

$18              BLOCK_FC

$19              BLOCK_DB

$1C              COUNTER

$1D              TIMER