Hello, everyone, I am Lei Gong!
KingIOServer was used to collect Siemens S71500 data on site, and the data value was found to be incorrect during debugging. After investigation, the collected data type in the variable collection property was LONG, which should actually be FLOAT. After setting it to FLOAT, the data was normal. Due to the relatively large amount of data, it is time-consuming and labor-intensive to modify one by one, and batch modification is required. The batch modification operation process is recorded below.
1. Situation description
The variable type of the KingIOServer program needs to be changed from LONG to FLOAT, how to operate in batches with many points.
2. Operation steps
1. Click to select the group where the variables to be modified in batches are located, and then click Data Type to sort the group of variables by data type.
2. Select all variables whose data type is IOFloat, and then click [Export Variables – Single Sheet Page] to export the variables to be modified.
3. Fill in a file name and click the [Save] button.
4. The export speed is very fast, and the [Export variables completed] prompt window will pop up, click the [OK] button to close it.
5. Open the variable file (.csv type) just exported, change [LONG] in the ItemDataType column to [FLOAT], and then click Save.
6. Since you are using WPS, a prompt box will pop up, just click [Yes].
7. Return to the KingIOServer project designer, select the group where the variable is located, and click [Import variable – single sheet page],
8. Select the modified file, and click the [Open] button.
9. In the import variable window, select all the modified variables, right-click and select [Replace], and then click the [Import] button.
10. Pop up [Import variables completed], indicating that the import is successful, click the [OK] button to close the pop-up window.
11. Run again, the data is normal, and the data type has been modified in batches.
postscript
Configuration software such as Yakong KingIOServer and Beijing Jiekong can quickly edit data by exporting and importing data tables during data collection, which can greatly shorten the development time and is very convenient.