MB_NodeAddrSet() - Modbus-S

This function allows you to change the ‘node address’ that the channel will respond to. You would typically not need to use this function because the channel’s address would have been set in MB_CfgCh().

void  MB_NodeAddrSet (MODBUS_CH  *pch,
                      CPU_INT08U  addr)

Arguments

pch

is a pointer to the channel (returned by MB_CfgCh()). This pointer specifies onto which channel the Modbus master will be communicating on. This channel must have been configured as a Modbus slave.

addr

is the node number and can be anything from 1 to 255.

Returned Value

None

Notes / Warnings

None

Called By

Your Modbus slave application.