NoSQL Client page

Use this page if you want to connect to a MongoDB or InfluxDB database.

Usually, a PLC is needed to control the data exchange with the database. The source memory area in the PLC is specified under General settings.

Data can also be inserted directly into the database via Modbus or MEWTOCOL/MEWTOCOL7 from a device that is connected to the FP-I4C unit. In this case, enable Inserting data automatically from connected device and specify the source and the target.

Ready-made function blocks are available for Control FPWIN Pro7. To download these function blocks or a programming example, select the buttons at the end of the configuration page.

Enable the NoSQL client and make PLC settings

Configure the NoSQL database access

Database type: The FP-I4C unit supports MongoDB and InfluxDB databases.

For MongoDB, make the following settings:

For InfluxDB, make the following settings:

Test the connection

You can test the connection to the database. This may take up to 60s. Be sure to save your settings before testing so that your changes are taken into account.

Inserting data automatically from connected device

If you are not using a PLC, enable Inserting data automatically from connected device to insert new records into the database directly from a connected device. Max. 100 data points can be added. All data points are inserted as one record.

  1. For MongoDB: Enter the name of the target collection.

    For InfluxDB: Enter the names of the target bucket and measurement.

  2. Select the interface and station number of the FP-I4C unit.

  3. Select Add new to specify the data to be read from the connected device.

    To delete one or more entries from the list, click the individual check boxes and then Delete selection.

    For MongoDB, make the following settings:

    Property name: Enter the property name of the data.

    Data format: Select INT, UINT, BOOL, DINT, UDINT, REAL, STRING, WORD, or DWORD.

    Register address: Select the memory area (R, X, or Y for bit addresses and DT, LD, WR, WX, or WY for word addresses) and enter the address number of the memory area to be read.

    For InfluxDB, make the following settings:

    Field name: Enter the field name of the data.

    Tag name (optional): Enter optional metadata. If a tag name is specified, you must also enter a tag value.

    Tag value (optional): Enter a tag value if you specified a tag name.

    Data format: Select INT, UINT, BOOL, DINT, UDINT, REAL, STRING, WORD, or DWORD.

    Register address: Select the memory area (R, X, or Y for bit addresses and DT, LD, WR, WX, or WY for word addresses) and enter the address number of the memory area to be read.

Make certificate settings

Enable Use encryption if you want to encrypt the communication with the database.

Download programming example

Select Save to PC to download a programming example. You can also copy the example to the clipboard and paste it directly into Control FPWIN Pro7. In this case you must download and install the FP-I4C library separately.

Save your configuration.

When you have changed any settings, a Save button appears in the upper right corner of the screen. You can make changes on multiple pages and then save your settings.

Reset your configuration

To reset all settings on the current page to the default configuration, select the Reset button at the bottom of the page.

Modified on: 2024-10-15Feedback on this pagePanasonic hotline