虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 技术资料 > FreeModbus 英文资料

FreeModbus 英文资料

  • 资源大小:4548 K
  • 上传时间: 2022-05-31
  • 上传用户:hbsun
  • 资源积分:2 下载积分
  • 标      签: FreeModbus

资 源 简 介

If register should be written or read.

This value is passed to the calback functions which support either reading or writing register values. Writing means that the application registers should be updated and reading means that the modbus protocol stack needs to know the current register values.

See also: eMBRegHoldingCB(), eMBRegCoilsCB(), eMBRegDiscreteCB() and eMBReglnputCB().

Enumeration values: MB_REG_READ Read register values and pass to protocol stack.

MB_REG_WRITE Update register values.

Note: Note all ports implement this function.A port which wants to get an callback must define the macro MB_PORT_HAS_CLOSE to 1.

Returns: If the resources where released it return eMBErrorCode:: MB_ENOERR. If the protocol stack is not in the disabled state it returns eMBErrorCode:: MB_EILLSTATE.

Examples: LINUX/demo.c, MCF5235TCP/demo.c, STR71XTCP/demo.c, WIN32/demo. cpp, and WIN32TCP/

demo. cpp.

his function disables processing of Modbus frames.

Returns: If the protocol stack has been disabled


相 关 资 源