256 lines
14 KiB
C#
256 lines
14 KiB
C#
namespace ITC81DB_0H.Forms
|
|
{
|
|
partial class FormMain
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
this.smartForm = new SmartX.SmartForm();
|
|
this.smartFileIO = new SmartX.SmartFile();
|
|
this.smartFileCommunicationLog = new SmartX.SmartFile();
|
|
this.smartFileDataBackup = new SmartX.SmartFile();
|
|
this.smartConfigs = new SmartX.SmartConfigs();
|
|
this.smartSerialPort2 = new SmartX.SmartSerialPort();
|
|
this.smartSerialPort1 = new SmartX.SmartSerialPort();
|
|
this.smartSerialPort4 = new SmartX.SmartSerialPort();
|
|
this.smartSerialPort3 = new SmartX.SmartSerialPort();
|
|
this.smartThread = new SmartX.SmartThread(this.components);
|
|
this.smartTCPMultiServer = new SmartX.SmartTCPMultiServer();
|
|
this.smartModbusSlave1 = new SmartX.SmartModbusSlave();
|
|
this.smartModbusSlave3 = new SmartX.SmartModbusSlave();
|
|
this.smartModbusSlave4 = new SmartX.SmartModbusSlave();
|
|
this.smartFileCheckLog = new SmartX.SmartFile();
|
|
this.timeOut = new System.Windows.Forms.Timer();
|
|
this.smartTimerUpdate = new SmartX.SmartTimer(this.components);
|
|
((System.ComponentModel.ISupportInitialize)(this.smartForm)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// smartForm
|
|
//
|
|
this.smartForm.CenterLocation = false;
|
|
this.smartForm.LCDDirection = SmartX.SmartForm.LCDDIRECTIONS.HORIZONTAL;
|
|
this.smartForm.LCDSize = SmartX.SmartForm.LCDRESOLUTION.LCD800X600;
|
|
this.smartForm.Location = new System.Drawing.Point(0, 0);
|
|
this.smartForm.MainForm = null;
|
|
this.smartForm.Mode = SmartX.SmartForm.RUNMODE.RUNTIME;
|
|
this.smartForm.MouseCursor = SmartX.SmartForm.OnOff.OFF;
|
|
this.smartForm.Name = "smartForm";
|
|
this.smartForm.Size = new System.Drawing.Size(800, 600);
|
|
this.smartForm.SpecialFunctionClickPointSize = 100;
|
|
this.smartForm.SuspendLayoutInterval = 0;
|
|
//
|
|
// smartFileIO
|
|
//
|
|
this.smartFileIO.FilePathName = null;
|
|
//
|
|
// smartFileCommunicationLog
|
|
//
|
|
this.smartFileCommunicationLog.FilePathName = null;
|
|
//
|
|
// smartFileDataBackup
|
|
//
|
|
this.smartFileDataBackup.FilePathName = null;
|
|
//
|
|
// smartSerialPort2
|
|
//
|
|
this.smartSerialPort2.Baud_Rate = SmartX.SmartSerialPort.BAUDRATE._115200bps;
|
|
this.smartSerialPort2.ErrorCheckCodeType = SmartX.SmartSerialPort.ERRORCHECKCODETYPES.ASCIICODE;
|
|
this.smartSerialPort2.ErrorCheckMode = SmartX.SmartSerialPort.ERRORCHECK.NONE;
|
|
this.smartSerialPort2.ErrorCode_Location = SmartX.SmartSerialPort.ERRORCODELOCATION.HEADER;
|
|
this.smartSerialPort2.ETXCode = ((byte)(3));
|
|
this.smartSerialPort2.ETXCodes = null;
|
|
this.smartSerialPort2.FrameBufferSize = ((uint)(2048u));
|
|
this.smartSerialPort2.FrameSeparationType = SmartX.SmartSerialPort.FRAMESEPARATIONTYPES.STXANDETX;
|
|
this.smartSerialPort2.HeadErrorCodeOffset = 0;
|
|
this.smartSerialPort2.PortNo = SmartX.SmartSerialPort.COMPORTNO.COM2;
|
|
this.smartSerialPort2.ReadTimeout = -1;
|
|
this.smartSerialPort2.ReceiveDetect = SmartX.SmartSerialPort.RECEIVEDETECTTYPE.EVENT_QUEUE;
|
|
this.smartSerialPort2.ReceiveFrameDebugMode = false;
|
|
this.smartSerialPort2.RS485SoftwareDetection = false;
|
|
this.smartSerialPort2.STXCode = ((byte)(2));
|
|
this.smartSerialPort2.TailErrorCodeOffset = 0;
|
|
this.smartSerialPort2.OnReadQueueEvent += new SmartX.SmartSerialPort.ReceiveDataHandler(this.smartSerialPort2_OnReadQueueEvent);
|
|
//
|
|
// smartSerialPort1
|
|
//
|
|
this.smartSerialPort1.Baud_Rate = SmartX.SmartSerialPort.BAUDRATE._9600bps;
|
|
this.smartSerialPort1.ErrorCheckCodeType = SmartX.SmartSerialPort.ERRORCHECKCODETYPES.ASCIICODE;
|
|
this.smartSerialPort1.ErrorCheckMode = SmartX.SmartSerialPort.ERRORCHECK.NONE;
|
|
this.smartSerialPort1.ErrorCode_Location = SmartX.SmartSerialPort.ERRORCODELOCATION.HEADER;
|
|
this.smartSerialPort1.ETXCode = ((byte)(3));
|
|
this.smartSerialPort1.ETXCodes = null;
|
|
this.smartSerialPort1.FrameBufferSize = ((uint)(2048u));
|
|
this.smartSerialPort1.FrameSeparationType = SmartX.SmartSerialPort.FRAMESEPARATIONTYPES.NONEFRAME_READTIMEOUT;
|
|
this.smartSerialPort1.HeadErrorCodeOffset = 0;
|
|
this.smartSerialPort1.PortNo = SmartX.SmartSerialPort.COMPORTNO.COM1;
|
|
this.smartSerialPort1.ReadTimeout = 300;
|
|
this.smartSerialPort1.ReceiveDetect = SmartX.SmartSerialPort.RECEIVEDETECTTYPE.EVENT_QUEUE;
|
|
this.smartSerialPort1.ReceiveFrameDebugMode = false;
|
|
this.smartSerialPort1.RS485SoftwareDetection = false;
|
|
this.smartSerialPort1.STXCode = ((byte)(2));
|
|
this.smartSerialPort1.TailErrorCodeOffset = 0;
|
|
this.smartSerialPort1.OnReadQueueEvent += new SmartX.SmartSerialPort.ReceiveDataHandler(this.smartSerialPort1_OnReadQueueEvent);
|
|
//
|
|
// smartSerialPort4
|
|
//
|
|
this.smartSerialPort4.Baud_Rate = SmartX.SmartSerialPort.BAUDRATE._9600bps;
|
|
this.smartSerialPort4.ErrorCheckCodeType = SmartX.SmartSerialPort.ERRORCHECKCODETYPES.ASCIICODE;
|
|
this.smartSerialPort4.ErrorCheckMode = SmartX.SmartSerialPort.ERRORCHECK.NONE;
|
|
this.smartSerialPort4.ErrorCode_Location = SmartX.SmartSerialPort.ERRORCODELOCATION.HEADER;
|
|
this.smartSerialPort4.ETXCode = ((byte)(3));
|
|
this.smartSerialPort4.ETXCodes = null;
|
|
this.smartSerialPort4.FrameBufferSize = ((uint)(2048u));
|
|
this.smartSerialPort4.FrameSeparationType = SmartX.SmartSerialPort.FRAMESEPARATIONTYPES.NONEFRAME_READTIMEOUT;
|
|
this.smartSerialPort4.HeadErrorCodeOffset = 0;
|
|
this.smartSerialPort4.PortNo = SmartX.SmartSerialPort.COMPORTNO.COM4;
|
|
this.smartSerialPort4.ReadTimeout = 300;
|
|
this.smartSerialPort4.ReceiveDetect = SmartX.SmartSerialPort.RECEIVEDETECTTYPE.EVENT_QUEUE;
|
|
this.smartSerialPort4.ReceiveFrameDebugMode = false;
|
|
this.smartSerialPort4.RS485SoftwareDetection = false;
|
|
this.smartSerialPort4.STXCode = ((byte)(2));
|
|
this.smartSerialPort4.TailErrorCodeOffset = 0;
|
|
this.smartSerialPort4.OnReadQueueEvent += new SmartX.SmartSerialPort.ReceiveDataHandler(this.smartSerialPort4_OnReadQueueEvent);
|
|
//
|
|
// smartSerialPort3
|
|
//
|
|
this.smartSerialPort3.Baud_Rate = SmartX.SmartSerialPort.BAUDRATE._9600bps;
|
|
this.smartSerialPort3.ErrorCheckCodeType = SmartX.SmartSerialPort.ERRORCHECKCODETYPES.ASCIICODE;
|
|
this.smartSerialPort3.ErrorCheckMode = SmartX.SmartSerialPort.ERRORCHECK.NONE;
|
|
this.smartSerialPort3.ErrorCode_Location = SmartX.SmartSerialPort.ERRORCODELOCATION.HEADER;
|
|
this.smartSerialPort3.ETXCode = ((byte)(3));
|
|
this.smartSerialPort3.ETXCodes = null;
|
|
this.smartSerialPort3.FrameBufferSize = ((uint)(1024u));
|
|
this.smartSerialPort3.FrameSeparationType = SmartX.SmartSerialPort.FRAMESEPARATIONTYPES.NONEFRAME_READTIMEOUT;
|
|
this.smartSerialPort3.HeadErrorCodeOffset = 0;
|
|
this.smartSerialPort3.PortNo = SmartX.SmartSerialPort.COMPORTNO.COM3;
|
|
this.smartSerialPort3.ReadTimeout = 300;
|
|
this.smartSerialPort3.ReceiveDetect = SmartX.SmartSerialPort.RECEIVEDETECTTYPE.EVENT_QUEUE;
|
|
this.smartSerialPort3.ReceiveFrameDebugMode = false;
|
|
this.smartSerialPort3.RS485SoftwareDetection = false;
|
|
this.smartSerialPort3.STXCode = ((byte)(2));
|
|
this.smartSerialPort3.TailErrorCodeOffset = 0;
|
|
this.smartSerialPort3.OnReadQueueEvent += new SmartX.SmartSerialPort.ReceiveDataHandler(this.smartSerialPort3_OnReadQueueEvent);
|
|
//
|
|
// smartThread
|
|
//
|
|
this.smartThread.Priority = System.Threading.ThreadPriority.Normal;
|
|
this.smartThread.UIThreadFunction += new SmartX.SmartThread.UIThreadHandler(this.smartThread_UIThreadFunction);
|
|
//
|
|
// smartTCPMultiServer
|
|
//
|
|
this.smartTCPMultiServer.MaxClient = 1;
|
|
this.smartTCPMultiServer.MaxReceiveBufferSize = 1000;
|
|
this.smartTCPMultiServer.Port = 502;
|
|
this.smartTCPMultiServer.ReceiveTimeout = 3000;
|
|
this.smartTCPMultiServer.OnClientAdd += new SmartX.SmartTCPMultiServer.ClientAddHandler(this.smartTCPMultiServer_OnClientAdd);
|
|
this.smartTCPMultiServer.OnReceiveHandler += new SmartX.SmartTCPMultiServer.ReceiveHandler(this.smartTCPMultiServer_OnReceiveHandler);
|
|
//
|
|
// smartModbusSlave1
|
|
//
|
|
this.smartModbusSlave1.Buad_Rate = SmartX.SmartModbusSlave.BUADRATE.CBR_9600;
|
|
this.smartModbusSlave1.Parity = System.IO.Ports.Parity.None;
|
|
this.smartModbusSlave1.PortNo = SmartX.SmartModbusSlave.COMPORTNO.COM1;
|
|
this.smartModbusSlave1.ProtocolType = SmartX.SmartModbusSlave.PROTOCOL.RTU;
|
|
this.smartModbusSlave1.SlaveAddress = 1;
|
|
this.smartModbusSlave1.StopBits = System.IO.Ports.StopBits.One;
|
|
this.smartModbusSlave1.OnReadHoldingRegisters += new SmartX.SmartModbusSlave.ReadHoldingRegisterHandler(this.smartModbusSlave1_OnReadHoldingRegisters);
|
|
//
|
|
// smartModbusSlave3
|
|
//
|
|
this.smartModbusSlave3.Buad_Rate = SmartX.SmartModbusSlave.BUADRATE.CBR_9600;
|
|
this.smartModbusSlave3.Parity = System.IO.Ports.Parity.None;
|
|
this.smartModbusSlave3.PortNo = SmartX.SmartModbusSlave.COMPORTNO.COM3;
|
|
this.smartModbusSlave3.ProtocolType = SmartX.SmartModbusSlave.PROTOCOL.RTU;
|
|
this.smartModbusSlave3.SlaveAddress = 1;
|
|
this.smartModbusSlave3.StopBits = System.IO.Ports.StopBits.One;
|
|
this.smartModbusSlave3.OnReadHoldingRegisters += new SmartX.SmartModbusSlave.ReadHoldingRegisterHandler(this.smartModbusSlave3_OnReadHoldingRegisters);
|
|
//
|
|
// smartModbusSlave4
|
|
//
|
|
this.smartModbusSlave4.Buad_Rate = SmartX.SmartModbusSlave.BUADRATE.CBR_9600;
|
|
this.smartModbusSlave4.Parity = System.IO.Ports.Parity.None;
|
|
this.smartModbusSlave4.PortNo = SmartX.SmartModbusSlave.COMPORTNO.COM4;
|
|
this.smartModbusSlave4.ProtocolType = SmartX.SmartModbusSlave.PROTOCOL.RTU;
|
|
this.smartModbusSlave4.SlaveAddress = 1;
|
|
this.smartModbusSlave4.StopBits = System.IO.Ports.StopBits.One;
|
|
this.smartModbusSlave4.OnReadHoldingRegisters += new SmartX.SmartModbusSlave.ReadHoldingRegisterHandler(this.smartModbusSlave4_OnReadHoldingRegisters);
|
|
//
|
|
// smartFileCheckLog
|
|
//
|
|
this.smartFileCheckLog.FilePathName = null;
|
|
//
|
|
// timeOut
|
|
//
|
|
this.timeOut.Tick += new System.EventHandler(this.timeOut_Tick);
|
|
//
|
|
// smartTimerUpdate
|
|
//
|
|
this.smartTimerUpdate.EndTime = ((long)(100000000000));
|
|
this.smartTimerUpdate.Interval = 5000;
|
|
this.smartTimerUpdate.IntervalSeries = null;
|
|
this.smartTimerUpdate.NowMillisecond = ((long)(0));
|
|
this.smartTimerUpdate.StartTime = ((long)(0));
|
|
this.smartTimerUpdate.Tick += new System.EventHandler(this.smartTimerUpdate_Tick);
|
|
//
|
|
// FormMain
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.AutoScroll = true;
|
|
this.ClientSize = new System.Drawing.Size(800, 600);
|
|
this.Controls.Add(this.smartForm);
|
|
this.Name = "FormMain";
|
|
this.Text = "Form1";
|
|
((System.ComponentModel.ISupportInitialize)(this.smartForm)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
public SmartX.SmartForm smartForm;
|
|
private SmartX.SmartFile smartFileDataBackup;
|
|
public SmartX.SmartFile smartFileIO;
|
|
public SmartX.SmartFile smartFileCommunicationLog;
|
|
public SmartX.SmartConfigs smartConfigs;
|
|
private SmartX.SmartSerialPort smartSerialPort2;
|
|
private SmartX.SmartSerialPort smartSerialPort1;
|
|
private SmartX.SmartSerialPort smartSerialPort4;
|
|
private SmartX.SmartSerialPort smartSerialPort3;
|
|
public SmartX.SmartThread smartThread;
|
|
public SmartX.SmartTCPMultiServer smartTCPMultiServer;
|
|
private SmartX.SmartModbusSlave smartModbusSlave1;
|
|
private SmartX.SmartModbusSlave smartModbusSlave3;
|
|
private SmartX.SmartModbusSlave smartModbusSlave4;
|
|
public SmartX.SmartFile smartFileCheckLog;
|
|
private System.Windows.Forms.Timer timeOut;
|
|
private SmartX.SmartTimer smartTimerUpdate;
|
|
|
|
}
|
|
}
|
|
|