Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 175
6.4.4.6 Read Job Status
int CP_stat_AG(int r, void far *p);
a_nr: job number of the job to be tested
p: pointer to date or data block in AT-memory
(only for read jobs with single and block element
pointer to a byte for data variables bit, semaphore or byte
pointer to a word for data type word
pointer to a doubleword for data type doubleword
pointer to buffer for data block for data type block
Return: job status or negative number if error
This function calls the driver function "status call for job". 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
job status (see tab. 5) is returned.