Process interfacing via an automation system (PLC, PC)
9.4 Control with FB 79
SIMATIC MV500
146
Operating Instructions, 06/2018, C79000-G8976-C494-01
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
Job number = (hexadecimal)
0000
0001
0002
0003
0004
0005
0081 ... 008F
RUN (RDY=1)
(processing mode
with output of the
result strings)
X
X
X
X
X
X
X
STOP
X
X
X
X
X
X
-
ERROR
(IN_OP=0)
X
X
-
X
X
X
-
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
Содержание SIMATIC MV540 H
Страница 24: ...Description 1 7 Functional description SIMATIC MV500 24 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 194: ...Service and maintenance 10 3 Replacing a module SIMATIC MV500 194 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 232: ...Appendix A 3 Alternative user interfaces SIMATIC MV500 232 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 236: ...List of abbreviations SIMATIC MV500 236 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 238: ...Service Support SIMATIC MV500 238 Operating Instructions 06 2018 C79000 G8976 C494 01 ...