Texas Instruments 990 User Manual page 116

Dx10 hdlc communications package
Hide thumbs Also See for 990:
Table of Contents

Advertisement

Applications Programming
Pascal:
WRIT4D«buffer>,<char cnt>,<did>,<sid>,<st code»
where:
<buffer>
<char cnt>
<did>
<sid>
<st code>
is the
name
of
the
calling
program's
data
b u f fer
th at con ta ins th e da ta to be se n t.
Th e
da ta buffe'r is an array in
FORTRAN
tasks
and
either an array or a character string in Pascal
tasks.
contains the
character
count.
This
is
the
number
of
characters (one byte per character)
in the data that the subroutine is to
transfer
from
the
calling
program's
data buffer to a
communications output buffer.
contains the
network
ID
of
the
destination
program or remote device.
If a calling program
in
a
TX5
secondary
provides
a
DID that is
incorrect, the data is transmitted and then
is
deleted
at
the
primary
station and an error
message is written to the
system
log
at
the
primary
station.
Validation
ofDIDs is not
performed in TX5
secondary
stations,
as
all
data
is
sent
to
the
primary station.
If a
calling program in a primary station provides a
DID that is incorrect, an error code
of
8
is
returned in the status code variable.
contains either a zero or the network ID of the
calling
program.
If this parameter contains a
zero,
the
subroutine
supplies
the
calling
program's network 10 to the variable.
is the variable to which the subroutine returns
the
status
code.
The
applications
program
should check the sta tus code that
is
re turned
and
take
appropriate
action.
The codes and
their meanings are as follows:
4-30
2270526-9701

Advertisement

Table of Contents
loading

Table of Contents