MB_Init()
As mentioned in the previous section, MB_Init()
needs to be called to initialize µC/Modbus. When called, MB_Init()
creates one task that handles processing of all frames sent to your product. See section 7 for details.
Prototype
void MB_Init (CPU_INT32U freq);
Arguments
freq
corresponds to the RTU timer interrupt frequency you intend to use. If you don’t use Modbus RTU in your product, simply pass 0
.
Returned Value
None
Notes / Warnings
None
Called By
Your Modbus master or slave application.