Technical data
Linkage with PLC
CP 486 ⋅ 00/14 VIPA GmbH 145
6.4 CP486 Jobs for PLC (Functions for Bank 2, 3 and 7)
6.4.1 Overview
The driver program CP386COM serves jobs initiated by the PLC, as well as jobs initiated by the
CP386. The driver supplies a series of functions for the banks 2, 3 and 7. With these functions data
can be read from the PC or written to the PC respectively from a running application on the CP486.
All functions are called by means of software interrupt 78h.
Tranfer and return of parameters is realized exclusively in the processor registers when calling the
interrupt. Register assignment is included in the description of functions. Interfaces are
implemented for Turbo-Pascal, Turbo-C and C++, as well as Microsoft-C. Also functions for
reading and writing of data to the PC, status call and abort functions are realized. Functios are
differed by exchanging single elements and data blocks when data are transmitted. Functios are
handled as "jobs". When calling a function, a job number is returned which is used to call the
processing status. Up to 127 jobs can processed at the same time in each of banks 2 and 3.
Following functions are available:
Bank Function Function
used number
none $00 status call
2 $21 read a single element from the PC
2 $21 read a block from the PC
2 $20 status call of read job
2 $28 abort all read jobs
3 $31 write a single element into the PC
3 $31 write a block into the PC
3 $30 status call of write job
3 $38 abort all write jobs
7 $70 status call for process image
7 $71 read a process image area