Host command set reference – Siemens SIMATIC TIWAY 1 User Manual
Page 129
HOST COMMAND SET REFERENCE
UNILINK HOST ADAPTER
5–44
USER MANUAL
Macro Linking Procedure
1.
Allocate two macro buffers. The trigger response buffer will be at least
eight bytes in length for Primitive 20 and at least ten bytes for Primitive
A0. The action macro command buffer must be greater than or equal to
the size of the trigger macro response buffer plus 2 for Primitive 20 or
plus 4 for Primitive A0. The action response buffer must be at least four
bytes in length.
2.
Define one macro buffer with the following features.
a.
Either repetitive or non-repetitive.
b.
No auto enable.
c.
Send Primitive macro type.
d.
Either Primitive 20 or A0 with the length of data to transfer.
3.
Define the other macro buffer with the following features.
a.
Non-repetitive.
b.
No auto enable.
c.
Send Primitive macro type.
d.
Either Primitive 30 or B0.
4.
Issue the LINK MACRO command.
5.
Enable the trigger macro for execution.
Example:
Allocate Source Id 21 —
Command: 10 21 00
Allocate two macro buffers —
Command: 13 21 0010 0020 0030 0010
Response: 13 21 01 02