Creating machine data

At the start time of a project, an initial set of machine data must be created so that the parameters determined during commissioning can be persistently stored.

Creating machine data 1:

Error messages in the EventLogger

All runtime objects attached to the FB_BaseRuntime will inevitably trigger an error message under the following conditions:

  • All Init() methods have been successfully executed
  • No machine data file exists yet
  • FB_BaseRuntime.DisableMdInit is not set
For the sequence of steps described below, the use of the FB_BaseRuntime is assumed.
1. Start the PLC runtime.
2. Call the FB_BaseRuntime.MdSaveAll() method once.
3. Wait for the saving process to be completed.
Depending on the amount of data to be saved, the processing time may vary. In PLC online mode the variable bMdSaveAll can be monitored to check the completion of the saving process.
You have successfully generated a first set of machine data