Technical data

6
907 KP 95 / Issued: 09.97
CEs
DSPIN READ DSP FROM THE AF100 COUPLER 07 KP 95
Description
The function block DSPIN reads a DSP (data set periph-
eral) from the AF100 coupler 07 KP 95 (Advant Fieldbus
100 coupler). An other station sends this DSP over the
AF100 bus. The function block DSPIN is similar to the
Element Receiving DSP of the Advant controllers.
The inputs #NB, SM through #NR, SR define the com-
position of the DSP. The inputs #ID and #ST define the
definite identification of the DSP on the AF100 bus. For
each bus, this identification may be used only by one
DSPOUT block (or Sending DSP for the Advant control-
ler), but by several DSPIN blocks (or Receiving DSPs for
the Advant Controllers).
The DSP, which is read by the DSPIN function block, is
written by an other station with the DSPOUT function
block (or sending DSP element). The values #ID, #ST,
#NB, #NI, #NIL, #NR of the DSPIN function block must be
equal to the values #ID, #ST, #NB, #NI, #NIL, #NR of the
corresponding DSPOUT function block (sending DSP
element).
Important note:
During program modifications on running programs the
DSPIN function block must neither be deleted nor added,
and the inputs of the DSPIN function block must not be
altered.
The enabled function block (input EN = 1) reads a DSP
from the AF100 coupler 07 KP 95.
EN BINARY
Enable block processing. Values:
EN = 0: The block is not processed.
The outputs VAL and ERR
are reset to zero.
EN = 1: The block is processed.
#ID DIRECT CONSTANT
At the input #ID the identifier of of the DSP is defined. This
identifier results together with the input #ST into the defi-
nite identification of the DSP on the AF100 bus (for status
of an other station see input #ST).
Valid values: 1# <
ID < 50
Important note:
The values #ID, #ST, #NB, #NI, #NIL, #NR must be equal
to the values #ID, #ST, #NB, #NI, #NIL, #NR of the corre-
sponding DSPOUT function block or the corresponding
sending DSP element
Valid values: #NB + #NI + #NIL + #NR <
8 and
#NB + #NI + #NIL + #NR >
1
#NB DIRECT CONSTANT
At the input #NB (number of booleans), the number of
packed binary values (32 values) of the DSP is defined.
Valid values: 0 <
#NB < 8
SM BINARY
At the input SM, the first flag of the binary flag range is
given, where the block stores the packed binary values.
Example: #NI = 2 and SM = M 01,00
the packed binary values (64 values)
are stored in the flag range from
M 01,00 to M 04,15.
#NI DIRECT CONSTANT
At the input #NI (number of integer), the number of words
of the DSP is given.
Valid values: 0 <
#NI < 8
SMW WORD
At the input SMW, the first flag of the word flag range is
given, where the block stores the word values.
#NIL DIRECT CONSTANT
At the input #NIL (number of integer long), the number of
double words of the DSP is given.
Valid values: 0 <
#NIL < 8
SMD DOUBLE WORD
At the input SMD, the first flag of the double word flag
range is given, where the block stores the double word
values.
#NR DIRECT CONSTANT
At the input #NR (number of real), the number of real val-
ues of the DSP is given.
Valid values: 0 <
#NR < 8
SR DOUBLE WORD
At the input SR, the first flag of the double word flag range
is given, where the function block stores the real values.
For further processing of the real values (IEEE 754), they
must be converted into double word values with the
REALDW function block.
#ST DIRECT CONSTANT
At the input #ST the station address is defined. This ad-
dress results together with the input #ID into the definite
identification of the DSP on the AF100 bus.
Valid values: 1 <
#ST < 80
With #ST = 128, #ID = station address of the desired sta-
tion (valid values 1...80), #NB = #NI = #NR = 0 and #NIL =
1 it is possible, to interrogate the status of the station us-
ing the address #ID. The status (32 bits) is then available
under SMD. The status is coded binary and equals the
DIAG output of the AF100 function block.