Does OPC Expert support archiving OPC data directly to a MongoDB database?

Archiving OPC Data Directly to a MongoDB Database

OPC Expert’s Archive OPC Data module supports sending data directly to MongoDB as one of its cloud and database storage destinations. In addition to MongoDB, the module supports Microsoft Azure, Amazon AWS, Microsoft SQL Server, MySQL, SQLite, and CSV flat files. This range of options gives teams flexibility to route OPC data into their existing data infrastructure without requiring an intermediate application or custom integration work.

How MongoDB Archiving Works

When you configure an archive in OPC Expert and select MongoDB as the target, the module writes captured OPC data to your MongoDB instance according to the configured update rates and event-based triggers. Data can be captured on change, on a fixed schedule, or based on threshold conditions, and the resulting records include timestamps and quality information consistent with the OPC data model. This event-based capture approach reduces storage overhead by recording only meaningful changes rather than writing at every poll cycle.

Connecting to MongoDB

The connection to MongoDB is configured within OPC Expert’s archive setup workflow. You provide the connection details for your MongoDB instance, whether it is hosted locally, on your organization’s servers, or through a cloud provider. Because OPC Expert does not require installation and does not modify Windows Registry settings, it can be deployed on the machine closest to the OPC data source without concern about disrupting the existing system configuration.

Keeping Data Flowing During Interruptions

OPC Expert includes store-and-forward functionality, which buffers data locally if the connection to the target database is interrupted. Once the connection is restored, the buffered data is forwarded automatically. This protects against data gaps caused by network disruptions between the OPC Expert host and the MongoDB endpoint.

Relevant Tools

OPC Expert (Archive OPC Data): The archiving module handles direct connections to MongoDB, along with CSV, SQL, Azure, and AWS targets, with event-based capture and store-and-forward reliability.

OPC Expert (OPC Viewer): Used to verify that data subscriptions are active and that the correct items are being captured before routing to the archive destination.

For teams using MongoDB as part of a broader data platform, OPC Expert’s native support for MongoDB archiving removes the need for custom middleware between the OPC layer and the database.