点击或拖拽改变大小

OmronFinsNet 属性

OmronFinsNet 类型公开以下成员。

属性
  名称说明
公共属性AlienSession
当前的异形连接对象,如果设置了异形连接的话,仅用于异形模式的情况使用
The current alien connection object, if alien connection is set, is only used in the case of alien mode
(继承自 NetworkDoubleBase。)
公共属性代码示例ByteTransform
当前的数据变换机制,当你需要从字节数据转换类型数据的时候需要。
The current data transformation mechanism is required when you need to convert type data from byte data.
(继承自 NetworkDoubleBase。)
公共属性ConnectionId
当前连接的唯一ID号,默认为长度20的guid码加随机数组成,方便列表管理,也可以自己指定
The unique ID number of the current connection. The default is a 20-digit guid code plus a random number.
(继承自 NetworkDoubleBase。)
公共属性代码示例ConnectTimeOut
获取或设置连接的超时时间,单位是毫秒
Gets or sets the timeout for the connection, in milliseconds
(继承自 NetworkDoubleBase。)
公共属性DA1
PLC的节点地址,默认为0,在和PLC连接的过程中,自动从PLC获取到DA1的值。
The node address of the PLC is 0 by default. During the process of connecting with the PLC, the value of DA1 is automatically obtained from the PLC.
公共属性DA2
PLC的单元号地址,通常都为0
PLC unit number address, usually 0
公共属性DNA
PLC的网络号地址,默认0x00
PLC network number address, default 0x00
公共属性GCT
网络层信息,默认0x02,如果有八层消息,就设置为0x07
Network layer information, default is 0x02, if there are eight layers of messages, set to 0x07
公共属性ICF
信息控制字段,默认0x80
Information control field, default 0x80
公共属性代码示例IpAddress
获取或是设置远程服务器的IP地址,如果是本机测试,那么需要设置为127.0.0.1
Get or set the IP address of the remote server. If it is a local test, then it needs to be set to 127.0.0.1
(继承自 NetworkDoubleBase。)
公共属性LocalBinding
获取或设置绑定的本地的IP地址和端口号信息,如果端口设置为0,代表任何可用的端口
Get or set the bound local IP address and port number information, if the port is set to 0, it means any available port
(继承自 NetworkDoubleBase。)
公共属性代码示例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
(继承自 NetworkBase。)
公共属性代码示例Port
获取或设置服务器的端口号,具体的值需要取决于对方的配置
Gets or sets the port number of the server. The specific value depends on the configuration of the other party.
(继承自 NetworkDoubleBase。)
公共属性ReadSplits
进行字读取的时候对于超长的情况按照本属性进行切割,默认500,如果不是CP1H及扩展模块的,可以设置为999,可以提高一倍的通信速度。
When reading words, it is cut according to this attribute for the case of overlength. The default is 500. If it is not for CP1H and expansion modules, it can be set to 999, which can double the communication speed.
公共属性代码示例ReceiveTimeOut
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈
Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback
(继承自 NetworkDoubleBase。)
公共属性ReceiveUntilEmpty
当接收PLC返回的数据的时候,获取或设置是否需要接收数据直到空为止,在一些及其特殊的场景里,可以设置为 true 防止数据错误的情况。
When receiving the data returned by the PLC, it is necessary to obtain or set whether to receive data until empty, and in some special scenarios, it can be set to true to prevent data errors.
公共属性RSV
系统使用的内部信息
Internal information used by the system
公共属性SA1
上位机的节点地址,默认是0x01,当连接PLC之后,将由PLC来设定当前的值。
The node address of the host computer is 0x01 by default. After connecting to the PLC, the PLC will set the current value.
公共属性SA2
上位机的单元号地址
Unit number and address of the computer
公共属性SendBeforeHex
获取或设置在发送通信报文前追加发送的字节信息,HEX格式,通常用于lora组网时,需要携带 00 00 00 02 四个字节的站地址功能。
Obtain or set the byte information sent before sending communication packets, HEX format, usually used for LORA networking, you need to carry 00 00 00 02 four-byte station address function.
(继承自 NetworkDoubleBase。)
公共属性SID
设备的标识号
Service ID. Used to identify the process generating the transmission. Set the SID to any number between 00 and FF
公共属性SleepTime
获取或设置在正式接收对方返回数据前的时候,需要休息的时间,当设置为0的时候,不需要休息。
Get or set the time required to rest before officially receiving the data from the other party. When it is set to 0, no rest is required.
(继承自 NetworkDoubleBase。)
公共属性SNA
上位机的网络号地址
Network number and address of the computer
公共属性SocketKeepAliveTime
获取或设置客户端的Socket的心跳时间信息,这个是Socket底层自动实现的心跳包,不基于协议层实现。默认小于0,不开启心跳检测,如果需要开启,设置 60_000 比较合适,单位毫秒
Get or set the heartbeat time information of the Socket of the client. This is the heartbeat packet automatically implemented by the bottom layer of the Socket, not based on the protocol layer. The default value is less than 0, and heartbeat detection is not enabled. If you need to enable it, it is more appropriate to set 60_000, in milliseconds.
(继承自 NetworkDoubleBase。)
公共属性代码示例Token
网络类的身份令牌,在hsl协议的模式下会有效,在和设备进行通信的时候是无效的
Network-type identity tokens will be valid in the hsl protocol mode and will not be valid when communicating with the device
(继承自 NetworkBase。)
受保护的属性UseServerActivePush
获取或设置当前的连接是否激活从服务器主动推送的功能
(继承自 NetworkDoubleBase。)
受保护的属性WordLength
一个字单位的数据表示的地址长度,西门子为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
(继承自 NetworkDeviceBase。)
Top
参见