点击或拖拽改变大小

IHostLink 属性

IHostLink 类型公开以下成员。

属性
  名称说明
公共属性代码示例ByteTransform
当前的数据变换机制,当你需要从字节数据转换类型数据的时候需要。
The current data transformation mechanism is required when you need to convert type data from byte data.
(继承自 IReadWriteDevice。)
公共属性ConnectionId
当前连接的唯一ID号,默认为长度20的guid码加随机数组成,方便列表管理,也可以自己指定
The unique ID number of the current connection. The default is a 20-digit guid code plus a random number.
(继承自 IReadWriteNet。)
公共属性DA2
PLC的单元号地址,通常都为0
PLC unit number address, usually 0
公共属性ICF
Specifies whether or not there are network relays. Set “80” (ASCII: 38,30) when sending an FINS command to a CPU Unit on a network.Set “00” (ASCII: 30,30) when sending to a CPU Unit connected directly to the host computer.
公共属性代码示例LogNet
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出
The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG
(继承自 IReadWriteNet。)
公共属性PlcType
获取或设置欧姆龙PLC的系列信息
Obtain or set the series information of Omron PLC
公共属性ReadSplits
进行字读取的时候对于超长的情况按照本属性进行切割,默认260。
When reading words, it is cut according to this attribute for the case of overlength. The default is 260.
公共属性ResponseWaitTime
The response wait time sets the time from when the CPU Unit receives a command block until it starts to return a response.It can be set from 0 to F in hexadecimal, in units of 10 ms. If F(15) is set, the response will begin to be returned 150 ms (15 × 10 ms) after the command block was received.
公共属性SA2
上位机的单元号地址
Unit number and address of the computer
公共属性SID
服务的标识号,由客户端生成自增的顺序值,用来标识和校验通信报文的ID
Service ID. Used to identify the process generating the transmission. Set the SID to any number between 00 and FF
公共属性UnitNumber
PLC设备的站号信息
PLC device station number information
Top
参见