Siemens SIMATIC TIWAY 1 User Manual page 127

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

Advertisement

5.4.13
Link Macro — 1C
The LINK MACRO command links two macros together to form an
"unconditional store and forward" command sequence that enables host
initiated secondary-to-secondary communications. The first macro reads data
from a secondary device and stores it in the second macro buffer. It then triggers
the second macro to write the response to another secondary. The two macros
are referred to as the trigger macro and the action macro respectively.
As long as a link exists between the two macros, the action macro is only
executed when the trigger macro is enabled and has triggered the action macro.
Disabling the trigger macro automatically disables the action macro even if the
action macro has started execution. If the action macro has been queued for
execution before it is disabled, it will complete execution, but the response will
be dropped.
Command:
Response:
Usage:
Modes:
Parameters:
ss
b1
b2
oo
vvvv
Option–00 = Terminate link. This option terminates the link between the
Option–01 = Unconditional Store and Forward (USF). This special link
UNILINK HOST ADAPTER
USER MANUAL
HOST COMMAND SET REFERENCE
1C ss b1 b2 oo (vvvv...)
1C ss b1 b2
OPERATION
MHIU, HIU
The common Source Id. The linked macros must have the same
Source Id.
The trigger macro buffer number.
The action macro buffer number.
The option number.
The option parameter. This field will be used for future
enhancements.
The following describes the options and their associated
parameter values.
macros specified in the b1 and b2 fields.The trigger macro must
be disabled before the link can be terminated.
requires a trigger macro using Primitive 20 or A0 to read the data
from a secondary and an action macro using Primitive 30 or B0 to
write the data read to another secondary.
Each time the trigger macro completes a read, it is disabled and
its data is moved into the action macro buffer to create a valid
write Primitive and the action macro is enabled. If the trigger
macro receives an error from the secondary, the exception flag
5–42

Advertisement

Table of Contents
loading

Table of Contents