#region copyright
//------------------------------------------------------------------------------
// 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充
// 此代码版权(除特别声明外的代码)归作者本人Diego所有
// 源代码使用协议遵循本仓库的开源协议及附加协议
// Gitee源代码仓库:https://gitee.com/diego2098/ThingsGateway
// Github源代码仓库:https://github.com/kimdiego2098/ThingsGateway
// 使用文档:https://diego2098.gitee.io/thingsgateway-docs/
// QQ群:605534569
//------------------------------------------------------------------------------
#endregion
namespace ThingsGateway.Plugin.OPCUA;
///
public class OPCUAClientProperty : CollectDriverPropertyBase
{
///
/// 连接Url
///
[DeviceProperty("连接Url", "")]
public string OPCURL { get; set; } = "opc.tcp://127.0.0.1:49320";
///
/// 登录账号
///
[DeviceProperty("登录账号", "为空时将采用匿名方式登录")]
public string UserName { get; set; }
///
/// 登录密码
///
[DeviceProperty("登录密码", "")]
public string Password { get; set; }
///
/// 检查域
///
[DeviceProperty("检查域", "默认false")]
public bool CheckDomain { get; set; }
///
/// 安全策略
///
[DeviceProperty("安全策略", "True为使用安全策略,False为无")]
public bool IsUseSecurity { get; set; } = true;
///
/// 是否使用SourceTime
///
[DeviceProperty("使用SourceTime", "")]
public bool SourceTimestampEnable { get; set; } = true;
///
/// 加载服务端数据类型
///
[DeviceProperty("加载服务端数据类型")]
public bool LoadType { get; set; } = true;
///
/// 激活订阅
///
[DeviceProperty("激活订阅", "")]
public bool ActiveSubscribe { get; set; } = true;
///
/// 更新频率
///
[DeviceProperty("更新频率", "")]
public int UpdateRate { get; set; } = 1000;
///
/// 死区
///
[DeviceProperty("死区", "")]
public double DeadBand { get; set; } = 0;
///
/// 自动分组大小
///
[DeviceProperty("自动分组大小", "")]
public int GroupSize { get; set; } = 500;
///
/// 心跳频率
///
[DeviceProperty("心跳频率", "")]
public int KeepAliveInterval { get; set; } = 3000;
///
public override bool IsShareChannel { get; set; } = false;
///
public override ChannelEnum ShareChannel => ChannelEnum.None;
}