Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 117
6.3.2.3 Handling Module FETCH (FB5, Relative Bank Number: 0):
This handling module transfers the read job to the CP486. For identification purposes a job number
is also sent to the CP486. 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#FB5
BSTNAME #FETCH
BIB
BEZ #INSS D:KY
BEZ #A-NR D:KY
BEZ #DOSP D:KY
BEZ #LAE D:KF
BEZ #ANZW D:KY
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 KY If direct parameterization left byte has the job number
(1..127) and right byte the function number for CP-driver.
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.
DOSP: D KY DOS-parameter which is also transferred at certain functions.
It can be a handle, an access or a drive-number.
LAE: D KF Number of data words to be read (corresponding to the passed
function no. for the DOS-driver, e.g. number of data which are
to be read from a file
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 FETCH status:
Bit .0 =0
.1 job runs (job transferred without errors)
.2 =0
.3 job finished with error (job was not transferred)
4F-Nr. 2raisedto0
2raisedto1
2raisedto2
2raisedto3
Error numbers are dual encoded.
Error number 1 interface occupied by PLC (job runs)
6 interface occupied by CP
PAFE: A BY Markerbyte, in which the PAFE-message is transferred to
PLC program (permitted 0...255)