Caution – Siemens 500 NIM User Manual

Page 93

Advertising
background image

NIM Primitives

4-40

SIMATIC TIWAY I Series 500 NIM User Manual

Series 500 NIM Primitive Descriptions (continued)

Symbol

Value

Definition

HH

Attached device operational status

XX

Number of block writes not completed due to error

BB

Block numbers not processed due to error

!

CAUTION

Blocks not processed due to error (specified by BB) may have been partially
written before a failure occurred. Valid blocks will complete without returning a
Primitive error.

Availability: Releases 1.1, 2.1, 2.2, and 3.0

The block data acquisition Primitives allow predefined blocks of different
data types to be accessed with a single Primitive without re-defining the
blocks in each transaction. The Define Block Primitive (50) allows the
random blocks to be specified. The Gather Block Primitive (51) collects the
data from specific blocks. The Write and Gather Block Primitive (52)
combines the functions of the Write Block Primitive (30) and the Gather
Block Primitive (51).

NOTE: The block definitions within the NIM are destroyed in the event of a
power loss or a hardware reset. This includes an HDLC DISC (disconnect
from Primary) command. Any initialization or reinitialization procedures
must use the Define Block Primitive to re-define the data acquisition blocks.

Define Block Primitive – Code 50. The define block Primitive specifies
up to 32 random blocks of data elements. Refer to Table 4-5 for the
allowable data element location (address) ranges. The blocks are referenced
by number, ranging from 1 to 20 (hex). A block, once defined, can be
re-defined to a different data element type and location by simply specifying
that block number, and then providing the required information for a new
block. A block can be restored to the initial state of “undefined” by setting
the NNNN field to zero.

Request: LLLL 50 CC TT NNNN AAAA

(repeated)

Block Data
Acquisition
Primitive Codes 50,
51, and 52

Advertising