Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 115
6.3.2.2 Handling Module CONTROL (FB4, Relative Bank Number: 0/1):
This handling module outputs the status of a write or read job. 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#FB4
BSTNAME #CONTROL
BIB
BEZ #INSS D:KY
BEZ #A-NR D:KF
BEZ #DOSP D:KY
BEZ #RWAW 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 KF If direct parameterization right byte has the job number (0..127)
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.
For job number 1...127, the status of the suitable job is read.
For job number 0, the status of the actually running or
finally executed job is read.
DOSP: D KY left byte: reserve
right byte: contains MW-no., where DOS-parameter
is to be stored.
RWAW: D KY RW = Control for read job in bank 0
= Control for write job in bank 1
AW contains the MW-no. where the display word is
to be stored (permitted are MW0..MW198)
Display word can have following information:
Bit .0 receive meaningful
.1 job runs (job transferred without errors)
.2 finished without error
.3 job finished with error
4F-Nr. 2raisedto0
2raisedto1
2raisedto2
2raisedto3
Error number is dual encoded.
Error number 4 not defined job status on the CP
5 no job under this job number
6 interface occupied by CP
Bits 8-15 contain a probable error number of the CP486
PAFE: A BY Markerbyte, in which the PAFE-message is transferred to