Programming the FM 351
6-9
FM 351 Positioning Module
C79000-G7076-C351-02
Job Status
You can check the status of job execution using the return value RET_VAL and the
JOBBUSY activity bit in the channel DB. You can evaluate the status of a single
job based on the trigger, done, and error bits of the job.
RET_VAL JOBBUSY Trigger bit
_EN
Done bit
_D
Error bit
_ERR
Job active 1 1 1 0 0
Job completed
without error
0 0 0 1 0
Job completed
with error
–1 0 0 1 1
Write job
aborted
–1 0 0 0 1
Response to Errors
If incorrect data were written during a write job, the channel returns the message
DATA_ERR = 1 in the channel DB. If an error occurs in communication with the
module during a write or read job, the cause of the error is entered in the
JOB_ERR parameter in the channel DB.
• Error in a write job:
If an error occurs in a job, the trigger bit is reset and the error bit (_ERR) and
the done bit (_D) are set. The trigger bit is also reset but only the error bit
(_ERR) is set for all write jobs still pending. Any pending write jobs are
canceled, since one job may depend on another.
The pending read jobs continue to be processed. JOB_ERR is set again for
each job.
• Error in a read job:
If an error occurs in a job, the trigger bit is reset and the error bit (_ERR) and
the done bit (_D) are set.
The read jobs still pending continue to be processed. JOB_ERR is set again for
each job.
For more detailed information on errors, refer to the description of the parameters
JOB_ERR and DATA_ERR (see Section 11 and Appendix C.3, page C-11).