点击或拖拽改变大小

SiemensWebApi 属性

SiemensWebApi 类型公开以下成员。

属性
  名称说明
公共属性代码示例ByteTransform
当前的数据变换机制,当你需要从字节数据转换类型数据的时候需要。
The current data transformation mechanism is required when you need to convert type data from byte data.
(继承自 DeviceCommunication。)
公共属性Client
获取当前的HttpClinet的客户端
Get the current HttpClinet client
(继承自 DeviceWebApi。)
公共属性CommunicationPipe
获取或设置当前的管道信息,管道类型为CommunicationPipe的继承类,内置了PipeTcpNet管道,PipeUdpNet管道,PipeSerialPort管道等
(继承自 BinaryCommunication。)
公共属性ConnectionId
当前连接的唯一ID号,默认为长度20的guid码加随机数组成,方便列表管理,也可以自己指定
The unique ID number of the current connection. The default is a 20-digit guid code plus a random number.
(继承自 BinaryCommunication。)
公共属性DefaultContentType
默认的内容类型,如果为空,则不进行设置操作。例如设置为 "text/plain", "application/json", "text/html" 等等。
The default content type, if it is empty, no setting operation will be performed. For example, set to "text/plain", "application/json", "text/html" and so on.
(继承自 DeviceWebApi。)
公共属性IpAddress
获取或设置远程服务器的IP地址
Gets or sets the IP address of the remote server
(继承自 DeviceWebApi。)
公共属性代码示例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
(继承自 BinaryCommunication。)
公共属性Password
获取或设置当前的密码
Get or set the current password
(继承自 DeviceWebApi。)
公共属性Port
获取或设置远程服务器的端口号信息
Gets or sets the port number information for the remote server
(继承自 DeviceWebApi。)
公共属性代码示例ReceiveTimeOut
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈
Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback
(继承自 BinaryCommunication。)
公共属性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.
(继承自 BinaryCommunication。)
公共属性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.
(继承自 BinaryCommunication。)
公共属性Token
当前PLC的通信令牌,当调用ConnectServer时,会自动获取,当然你也可以手动赋值一个合法的令牌,跳过ConnectServer直接进行读写操作。
The communication token of the current PLC will be automatically obtained when ConnectServer is called. Of course, you can also manually assign a valid token, skip ConnectServer and read it directly Write operation.
公共属性UseEncodingISO
获取或设置是否使用ISO的编码信息,默认为 False
Get or set whether to use ISO encoding information, the default is False
(继承自 DeviceWebApi。)
公共属性UseHttps
是否启用Https的协议访问,对于Https来说,端口号默认为 443
Whether to enable Https protocol access, for Https, the port number defaults to 443
(继承自 DeviceWebApi。)
公共属性UserName
获取或设置当前的用户名
Get or set the current username
(继承自 DeviceWebApi。)
受保护的属性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
(继承自 DeviceCommunication。)
Top
参见