Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This function allows you to enable or disable writes to parameters in your product. In other words, this allows channels to act as read-only channels. You would typically not need to use this function because the channel read/write privilege would have been set in MB_CfgCh().

void  MB_WrEnSet (MODBUS_CH  *pch,
                  CPU_INT08U  wr_en)

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.

wr_en

wr_en determines whether writes are enabled or not. You must pass either: MODBUS_WR_EN or MODBUS_WR_DIS.

Returned Value

None

Notes / Warnings

None

Called By

Your Modbus master or slave application.

  • No labels