beautypg.com

Operation and application – Siemens SIMATIC TIWAY 1 User Manual

Page 51

background image

OPERATION AND APPLICATION

UNILINK HOST ADAPTER

2–41

USER MANUAL

You can request more than one buffer at a time; however, be sure that the total
combined length of each buffer response does not exceed the maximum message
length, or the ERROR RESPONSE will be returned. The Primitive data must fit
into one host response I-Frame.

The secondary address, MRSW, Primitive data length, and the Primitive data
will be returned for each buffer number requested that meets the response type
condition. Specifying buffer number 00 is a special case that ignores the value in
the response type byte. In this case, the HIU will return the buffer number and
buffer data for the first buffer that has its exception flag set. This allows your
host application program to receive any exceptions as they occur.

Table 2–3 describes the meaning for the different values of the MRSW. If the
macro terminated abnormally, the exception flag will be set and the
Termination Code will reflect the error. The exception flag will also be set if the
macro is explicitly disabled or the secondary device has been disconnected by a
host computer. Refer to Chapter 6 for a more detailed explanation of each
termination code.

Table 2–3 MRSW Values

MRSW Values

(hex)

Description

This macro has not been executed
since the last time it was
enabled.

The number of times a repetitive
macro response has been updated.

Termination Code – the macro is
disabled due to either an error, an
exception, or an explicit disable.

0000

0001

8000

to

7FFF

to

FFFF