ProSoft Technology AN-X-PB User Manual

Page 44

Advertising
background image

Page

38

AN-X-PBSLV

January 2008

Consume Blocks

Each AN-X can have up to 10 consume definition blocks. A consume
block tells the consuming AN-X the source of the data (IP address and
produce block number), the location of the data within the produced
block and the amount of data to consume, how to process that data, and
where to write the consumed data.

The destination PROFIBUS node data must be writable by the AN-X
that consumes the data. For example, if an AN-X has active PROFIBUS
slaves at nodes 1, 2 and 3, it can write the consumed data only to
PROFIBUS input data on nodes 1, 2 and 3.

The producer_ip line identifies the AN-X that is producing the data. The
format is

, , producer_ip, IP address

Example:

, , producer_ip, 192.168.0.9

The block_id marks the beginning of the definition of a block of
produced data. The format of the block_id line is

, , block_id, blocknumber, timeout

The blocknumber is the block number on the producing AN-X and can
range from 1 to 10.

The timeout can range from 5 to 16383 ms. If the produced block does
not update within the timeout period, AN-X logs an error in the bridging
log. Select Log Files/Bridging Log to view the log.

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

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

The offset is the byte offset in the produce block. The minimum offset is
0. The maximum offset is 1399 but also depends on the data operation.

NOTE: If the offset is included, it takes precedence over the tagname.

As an example of where an offset is sometimes useful, if a produce block
produces a 16 bit value with a tag name, most consumers use the entire
16 bit value via the tag name, but one of the consumers that is interested
in just the upper byte can obtain the upper byte using the offset.

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).

AN-X uses the tagname to locate the produced data. The combination of
producer IP address, block number and tagname (or offset) specifies the
start of the data to be consumed.

The data operation can be one of the following

Advertising