Siemens SIMATIC TIWAY 1 User Manual page 51

Unilink host adapter
Hide thumbs Also See for SIMATIC TIWAY 1:
Table of Contents

Advertisement

OPERATION AND APPLICATION
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.
MRSW Values
(hex)
0000
0001
to
7FFF
8000
to
FFFF
Table 2–3 MRSW Values
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.
2–41
UNILINK HOST ADAPTER
USER MANUAL

Advertisement

Table of Contents
loading

Table of Contents