Siemens SIMATIC TIWAY 1 User manual Download

Transcript
4.9.12
Block Data Acquisition Primitive Codes 50 51 52
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) specifies the random blocks. The Gather Block Primitive
(51) collects the data from specific blocks. The Write and Gather Block Primitive (52)
combines these functions.
NOTE
The block definitions are destroyed in the event of a power loss or a hardware reset. This includes an HDLC DISC (issued by some Primaries during a Disconnect Secondary command). Any initialization or reinitialization procedures must use the Define Block Primitive to re-define the
data acquisition blocks.
4.9.12.1
Define Block Primitive – Code 50
The Define Block Primitive specifies up to 32 random blocks of data elements. See Table
4Table 5 for the allowable data element location 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)
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
HH
TIWAY 1 Ti505 NIM User Manual
Value
Definition
Attached device operational status
NIM Primitives
4-33