Technical data

Linkage with PLC
162 VIPA GmbH CP486 00/14
6.4.3.6 Read Job Status
FUNCTION CP_stat_AG(a_nr : INTEGER; p: POINTER): INTEGER;
a_nr: job number of the job to be tested
p: pointer to date or data block in AT-memory
(to be preset only for read jobs with single and block element)
for data type bit, semaphore or byte pointer to a byte
for data type word, pointer to a word
for data type doubleword, pointer to a doubleword
for data type block, pointer to buffer for data block
Return: job status or negative number if there is an error
This function calls the driver function "read job status". 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.