Technical data
Linkage with PLC
CP 486 ⋅ 00/14 VIPA GmbH 119
6.3.2.4 Handling Module RECEIVE (FB6, Relative Bank Number: 0):
This handling module transfers a data block of up to 504 words from the CP486 to a DB. Before
calling the RECEIVE module, the CP486 must be informed by means of the FETCH handling
module about data which it requires. For identification purposes a job number is also sent to the
CP486. This job number is returned together with the data.
The handling module supplies the result by means of a display word in a marker word to the
application program. Parameterization errors are signalled via a marker byte. The handling module
is directly and indirectly parameterizable:
Module#FB6
BSTNAME #RECEIVE
BIB
BEZ #INSS D:KY
BEZ #A-NR D:KF
BEZ #ANZW D:KY
BEZ #ZT/N D:KY
BEZ #ZANF D:KF
BEZ #ZLAE D:KF
BEZ #PAFE A:BY
Transfer parameters:
INSS: D KY IN Code if direct or indirect parameterization
= 0 direct parameterization via formal operands
>< 0 indirect parameterization - transfer parameters are filed
in opened DB
SS number of basic bank (must be divisible by 8)
A-NR: D KF If direct parameterization, A-NR has the job number (0..127).
For a number 1...127 it is checked whether data being prepared
by the CP, have the same job number. Data are taken over
only if they have the same job number. In case of job number 0,
data are taken over by the CP in any case.
If indirect parameterization, A-NR has the DW-No, from which
on the parameters are in the open DB. Thereby the content
of the parameter is evaluated as word.
ANZW: D KY left byte: reserve
right byte: contains the MW-no. where the display word is
to be stored (permitted are MW0..MW198)
Display word can have following information at SEND status:
Bit .0 =0
.1 job runs (still no data received from the CP)
.2 job finished without error (data are in DB)
.3 job finished with error (error no. in Bit 4...7)
4F-Nr. 2raisedto0
2raisedto1
2raisedto2
2raisedto3
Error numbers are dual encoded.
Error number 2 no data existent
3 no data present for this job
4 not defined job status on the CP
6 interface occupied by the CP