ModbusTcpNetRegisteredAddressMapping 方法 |
注册一个新的地址映射关系,注册地址映射关系后,就可以使用新的地址来读写Modbus数据了,通常用于其他的支持Modbus协议的PLC。
After registering a new address mapping, you can use the new address to read and write Modbus data, which is usually used for other PLCs that support the Modbus protocol.
命名空间:
HslCommunication.ModBus
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.0.0 (12.1.0.0)
语法public void RegisteredAddressMapping(
Func<string, byte, OperateResult<string>> mapping
)
Public Sub RegisteredAddressMapping (
mapping As Func(Of String, Byte, OperateResult(Of String))
)
public:
virtual void RegisteredAddressMapping(
Func<String^, unsigned char, OperateResult<String^>^>^ mapping
) sealed
abstract RegisteredAddressMapping :
mapping : Func<string, byte, OperateResult<string>> -> unit
override RegisteredAddressMapping :
mapping : Func<string, byte, OperateResult<string>> -> unit
参数
- mapping
- 类型:SystemFuncString, Byte, OperateResultString
地址映射关系信息
实现
IModbusRegisteredAddressMapping(FuncString, Byte, OperateResultString)
参见