Job Execution - Siemens SIMATIC MV540 H Operating Instructions Manual

Optical identification
Hide thumbs Also See for SIMATIC MV540 H:
Table of Contents

Advertisement

Process interfacing via an automation system (PLC, PC)
9.4 Control with FB 79
9.4.5.3

Job execution

Whether or not a job can be executed successfully depends on the current operating state of
the optical reader. The following table shows which jobs are possible in the various states of
the optical reader. You can find the job number in the parameter table.
Table 9- 47
Possible jobs depending on the operating state
Operating state of
the reader
RUN (RDY=1)
(processing mode
with output of the
result strings)
STOP
ERROR
(IN_OP=0)
Sequence when canceling a job ("COMMAND" = W#16#0000)
Job cancellation is only possible with the "COMMAND = W#16#0081...W#16#008F" read
jobs.
The block signals completion of the job termination with "ACTIVE = FALSE".
If a transfer is active when the job is canceled, the transfer aborts and the error is reported
with an appropriate error message in the "ERRCODE" parameter. "ERROR" then has the
value "TRUE" and "DONE" has the value "FALSE". A transfer is active when "DONE" and
"ERROR" show the value "FALSE".
If no transfer is active during the cancellation and once the job is completed, the
"ERRCODE" parameter has the value "0", "ERROR" has the value "FALSE" and "DONE"
has the value "TRUE".
Sequence when changing jobs
If you want to change to a different job from a read job, the currently active job must be
canceled.
Sequence when changing a program ("COMMAND" = W#16#0001)
To perform a program change while the optical reader is actively executing a read job, follow
these steps:
1. Call FB79 with "COMMAND = W#16#0000".
This cancels the output of the result string (job "W#16#0081").
2. Run the program change by calling FB 79 with "COMMAND = W#16#0001" and "PARAM
= new program no.".
When the job is triggered, the parameters "DONE" and "ERROR" have the value
"FALSE". The "ACTIVE" parameter has the value "TRUE". The block changes the
program selected on the optical reader to the value at the "PARAM1" parameter. The
146
0000
0001
X
X
X
X
X
X
Job number = (hexadecimal)
0002
0003
X
X
X
X
-
X
Operating Instructions, 06/2018, C79000-G8976-C494-01
0004
0005
X
X
X
X
X
X
0081 ... 008F
X
-
-
SIMATIC MV500

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic mv540 sSimatic mv560 x

Table of Contents