Technical data

Linkage with PLC
176 VIPA GmbH CP486 00/14
6.4.4.7 Abort All Jobs of a Bank
int CP_cncl_AG(int a_nr);
a_nr: code for bank 2 or 3
$00 abort all still active jobs of bank 2
$80 abort all still active jobs of bank 3
This function calls the driver function "abort all jobs of a bank". The registers are preset according
to the transferred parameters when calling up. Meaning of the parameters is described in the section
of driver function. If there was an error during the job execution, then the respective error message
(negative number) is returned as function value. If the function can be executed without errors, i.e.
all jobs have been aborted, then 0 is returned.
6.4.4.8 Read Status of Process Image
byte CP_stat_PA();
Return: process image counter
This function calls the driver function "status call process image". The function returns the process
image counter.
6.4.4.9 Read Area of Process Image
int CP_read_PA(byte typ, word adr, word len, void far *p);
typ: data type single elements (see Tab. 5)
bst: module number
adr: address in module or absolute address
len: number of data (bytes or words) depending on the type
p: pointer to data buffer in AT-memory
Return: process image counter
This function calls the driver function "read an area of process image". The registers are preset
according to the transferred parameters when calling up. Meaning of the parameters is described in
the section of driver function. If there was an error during the job execution, then the respective
error message (negative number) is returned as function value. If the function can be executed
without errors, the current value of the process image counter is returned.