SQL Client page

Use this page if you wish to connect to an SQL 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 SQL client and make PLC settings

Configure the SQL database access

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

To insert data into the database directly via Modbus or MEWTOCOL/MEWTOCOL7, enable Inserting data automatically from connected device. Max. 100 data points can be added. All data points are inserted as one record. This method only works with a single table.

  1. Enter the name of the target table.

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

  3. Select Add new to specify the target columns of the SQL table to receive the data.

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

    Make the following settings:

    Column name: Enter the name of the column.

    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 SQL database. This setting has no effect for Microsoft Azure because connections are always encrypted.

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