freelance simulation specialist
Plant Simulation supports direct DB connections via ODBC. This interface is included in the Interface Package license which is an Add-On.
It allows to do SQL queries in Plant Simulation and get the resulting data directl in a tablefile. See the HELP - Add-Ins - Database Interfaces for more information.
Precondition is that the MES system features an open database that can be adressed directly (no API in between) from 3rd party software, and an ODBC driver for the client.