Class PlcDeviceDtoV2
获取设备规格参数
Inheritance
System.Object
PlcDeviceDtoV2
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FBoxClientDriver.Contract
Assembly: FBoxClientDriver.Contract.dll
Syntax
public class PlcDeviceDtoV2
Constructors
PlcDeviceDtoV2()
无参构造函数
Declaration
public PlcDeviceDtoV2()
PlcDeviceDtoV2(Int32, String, String, ServerType, PlcAdvancedSettings, Int32, PlcDongFlag, DeviceInterfaceTypes, Int32, Int32, Int32, ParityType, PlcClass, String, Int32, Boolean, Int32, Int32, Int32)
Declaration
public PlcDeviceDtoV2(int plcId, string plcName, string alias, ServerType type, PlcAdvancedSettings plcAdvancedSettings, int portNo, PlcDongFlag plcDongleFlag, DeviceInterfaceTypes interface, int baudRate, int dataBits, int stopBits, ParityType parityType, PlcClass class, string ip, int port, bool enableBroadcast, int broadcastStationNo, int defaultStationNo, int slaveNo)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | plcId | plcId |
System.String | plcName | Plc名称 |
System.String | alias | Plc别名 |
ServerType | type | 驱动类型ServerType |
PlcAdvancedSettings | plcAdvancedSettings | |
System.Int32 | portNo | 站号 |
PlcDongFlag | plcDongleFlag | 远程停机状态PlcDongFlag |
DeviceInterfaceTypes | interface | |
System.Int32 | baudRate | 波特率 |
System.Int32 | dataBits | 数据位 |
System.Int32 | stopBits | 停止位 |
ParityType | parityType | 校验位ParityType |
PlcClass | class | 主从设备PlcClass |
System.String | ip | Ip地址 |
System.Int32 | port | 以太网端口号 |
System.Boolean | enableBroadcast | 使能广播站号 |
System.Int32 | broadcastStationNo | 广播站号 |
System.Int32 | defaultStationNo | 默认站号 |
System.Int32 | slaveNo | 从设备号 |
Properties
Alias
PLC别名
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BaudRate
波特率
Declaration
public int BaudRate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
BroadcastStationNo
广播站号
Declaration
public int BroadcastStationNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Class
PLC为主或从设备
Declaration
public PlcClass Class { get; set; }
Property Value
Type | Description |
---|---|
PlcClass |
DataBits
数据位
Declaration
public int DataBits { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DefaultStationNo
默认广播站号
Declaration
public int DefaultStationNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
EnableBroadcast
使能广播站号
Declaration
public bool EnableBroadcast { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Interface
通讯类型
Declaration
public DeviceInterfaceTypes Interface { get; set; }
Property Value
Type | Description |
---|---|
DeviceInterfaceTypes |
Ip
Ip地址
Declaration
public string Ip { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParityType
校验位
Declaration
public ParityType ParityType { get; set; }
Property Value
Type | Description |
---|---|
ParityType |
PlcAdvancedSettings
高级设置
Declaration
[JsonProperty("advanced")]
public PlcAdvancedSettings PlcAdvancedSettings { get; set; }
Property Value
Type | Description |
---|---|
PlcAdvancedSettings |
PlcDongleFlag
远程停机状态、盒子在线状态
Declaration
public PlcDongFlag PlcDongleFlag { get; set; }
Property Value
Type | Description |
---|---|
PlcDongFlag |
PlcId
PlcId
Declaration
public int PlcId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PlcName
PLC名称
Declaration
public string PlcName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Port
以太网端口号
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PortNo
站号
Declaration
public int PortNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SlaveNo
从设备号
Declaration
public int SlaveNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StopBits
停止位
Declaration
public int StopBits { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
PLC类型,串口或者以太网
Declaration
public ServerType Type { get; set; }
Property Value
Type | Description |
---|---|
ServerType |