Siemens 500 NIM User Manual

Page 94

Advertising
background image

NIM Primitives

4-41

SIMATIC TIWAY I Series 500 NIM User Manual

Symbol

Value

Definition

CC

Block number (1–20 hex)

TT

Data element type

NNNN

Number of locations

AAAA

Data element location

Response: LLLL 50 HH

Symbol

Value

Definition

HH

Attached device operational status

Gather Block Primitive – Code 51. The Gather Block Primitive specifies
which blocks (as defined by the Define Block Primitive 50) will be read. The
blocks are specified through a 32-bit mask (EEEEEEEE).

Each bit position in the bit mask corresponds to a block that was defined
with Primitive 50, Define Block. A bit set to 1 indicates that the block is to
be returned. A bit set to 0 means that the block will not be returned. You
should not request more data than can be returned in a maximum length
Primitive frame. The response will return the data associated with the
requested blocks, beginning with the lowest block number and increasing to
the highest block number. A data block separator is not provided in the
response.

Request: LLLL 51 EEEEEEEE

where EEEEEEEE is 32 bits, defined as:

Block Number 1 (hex)

Block Number

20 (hex)

. . .

. . .

MSB

LSB

Response: LLLL 51 HH EEEEEEEE DD ... DD

(repeated)

Advertising