点击或拖拽改变大小

DeviceCommunicationWordLength 属性

一个字单位的数据表示的地址长度,西门子为2,三菱,欧姆龙,modbusTcp就为1,AB PLC无效
The address length represented by one word of data, Siemens is 2, Mitsubishi, Omron, modbusTcp is 1, AB PLC is invalid

命名空间:  HslCommunication.Core.Device
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法
protected ushort WordLength { get; set; }

属性值

类型:UInt16
备注
对设备来说,一个地址的数据对应的字节数,或是1个字节或是2个字节,4个字节,通常是这四个选择,当设置为0时,则表示4字节的地址长度信息
For the device, the number of bytes corresponding to the data of an address, either 1 byte or 2 bytes, 4 bytes, usually these four choices, when set to 0, it means 4 words Section address length information
参见