ProSoft Technology AN-X-PB User Manual

Page 42

Advertising
background image

Page

36

AN-X-PBSLV

January 2008

The blocknumber can range from 1 to 10.

The update type must be Timed, the block updates at regular time
intervals. The type is followed by an update time in milliseconds, from 5
to 16383 ms.

Some examples:

, , block_id, 1, timed, 100

, , block_id, 1, timed, 5000

The block_id line is followed by from 1 to 64 data definition lines that
specify the contents of the produce block. The format is

, , offset (optional), tagname, data operation, count, node, area/offset

The offset is the byte offset in the produce block. It can range from 0 to
1399, but the upper limit also depends on the data type. For example, the
maximum offset for data type U16 (see below) is 1398.

The offset is optional but if it is included it defines the location of the
item in the produce block. Subsequent items with no offset in the
definition are allocated after the item with the offset. For example, if
you assign an offset of 1320 to an item with type U8, count 1, the next
item (with no explicit offset) is automatically assigned offset 1321.

TIP

Don’t use offsets unless necessary. AN-X will assign all data locations
automatically. If you add data later, you won’t have to change any
offsets.

The tagname can have from 1 to 47 alphanumeric characters. It has to
start with a letter or an _ (underscore). It cannot include spaces or
punctuation (especially commas). Consume blocks use the tagname to
identify the start of a specific piece of data.

Tagnames must be unique within a produced block.

The data operation describes how the item is processed when it is
transferred to the produced block. The data operation can be one of the
following:

Operation

Description

U8

Copy one byte to one byte

U16

Copy two bytes to two bytes

U16_SW

Copy and swap and two bytes to two bytes

U32

Copy four bytes to four bytes

U32_SW

Copy and swap four bytes to four bytes (first byte is

Advertising