Technical data

Linkage with PLC
164 VIPA GmbH CP486 00/14
6.4.3.8 Read Status of Process Image
FUNCTION CP_stat_PA : BYTE;
Return: process image counter
This function calls the driver function "status call process image". This function returns the process
image counter.
6.4.3.9 Read Area of Process Image
FUNCTION CP_read_PA(typ : BYTE; adr, len : WORD; p : POINTER) : INTEGER;
typ: data type process image (see Tab. 6)
adr: address in the area or absolute address
len: number of data (bytes or words) depending on the type
p: pointer to a data buffer in the storage
Return: process image counter
This function calls the driver function "read a process image area". 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 the driver has detected an error during the 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.