beautypg.com

4 allocate macro storage buffers, Host command set reference, Figure 5–6 source id/macro buffer relationship – Siemens SIMATIC TIWAY 1 User Manual

Page 110

background image

HOST COMMAND SET REFERENCE

UNILINK HOST ADAPTER

5–25

USER MANUAL

5.4.4

Allocate Macro Storage Buffers — 13

The ALLOCATE MACRO STORAGE BUFFERS command allocates buffers for
macro storage. This command can be repeatedly issued, and the HIU will
continue to add buffers until the HIU memory is either used or a total of 254
macro buffers have been allocated. Figure 5–6 shows the relationship between
Source Id numbers and macro buffers. These buffers remain allocated to the
Source Id number until an ALLOCATE SOURCE ID command is issued to free
them up.

Source ID #1

(OE)

Source ID #2

(1A)

Source ID #32

(E5)

Macro Buffer

#1

Macro Buffer

#35

Macro Buffer

#63

Macro Buffer

#87

Macro Buffer

#2

Macro Buffer

#3

Macro Buffer

#80

Macro Buffer

#97

Macro Buffer

#109

Macro Buffer

#4

Macro Buffer

#33

Macro Buffer

#60

Up to 32
unique
source
IDs

Up to 254

Macro
Buffers

Figure 5–6 Source Id/Macro Buffer Relationship

Command:

13 ss [xxxx rrrr]

Response:

13 ss ([bb])

Usage:

OPERATION

Modes:

MHIU, HIU

Parameters:

ss

The Source Id number previously defined with the ALLOCATE
SOURCE ID command.

xxxx

The length of the macro command buffer in bytes.

rrrr

The length of the macro response buffer in bytes.

NOTE