Siemens 500 NIM User Manual

Page 99

Advertising
background image

NIM Primitives

4-46

SIMATIC TIWAY I Series 500 NIM User Manual

Series 500 NIM Primitive Descriptions (continued)

Write and Gather Record Primitive – Code 57. The Write and Gather
Record Primitive specifies which records (as defined with Define Record
Primitive 55) will be read. It also allows you to replace any contiguous data
element locations. The Records are specified by record numbers from 1 to 20
(hex). The total number of bytes returned by the record(s) must not cause
the response to exceed the maximum frame length.

Following the record numbers are the descriptors associated with the write
function. The write function is performed before the gather operation. The
response returns the data associated with the requested records by starting
with the lowest number record and increasing to the highest record. A data
record or data type separator is not provided in the response.

Request: LLLL 57 XX CC TT AAAA DD ... DD

(repeated XX times)

(repeated)

Symbol

Value

Definition

XX

Number of records requested

CC

Record numbers requested

TT

Data element type

AAAA

Data element location

DD

Data

Maximum DD ranges may vary depending on the number of records
specified for the read function.

Response: LLLL 57 HH XX CC DD ... DD

(repeated XX times)

(repeated)

Advertising