1 allocate source id, Host command set reference – Siemens SIMATIC TIWAY 1 User Manual

Page 105

Advertising
background image

HOST COMMAND SET REFERENCE

UNILINK HOST ADAPTER

5–20

USER MANUAL

5.4.1

Allocate Source Id — 10

The ALLOCATE SOURCE ID command establishes a source identification
number that maintains the independence of task resources. This number is the
link between the host applications task and the associated macro resources.
This command can be issued at anytime after the Configure Adapter command,
code 20, has been processed. However, it must be issued before a macro can be
defined. Only thirty–two unique Source Ids may be active at a time. Memory
management is aided with Source Ids because they group resources so that
these resources can be released simultaneously. Once the resources are
released, the memory will be packed to free space for future memory allocation
requests.

Command:

10 ss oo

Response:

10 ss oo

Usage:

OPERATION

Modes:

MHIU, HIU

Parameters:

ss

The Source Id. A unique number, ranging from 01 to FE (1 to 254
decimal), used to identify each task or process using the HIUs
resources.

oo

Allocate/Deallocate Code

00 = Allocate the Source Id, clear all resources allocated to that
Source Id, if any, and put the Source Id in the active list.

01 = Deallocate the Source Id, clear all the resources allocated to
this Source Id, if any, and take the Source Id out of the active list.

Advertising