µC/Modbus-S, Accessing Application Data

µC/Modbus-Saccesses your application data via interface functions that are defined in mb_data.c. Specifically, functions that YOU provided in this file are called by µC/Modbus-S to read and write coils, integers, floating-point values and more. It’s up to you to decide how your data is accessed. Specifically, you can use tables, functions, switch statements, etc. Examples are provided in this section. This flexibility also allows you to execute code whenever a data is read or written.

You must thus write the code for the following functions:

MB_CoilRd()

MB_CoilWr()

MB_DIRd()

MB_InRegRd()

MB_InRegRdFP()

MB_HoldingRegRd()

MB_HoldingRegRdFP()

MB_HoldingRegWr()

MB_HoldingRegWrFP()

MB_FileRd()

MB_FileWr()