Host command set reference – Siemens SIMATIC TIWAY 1 User Manual

Page 114

Advertising
background image

HOST COMMAND SET REFERENCE

UNILINK HOST ADAPTER

5–29

USER MANUAL

oo

The macro options byte, which is bit mapped as follows:

0

1 = Automatically Enable For Execution

1 = Repetitive Macro

1

1 = Freeze Macro and Response On Exception

2

0 = Set Exception Flag On First Response

3

Bits 4–7 Are Unused

4

5

6

7

MSB

LSB

0 = Leave Macro Disabled

0 = Non–repetitive Macro

0 = Do Not Freeze Macro and Response On

1 = Do Not Set Exception Flag On First Response

Exception

Figure 5–7

Macro Options Byte

Bit 0 when set to a one will automatically enable the
macro for execution and will reset the MRSW to zero.
When Bit 0 is set to zero, the MRSW will be set to 8001
hex, indicating that the macro is disabled. If you set Bit 0
to one (auto-enable) and the associated secondary device
is not in the secondary log, the ERROR RESPONSE will
be returned indicating that the secondary is offline.

Bit 1 when set to a one defines the macro to be repetitive
and when set to a zero defines the macro to be
non-repetitive. Repetitive macros are automatically
reissued by the HIU as long as they are enabled. Each
new response is compared to and stored in place of the
previous response. If a difference is found between the
two responses, the macro’s exception flag is set.
Non-repetitive macros are only issued once after they
are enabled. When the macro response is received, the
non-repetitive macro sets its exception flag and
automatically disables itself.

Advertising