Introduction and initial access
Starting with FactoryTalk View SE version 14, a new data logging system is included alongside the existing ones: integration with InfluxDB, as shown in another example.
After installation, if you check the corresponding port, you will see the access page.
User and token creation
We are going to see how to create a user and password to access and configure InfluxDB.
These are the commands.
$influx = "C:\Program Files (x86)\Rockwell Software\RSView Enterprise\3rdParty\InfluxData\InfluxCli\influx.exe"
& $influx user create -n FTAdmin -p xxxxxxx. -o Rockwell
And with this command we are going to extract the token, which is essential for the later configuration.
$influx = "C:\Program Files (x86)\Rockwell Software\RSView Enterprise\3rdParty\InfluxData\InfluxCli\influx.exe"
& $influx auth create --org Rockwell --user FTAdmin --all-access
Now, with the user we have created, we are going to log in and check that everything works.
HMIServer bucket verification
When the page loads, we can see that the HMIServer bucket appears, which we added to our project.
InfluxDB connection setup
Now it is time to configure the connection to a new database, which in this example is InfluxDB.
The next capture shows the different types available.
And here is the important part: indicate where the access token was obtained.
The connection has now been created.
DataLogPro configuration
In DataLogPro, once the initial problem has been solved:
Unable to open the DataLogPro because the HMI server is not available.
We can now open the editor and configure which variables we want to log.
Visualization with TrendPro
For visualization, we need the TrendPro object to connect to InfluxDB and plot the data.
We configure the variables we are interested in.
We are going to look at the system variables, which are the ones we set to log.
And the behavior is correct. Everything works perfectly.
Final verification in InfluxDB
We can also view the records directly in InfluxDB.