DispCtrl.cs 현장에서 예외 문제로 소스 행번호 로그 추가

This commit is contained in:
shark219-hub
2024-11-27 16:30:31 +09:00
parent 155e5cb93c
commit bedcaefaa4
4 changed files with 965 additions and 892 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -10,18 +10,18 @@ namespace vmsnet.Configures
public class RtuConfigure public class RtuConfigure
{ {
public int BaudRate { get; set; } = 9600; public int BaudRate { get; set; } = 9600;
public int DataBits { get; set; } = 8;
public Parity Parity { get; set; } = Parity.None; public Parity Parity { get; set; } = Parity.None;
public StopBits StopBits { get; set; } = StopBits.One; public StopBits StopBits { get; set; } = StopBits.One;
public int DataBits { get; set; } = 8;
public RtuConfigure() { } public RtuConfigure() { }
public RtuConfigure(int baudRate, Parity parity, StopBits stopBits, int dataBits) public RtuConfigure(int baudRate, Parity parity, StopBits stopBits, int dataBits)
{ {
BaudRate = baudRate; BaudRate = baudRate;
DataBits = dataBits;
Parity = parity; Parity = parity;
StopBits = stopBits; StopBits = stopBits;
DataBits = dataBits;
} }
} }
} }

View File

@@ -507,7 +507,7 @@ namespace vmsnet
this.groupBox4.Size = new System.Drawing.Size(347, 218); this.groupBox4.Size = new System.Drawing.Size(347, 218);
this.groupBox4.TabIndex = 45; this.groupBox4.TabIndex = 45;
this.groupBox4.TabStop = false; this.groupBox4.TabStop = false;
this.groupBox4.Text = "Indicator"; this.groupBox4.Text = "KA Indicator";
// //
// button5 // button5
// //

View File

@@ -311,6 +311,12 @@ namespace vmsnet
this.bs_normal.EndEdit(); this.bs_normal.EndEdit();
this.bs_win.EndEdit(); this.bs_win.EndEdit();
if (cmbIndiport.Text.Trim() == cmb_plcport.Text.Trim())
{
UTIL.MsgE("「KA 인디게이터」와 「Alarm PLC」의 통신포트는\n\n동일하게 설정할 수 없습니다.");
cmbIndiport.Focus();
return;
}
if (nudPri1.Value < 1 || nudPri2.Value < 1) if (nudPri1.Value < 1 || nudPri2.Value < 1)
{ {