Process interfacing via an automation system (PLC, PC)
9.9 Example programs
SIMATIC MV500
170 Operating Instructions, 06/2018, C79000-G8976-C494-01
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.
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.
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
Processing is started with a positive edge.
E x.0 Status byte IN_OP 0: Error or startup
E x.2 Status byte RDY 1: Sensor is in "RUN" mode, i.e. it is ready to pro-
cess codes.
You can use this signal to enable the feed of work
Archiving of images and diagnostic information on a PC
You can find the program described in this section on the Web pages of Siemens Online
Product Support (https://support.industry.siemens.com/cs/ww/en/ps/15147/ae
).
Using the "MMIDiagnosticsGUI.exe" file, you archive diagnostic data records in the form of
CSV files and diagnostics images as bitmaps on a PC. A text file containing bitmap details is
sent along with the diagnostics images.