There are two options:
1. ioRead/Write functions
Use ioRead/Write functions if there’s no need to regularly collect the data.
2. Register Assignment (addRegAssignment and databaseRead/Write functions)
The Register Assignment uses the ioRead/Write functions itself. If regular calls are required, or if you want an easier method to get the data into Mdbus registers then use Register Assignment.
1. ioRead/Write functions
Use ioRead/Write functions if there’s no need to regularly collect the data.
2. Register Assignment (addRegAssignment and databaseRead/Write functions)
The Register Assignment uses the ioRead/Write functions itself. If regular calls are required, or if you want an easier method to get the data into Mdbus registers then use Register Assignment.