
Process interfacing via an automation system (PLC, PC)
9.10 Example programs
SIMATIC MV500
Operating Instructions, 03/2021, C79000-G8976-C494-05
217
Adding program change
Specify the number of the required program in memory byte MB200. The program change
runs automatically. The correct order of the commands is adhered to. The FB changes to the
program specified in the "PARAM1" parameter.
CAUTION
Avoiding undefined plant states
To avoid undefined plant states, you should only change programs when the plant is in
manual mode or is not in operation.
Startup OB OB100
In OB100, you set the RESET input of FB 79 to initialize the FB. This input is reset by the FB 79
call.
Bits of the control and status bytes used
You must edit the following control and status bytes in addition to the FB 79 call in your
program:
Table 9- 63 Control and status bytes for FB 79 call
Bit
Byte
Signal
Description
A x.6
Control byte
TRG
Processing is started with a positive edge.
A x.7
Control byte
RES
Reset sensor error
E x.0
Status byte
IN_OP
0: Error or startup
1: Sensor is functional
E x.2
Status byte
RDY
1: Sensor is in "RUN" mode, i.e. it is ready to process
codes.
You can use this signal to enable the feed of work
pieces.
9.10.2
Archiving of images and diagnostic information on a PC
You can find the program described in this section, "MMI Diagnostic Recorder", on the web
pages of Siemens Online Product Support
https://support.industry.siemens.com/cs/ww/en/ps/15147/ae
).
The MMI Diagnostic Recorder supports you with the diagnostics and maintenance of your
application. Among other things, it saves diagnostic data records as CSV files and saves all
images taken by the reader and corresponding to the set filters (e.g. "only bad reads", "match
errors" or "only successful reads") on an external PC. Please note that this function can affect
the network load if you have set a fast acquisition interval. If the image packets cannot be
sent on time, there is a buffer of up to 50 images. If this buffer is full, the corresponding
images are discarded.
Summary of Contents for SIMATIC MV500
Page 10: ...Preface SIMATIC MV500 10 Operating Instructions 03 2021 C79000 G8976 C494 05 ...
Page 16: ......
Page 28: ......
Page 32: ......
Page 92: ......
Page 114: ......
Page 148: ......
Page 244: ......
Page 254: ......
Page 260: ......
Page 292: ......
Page 294: ...Service Support SIMATIC MV500 294 Operating Instructions 03 2021 C79000 G8976 C494 05 ...