Merge branch 'main' of https://gitlab.com/IntechkoreaLCD/int_pt002
commit
82889b6dd1
|
@ -107,9 +107,9 @@
|
|||
this.smartLabel17 = new SmartX.SmartLabel();
|
||||
this.labelMotor2Origin = new SmartX.SmartLabel();
|
||||
this.smartLabel19 = new SmartX.SmartLabel();
|
||||
this.labelMotor1Back = new SmartX.SmartLabel();
|
||||
this.labelMotor1Front2 = new SmartX.SmartLabel();
|
||||
this.smartLabel12 = new SmartX.SmartLabel();
|
||||
this.labelMotor1Front = new SmartX.SmartLabel();
|
||||
this.labelMotor1Front1 = new SmartX.SmartLabel();
|
||||
this.smartLabel10 = new SmartX.SmartLabel();
|
||||
this.labelMotor1Origin = new SmartX.SmartLabel();
|
||||
this.smartLabel15 = new SmartX.SmartLabel();
|
||||
|
@ -1864,9 +1864,9 @@
|
|||
this.smartGroupBox3.Controls.Add(this.smartLabel17);
|
||||
this.smartGroupBox3.Controls.Add(this.labelMotor2Origin);
|
||||
this.smartGroupBox3.Controls.Add(this.smartLabel19);
|
||||
this.smartGroupBox3.Controls.Add(this.labelMotor1Back);
|
||||
this.smartGroupBox3.Controls.Add(this.labelMotor1Front2);
|
||||
this.smartGroupBox3.Controls.Add(this.smartLabel12);
|
||||
this.smartGroupBox3.Controls.Add(this.labelMotor1Front);
|
||||
this.smartGroupBox3.Controls.Add(this.labelMotor1Front1);
|
||||
this.smartGroupBox3.Controls.Add(this.smartLabel10);
|
||||
this.smartGroupBox3.Controls.Add(this.labelMotor1Origin);
|
||||
this.smartGroupBox3.Controls.Add(this.smartLabel15);
|
||||
|
@ -2110,29 +2110,29 @@
|
|||
this.smartLabel19.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.smartLabel19.Wordwrap = false;
|
||||
//
|
||||
// labelMotor1Back
|
||||
// labelMotor1Front2
|
||||
//
|
||||
this.labelMotor1Back.BackGround = null;
|
||||
this.labelMotor1Back.BackGroundColor = System.Drawing.Color.White;
|
||||
this.labelMotor1Back.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Back.BorderStyle = SmartX.SmartLabel.BorderStyles.FixedSingle;
|
||||
this.labelMotor1Back.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.labelMotor1Back.LineSpacing = 0F;
|
||||
this.labelMotor1Back.Location = new System.Drawing.Point(128, 180);
|
||||
this.labelMotor1Back.Name = "labelMotor1Back";
|
||||
this.labelMotor1Back.OverlapOptimize = true;
|
||||
this.labelMotor1Back.PasswordChar = '\0';
|
||||
this.labelMotor1Back.Radius = 3;
|
||||
this.labelMotor1Back.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.labelMotor1Back.Size = new System.Drawing.Size(100, 30);
|
||||
this.labelMotor1Back.TabIndex = 110;
|
||||
this.labelMotor1Back.Text = "12345";
|
||||
this.labelMotor1Back.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Back.TextColorDisable = System.Drawing.Color.Gray;
|
||||
this.labelMotor1Back.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelMotor1Back.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelMotor1Back.Wordwrap = false;
|
||||
this.labelMotor1Back.Click += new System.EventHandler(this.labelMotor1Back_Click);
|
||||
this.labelMotor1Front2.BackGround = null;
|
||||
this.labelMotor1Front2.BackGroundColor = System.Drawing.Color.White;
|
||||
this.labelMotor1Front2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Front2.BorderStyle = SmartX.SmartLabel.BorderStyles.FixedSingle;
|
||||
this.labelMotor1Front2.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.labelMotor1Front2.LineSpacing = 0F;
|
||||
this.labelMotor1Front2.Location = new System.Drawing.Point(128, 180);
|
||||
this.labelMotor1Front2.Name = "labelMotor1Front2";
|
||||
this.labelMotor1Front2.OverlapOptimize = true;
|
||||
this.labelMotor1Front2.PasswordChar = '\0';
|
||||
this.labelMotor1Front2.Radius = 3;
|
||||
this.labelMotor1Front2.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.labelMotor1Front2.Size = new System.Drawing.Size(100, 30);
|
||||
this.labelMotor1Front2.TabIndex = 110;
|
||||
this.labelMotor1Front2.Text = "12345";
|
||||
this.labelMotor1Front2.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Front2.TextColorDisable = System.Drawing.Color.Gray;
|
||||
this.labelMotor1Front2.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelMotor1Front2.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelMotor1Front2.Wordwrap = false;
|
||||
this.labelMotor1Front2.Click += new System.EventHandler(this.labelMotor1Front2_Click);
|
||||
//
|
||||
// smartLabel12
|
||||
//
|
||||
|
@ -2149,36 +2149,36 @@
|
|||
this.smartLabel12.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.smartLabel12.Size = new System.Drawing.Size(100, 30);
|
||||
this.smartLabel12.TabIndex = 109;
|
||||
this.smartLabel12.Text = "BACK";
|
||||
this.smartLabel12.Text = "FRONT2";
|
||||
this.smartLabel12.TextColor = System.Drawing.Color.White;
|
||||
this.smartLabel12.TextColorDisable = System.Drawing.Color.Gray;
|
||||
this.smartLabel12.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.smartLabel12.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.smartLabel12.Wordwrap = false;
|
||||
//
|
||||
// labelMotor1Front
|
||||
// labelMotor1Front1
|
||||
//
|
||||
this.labelMotor1Front.BackGround = null;
|
||||
this.labelMotor1Front.BackGroundColor = System.Drawing.Color.White;
|
||||
this.labelMotor1Front.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Front.BorderStyle = SmartX.SmartLabel.BorderStyles.FixedSingle;
|
||||
this.labelMotor1Front.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.labelMotor1Front.LineSpacing = 0F;
|
||||
this.labelMotor1Front.Location = new System.Drawing.Point(128, 144);
|
||||
this.labelMotor1Front.Name = "labelMotor1Front";
|
||||
this.labelMotor1Front.OverlapOptimize = true;
|
||||
this.labelMotor1Front.PasswordChar = '\0';
|
||||
this.labelMotor1Front.Radius = 3;
|
||||
this.labelMotor1Front.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.labelMotor1Front.Size = new System.Drawing.Size(100, 30);
|
||||
this.labelMotor1Front.TabIndex = 108;
|
||||
this.labelMotor1Front.Text = "12345";
|
||||
this.labelMotor1Front.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Front.TextColorDisable = System.Drawing.Color.Gray;
|
||||
this.labelMotor1Front.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelMotor1Front.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelMotor1Front.Wordwrap = false;
|
||||
this.labelMotor1Front.Click += new System.EventHandler(this.labelMotor1Front_Click);
|
||||
this.labelMotor1Front1.BackGround = null;
|
||||
this.labelMotor1Front1.BackGroundColor = System.Drawing.Color.White;
|
||||
this.labelMotor1Front1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Front1.BorderStyle = SmartX.SmartLabel.BorderStyles.FixedSingle;
|
||||
this.labelMotor1Front1.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.labelMotor1Front1.LineSpacing = 0F;
|
||||
this.labelMotor1Front1.Location = new System.Drawing.Point(128, 144);
|
||||
this.labelMotor1Front1.Name = "labelMotor1Front1";
|
||||
this.labelMotor1Front1.OverlapOptimize = true;
|
||||
this.labelMotor1Front1.PasswordChar = '\0';
|
||||
this.labelMotor1Front1.Radius = 3;
|
||||
this.labelMotor1Front1.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.labelMotor1Front1.Size = new System.Drawing.Size(100, 30);
|
||||
this.labelMotor1Front1.TabIndex = 108;
|
||||
this.labelMotor1Front1.Text = "12345";
|
||||
this.labelMotor1Front1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelMotor1Front1.TextColorDisable = System.Drawing.Color.Gray;
|
||||
this.labelMotor1Front1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelMotor1Front1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelMotor1Front1.Wordwrap = false;
|
||||
this.labelMotor1Front1.Click += new System.EventHandler(this.labelMotor1Front1_Click);
|
||||
//
|
||||
// smartLabel10
|
||||
//
|
||||
|
@ -2195,7 +2195,7 @@
|
|||
this.smartLabel10.RoundRectFillColor = System.Drawing.Color.LightBlue;
|
||||
this.smartLabel10.Size = new System.Drawing.Size(100, 30);
|
||||
this.smartLabel10.TabIndex = 107;
|
||||
this.smartLabel10.Text = "FRONT";
|
||||
this.smartLabel10.Text = "FRONT1";
|
||||
this.smartLabel10.TextColor = System.Drawing.Color.White;
|
||||
this.smartLabel10.TextColorDisable = System.Drawing.Color.Gray;
|
||||
this.smartLabel10.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
|
@ -2713,9 +2713,9 @@
|
|||
private SmartX.SmartLabel smartLabel17;
|
||||
private SmartX.SmartLabel labelMotor2Origin;
|
||||
private SmartX.SmartLabel smartLabel19;
|
||||
private SmartX.SmartLabel labelMotor1Back;
|
||||
private SmartX.SmartLabel labelMotor1Front2;
|
||||
private SmartX.SmartLabel smartLabel12;
|
||||
private SmartX.SmartLabel labelMotor1Front;
|
||||
private SmartX.SmartLabel labelMotor1Front1;
|
||||
private SmartX.SmartLabel smartLabel10;
|
||||
private SmartX.SmartSeparatorLine smartSeparatorLine1;
|
||||
private SmartX.SmartGroupBox smartGroupBox4;
|
||||
|
|
|
@ -11,6 +11,7 @@ using System.Windows.Forms;
|
|||
using SmartX;
|
||||
using INT_PT002.DataStore;
|
||||
using INT_PT002.Forms;
|
||||
using INT_PT002.DialogForms;
|
||||
|
||||
namespace INT_PT002.Controls
|
||||
{
|
||||
|
@ -132,6 +133,25 @@ namespace INT_PT002.Controls
|
|||
|
||||
this.ParentForm.ParentForm.TransferDataStream(command, id, address, data);
|
||||
}
|
||||
private void ServoParameterAllRead()
|
||||
{
|
||||
SmartSplash.Start(SmartSplash.BuiltInLoadingImages.PROCESSING1, 200);
|
||||
|
||||
this.ParentForm.Enabled = false;
|
||||
|
||||
// ServoMotor 1
|
||||
this.labelMotor1Origin.Text = this.ParentForm.ParentForm.ServoMotorRead2(1, ServoMotorAddress.CMD21);
|
||||
this.labelMotor1Front1.Text = this.ParentForm.ParentForm.ServoMotorRead2(1, ServoMotorAddress.CMD16);
|
||||
this.labelMotor1Front2.Text = this.ParentForm.ParentForm.ServoMotorRead2(1, ServoMotorAddress.CMD17);
|
||||
|
||||
// ServoMotor 2
|
||||
this.labelMotor2Origin.Text = this.ParentForm.ParentForm.ServoMotorRead2(2, ServoMotorAddress.CMD21);
|
||||
this.labelMotor2Turn.Text = this.ParentForm.ParentForm.ServoMotorRead2(2, ServoMotorAddress.CMD25);
|
||||
|
||||
SmartSplash.Finish();
|
||||
|
||||
this.ParentForm.Enabled = true;
|
||||
}
|
||||
|
||||
public void UpdateDisplayDispData(Collection<DispData> datas)
|
||||
{
|
||||
|
@ -180,6 +200,8 @@ namespace INT_PT002.Controls
|
|||
{
|
||||
this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplayMode = Define.E_DisplayModeStore.IOTest;
|
||||
this.ParentForm.ParentForm.SetDisplayMode(Define.E_EquipmentMode.IOTest);
|
||||
|
||||
this.ServoParameterAllRead();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -395,15 +417,61 @@ namespace INT_PT002.Controls
|
|||
}
|
||||
private void labelMotor1Origin_Click(object sender, EventArgs e)
|
||||
{
|
||||
string caption = "Motor1 Origin";
|
||||
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(caption, this.labelMotor1Origin.Text, 7, 0, false);
|
||||
|
||||
if (myKeyPad.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (myKeyPad.doubleValue == 0)
|
||||
{
|
||||
// 입력범위를 확인하세요
|
||||
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE);
|
||||
myMsg.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(1, ServoMotorAddress.CMD21, myKeyPad.IntValue, this.labelMotor1Origin);
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(1, ServoMotorAddress.CMD2, myKeyPad.IntValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void labelMotor1Front_Click(object sender, EventArgs e)
|
||||
private void labelMotor1Front1_Click(object sender, EventArgs e)
|
||||
{
|
||||
string caption = "Motor1 Front1";
|
||||
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(caption, this.labelMotor1Front1.Text, 7, 0, false);
|
||||
|
||||
if (myKeyPad.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (myKeyPad.doubleValue == 0)
|
||||
{
|
||||
// 입력범위를 확인하세요
|
||||
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE);
|
||||
myMsg.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(1, ServoMotorAddress.CMD16, myKeyPad.IntValue, this.labelMotor1Front1);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void labelMotor1Back_Click(object sender, EventArgs e)
|
||||
private void labelMotor1Front2_Click(object sender, EventArgs e)
|
||||
{
|
||||
string caption = "Motor1 Front2";
|
||||
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(caption, this.labelMotor1Front2.Text, 7, 0, false);
|
||||
|
||||
if (myKeyPad.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (myKeyPad.doubleValue == 0)
|
||||
{
|
||||
// 입력범위를 확인하세요
|
||||
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE);
|
||||
myMsg.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(1, ServoMotorAddress.CMD17, myKeyPad.IntValue, this.labelMotor1Front2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Motor 2
|
||||
|
@ -421,11 +489,43 @@ namespace INT_PT002.Controls
|
|||
}
|
||||
private void labelMotor2Origin_Click(object sender, EventArgs e)
|
||||
{
|
||||
string caption = "Motor2 Origin";
|
||||
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(caption, this.labelMotor2Origin.Text, 7, 0, false);
|
||||
|
||||
if (myKeyPad.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (myKeyPad.doubleValue == 0)
|
||||
{
|
||||
// 입력범위를 확인하세요
|
||||
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE);
|
||||
myMsg.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(2, ServoMotorAddress.CMD21, myKeyPad.IntValue, this.labelMotor2Origin);
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(2, ServoMotorAddress.CMD16, myKeyPad.IntValue);
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(2, ServoMotorAddress.CMD27, myKeyPad.IntValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
private void labelMotor2Turn_Click(object sender, EventArgs e)
|
||||
{
|
||||
string caption = "Motor2 Turn";
|
||||
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(caption, this.labelMotor2Turn.Text, 7, 0, false);
|
||||
|
||||
if (myKeyPad.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (myKeyPad.doubleValue == 0)
|
||||
{
|
||||
// 입력범위를 확인하세요
|
||||
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE);
|
||||
myMsg.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.ParentForm.ParentForm.ServoMotorWrite2(1, ServoMotorAddress.CMD25, myKeyPad.IntValue, this.labelMotor2Turn);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@
|
|||
this.labelCurrentTime.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(92)))), ((int)(((byte)(118)))));
|
||||
this.labelCurrentTime.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelCurrentTime.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelCurrentTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelCurrentTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelCurrentTime.LineSpacing = 0F;
|
||||
this.labelCurrentTime.Location = new System.Drawing.Point(84, 5);
|
||||
this.labelCurrentTime.Name = "labelCurrentTime";
|
||||
|
@ -341,12 +341,12 @@
|
|||
this.upDownMinute.LayoutStyle = SmartX.SmartUpDown.LAYOUTSTYPES.RIGHT1;
|
||||
this.upDownMinute.Location = new System.Drawing.Point(644, 61);
|
||||
this.upDownMinute.Maximum = new decimal(new int[] {
|
||||
31,
|
||||
59,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.upDownMinute.Minimum = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
|
@ -464,12 +464,12 @@
|
|||
this.upDownHour.LayoutStyle = SmartX.SmartUpDown.LAYOUTSTYPES.RIGHT1;
|
||||
this.upDownHour.Location = new System.Drawing.Point(502, 61);
|
||||
this.upDownHour.Maximum = new decimal(new int[] {
|
||||
31,
|
||||
23,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.upDownHour.Minimum = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
|
@ -494,7 +494,7 @@
|
|||
this.upDownHour.Units = "";
|
||||
this.upDownHour.UpDownButtonSize = 30;
|
||||
this.upDownHour.Value = new decimal(new int[] {
|
||||
30,
|
||||
12,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
|
@ -908,7 +908,7 @@
|
|||
this.smartLabel20.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel20.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel20.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel20.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel20.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel20.LineSpacing = 0F;
|
||||
this.smartLabel20.Location = new System.Drawing.Point(53, 50);
|
||||
this.smartLabel20.Name = "smartLabel20";
|
||||
|
@ -931,7 +931,7 @@
|
|||
this.labelContact1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelContact1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelContact1.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelContact1.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact1.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact1.LineSpacing = 0F;
|
||||
this.labelContact1.Location = new System.Drawing.Point(189, 50);
|
||||
this.labelContact1.Name = "labelContact1";
|
||||
|
@ -954,7 +954,7 @@
|
|||
this.labelContact2.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelContact2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelContact2.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelContact2.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact2.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact2.LineSpacing = 0F;
|
||||
this.labelContact2.Location = new System.Drawing.Point(189, 80);
|
||||
this.labelContact2.Name = "labelContact2";
|
||||
|
@ -977,7 +977,7 @@
|
|||
this.smartLabel25.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel25.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel25.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel25.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel25.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel25.LineSpacing = 0F;
|
||||
this.smartLabel25.Location = new System.Drawing.Point(53, 110);
|
||||
this.smartLabel25.Name = "smartLabel25";
|
||||
|
@ -1000,7 +1000,7 @@
|
|||
this.labelContact4.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelContact4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelContact4.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelContact4.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact4.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact4.LineSpacing = 0F;
|
||||
this.labelContact4.Location = new System.Drawing.Point(189, 140);
|
||||
this.labelContact4.Name = "labelContact4";
|
||||
|
@ -1023,7 +1023,7 @@
|
|||
this.labelContact3.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelContact3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelContact3.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelContact3.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact3.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact3.LineSpacing = 0F;
|
||||
this.labelContact3.Location = new System.Drawing.Point(189, 110);
|
||||
this.labelContact3.Name = "labelContact3";
|
||||
|
@ -1046,7 +1046,7 @@
|
|||
this.labelContact5.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelContact5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelContact5.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelContact5.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact5.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact5.LineSpacing = 0F;
|
||||
this.labelContact5.Location = new System.Drawing.Point(189, 170);
|
||||
this.labelContact5.Name = "labelContact5";
|
||||
|
@ -1069,7 +1069,7 @@
|
|||
this.smartLabel24.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel24.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel24.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel24.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel24.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel24.LineSpacing = 0F;
|
||||
this.smartLabel24.Location = new System.Drawing.Point(53, 200);
|
||||
this.smartLabel24.Name = "smartLabel24";
|
||||
|
@ -1092,7 +1092,7 @@
|
|||
this.labelContact6.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelContact6.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelContact6.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelContact6.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact6.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelContact6.LineSpacing = 0F;
|
||||
this.labelContact6.Location = new System.Drawing.Point(189, 200);
|
||||
this.labelContact6.Name = "labelContact6";
|
||||
|
@ -1115,7 +1115,7 @@
|
|||
this.smartLabel23.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel23.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel23.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel23.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel23.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel23.LineSpacing = 0F;
|
||||
this.smartLabel23.Location = new System.Drawing.Point(53, 170);
|
||||
this.smartLabel23.Name = "smartLabel23";
|
||||
|
@ -1138,7 +1138,7 @@
|
|||
this.smartLabel21.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel21.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel21.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel21.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel21.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel21.LineSpacing = 0F;
|
||||
this.smartLabel21.Location = new System.Drawing.Point(53, 80);
|
||||
this.smartLabel21.Name = "smartLabel21";
|
||||
|
@ -1161,7 +1161,7 @@
|
|||
this.smartLabel22.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel22.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel22.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel22.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel22.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel22.LineSpacing = 0F;
|
||||
this.smartLabel22.Location = new System.Drawing.Point(53, 140);
|
||||
this.smartLabel22.Name = "smartLabel22";
|
||||
|
@ -1217,7 +1217,7 @@
|
|||
this.smartLabel3.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel3.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel3.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel3.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel3.LineSpacing = 0F;
|
||||
this.smartLabel3.Location = new System.Drawing.Point(53, 49);
|
||||
this.smartLabel3.Name = "smartLabel3";
|
||||
|
@ -1240,7 +1240,7 @@
|
|||
this.smartLabel4.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel4.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel4.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel4.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel4.LineSpacing = 0F;
|
||||
this.smartLabel4.Location = new System.Drawing.Point(53, 79);
|
||||
this.smartLabel4.Name = "smartLabel4";
|
||||
|
@ -1298,7 +1298,7 @@
|
|||
this.smartLabel5.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel5.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel5.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel5.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel5.LineSpacing = 0F;
|
||||
this.smartLabel5.Location = new System.Drawing.Point(53, 109);
|
||||
this.smartLabel5.Name = "smartLabel5";
|
||||
|
@ -1321,7 +1321,7 @@
|
|||
this.smartLabel6.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel6.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel6.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel6.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel6.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel6.LineSpacing = 0F;
|
||||
this.smartLabel6.Location = new System.Drawing.Point(189, 49);
|
||||
this.smartLabel6.Name = "smartLabel6";
|
||||
|
@ -1344,7 +1344,7 @@
|
|||
this.smartLabel7.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel7.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel7.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel7.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel7.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel7.LineSpacing = 0F;
|
||||
this.smartLabel7.Location = new System.Drawing.Point(53, 139);
|
||||
this.smartLabel7.Name = "smartLabel7";
|
||||
|
@ -1367,7 +1367,7 @@
|
|||
this.labelSerialNo.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelSerialNo.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelSerialNo.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelSerialNo.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelSerialNo.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelSerialNo.LineSpacing = 0F;
|
||||
this.labelSerialNo.Location = new System.Drawing.Point(189, 79);
|
||||
this.labelSerialNo.Name = "labelSerialNo";
|
||||
|
@ -1391,7 +1391,7 @@
|
|||
this.smartLabel9.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel9.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel9.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel9.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel9.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel9.LineSpacing = 0F;
|
||||
this.smartLabel9.Location = new System.Drawing.Point(189, 109);
|
||||
this.smartLabel9.Name = "smartLabel9";
|
||||
|
@ -1414,7 +1414,7 @@
|
|||
this.smartLabel10.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel10.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel10.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel10.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel10.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel10.LineSpacing = 0F;
|
||||
this.smartLabel10.Location = new System.Drawing.Point(189, 139);
|
||||
this.smartLabel10.Name = "smartLabel10";
|
||||
|
@ -1437,7 +1437,7 @@
|
|||
this.smartLabel11.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel11.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel11.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel11.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel11.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel11.LineSpacing = 0F;
|
||||
this.smartLabel11.Location = new System.Drawing.Point(403, 109);
|
||||
this.smartLabel11.Name = "smartLabel11";
|
||||
|
@ -1460,7 +1460,7 @@
|
|||
this.smartLabel12.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.smartLabel12.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.smartLabel12.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.smartLabel12.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel12.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.smartLabel12.LineSpacing = 0F;
|
||||
this.smartLabel12.Location = new System.Drawing.Point(403, 139);
|
||||
this.smartLabel12.Name = "smartLabel12";
|
||||
|
@ -1483,7 +1483,7 @@
|
|||
this.labelControlVersion.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelControlVersion.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelControlVersion.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelControlVersion.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelControlVersion.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelControlVersion.LineSpacing = 0F;
|
||||
this.labelControlVersion.Location = new System.Drawing.Point(539, 109);
|
||||
this.labelControlVersion.Name = "labelControlVersion";
|
||||
|
@ -1506,7 +1506,7 @@
|
|||
this.labelDisplayVersion.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
|
||||
this.labelDisplayVersion.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
|
||||
this.labelDisplayVersion.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
|
||||
this.labelDisplayVersion.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelDisplayVersion.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelDisplayVersion.LineSpacing = 0F;
|
||||
this.labelDisplayVersion.Location = new System.Drawing.Point(539, 139);
|
||||
this.labelDisplayVersion.Name = "labelDisplayVersion";
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace INT_PT002.DataStore
|
||||
{
|
||||
public class ServoMotorAddress
|
||||
{
|
||||
// SaveAllParameters - 0x1020
|
||||
public static readonly int SaveAllParameters = 4128;
|
||||
// EEPROM - 0x6173h
|
||||
public static readonly int EEPROM = 24947;
|
||||
// Speed 0 - 0x4600
|
||||
public static readonly int Speed0 = 17920;
|
||||
// Speed 1 - 0x4601
|
||||
public static readonly int Speed1 = 17921;
|
||||
// Acceleration1 - 0x4611
|
||||
public static readonly int Acceleration1 = 17937;
|
||||
// Deceleration1 - 0x4621
|
||||
public static readonly int Deceleration1 = 17953;
|
||||
// CMD 0 - 0x4802
|
||||
public static readonly int CMD0 = 18434;
|
||||
// CMD 1 - 0x4806
|
||||
public static readonly int CMD1 = 18438;
|
||||
// CMD 2 - 0x480A
|
||||
public static readonly int CMD2 = 18442;
|
||||
// CMD 5 - 0x4816
|
||||
public static readonly int CMD5 = 18454;
|
||||
// CMD 6 - 0x481A
|
||||
public static readonly int CMD6 = 18458;
|
||||
// CMD 7 - 0x481E
|
||||
public static readonly int CMD7 = 18462;
|
||||
// CMD 8 - 0x4822
|
||||
public static readonly int CMD8 = 18466;
|
||||
// CMD 10 - 0x482A
|
||||
public static readonly int CMD10 = 18474;
|
||||
// CMD 11 - 0x482E
|
||||
public static readonly int CMD11 = 18478;
|
||||
// CMD 16 - 0x4842
|
||||
public static readonly int CMD16 = 18498;
|
||||
// CMD 17 - 0x4846
|
||||
public static readonly int CMD17 = 18502;
|
||||
// CMD 21 - 0x4862
|
||||
public static readonly int CMD21 = 18518;
|
||||
// CMD 25 - 0x4878
|
||||
public static readonly int CMD25 = 18534;
|
||||
// CMD 27 - 0x4886
|
||||
public static readonly int CMD27 = 18542;
|
||||
}
|
||||
}
|
|
@ -33,10 +33,10 @@
|
|||
this.smartForm1 = new SmartX.SmartForm();
|
||||
this.smartSerialPortLink = new SmartX.SmartSerialPort(this.components);
|
||||
this.smartFileCommunicationLog = new SmartX.SmartFile();
|
||||
this.timer = new System.Windows.Forms.Timer();
|
||||
this.smartFileIO = new SmartX.SmartFile();
|
||||
this.timer1 = new System.Windows.Forms.Timer();
|
||||
this.timerUserList = new System.Windows.Forms.Timer();
|
||||
this.smartConfigs = new SmartX.SmartConfigs();
|
||||
this.smartModbus = new SmartX.SmartModbus();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// smartForm1
|
||||
|
@ -82,19 +82,24 @@
|
|||
//
|
||||
this.smartFileCommunicationLog.FilePathName = "";
|
||||
//
|
||||
// timer
|
||||
//
|
||||
this.timer.Interval = 1000;
|
||||
this.timer.Tick += new System.EventHandler(this.timer_Tick);
|
||||
//
|
||||
// smartFileIO
|
||||
//
|
||||
this.smartFileIO.FilePathName = "";
|
||||
//
|
||||
// timer1
|
||||
// timerUserList
|
||||
//
|
||||
this.timer1.Interval = 1000;
|
||||
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
||||
this.timerUserList.Interval = 1000;
|
||||
this.timerUserList.Tick += new System.EventHandler(this.timerUserList_Tick);
|
||||
//
|
||||
// smartModbus
|
||||
//
|
||||
this.smartModbus.Baud_Rate = SmartX.SmartModbus.BAUDRATE._9600bps;
|
||||
this.smartModbus.Parity = System.IO.Ports.Parity.None;
|
||||
this.smartModbus.PortNo = SmartX.SmartModbus.COMPORTNO.COM1;
|
||||
this.smartModbus.ProtocolType = SmartX.SmartModbus.PROTOCOL.RTU;
|
||||
this.smartModbus.ReadTimeout = 500;
|
||||
this.smartModbus.SlaveAddress = 1;
|
||||
this.smartModbus.StopBits = System.IO.Ports.StopBits.One;
|
||||
//
|
||||
// FormMain
|
||||
//
|
||||
|
@ -115,10 +120,10 @@
|
|||
public SmartX.SmartForm smartForm1;
|
||||
private SmartX.SmartSerialPort smartSerialPortLink;
|
||||
private SmartX.SmartFile smartFileCommunicationLog;
|
||||
private System.Windows.Forms.Timer timer;
|
||||
private SmartX.SmartFile smartFileIO;
|
||||
private System.Windows.Forms.Timer timer1;
|
||||
private System.Windows.Forms.Timer timerUserList;
|
||||
private SmartX.SmartConfigs smartConfigs;
|
||||
private SmartX.SmartModbus smartModbus;
|
||||
|
||||
}
|
||||
}
|
|
@ -230,12 +230,13 @@ namespace INT_PT002.Forms
|
|||
|
||||
UserManager.IntializeUserManager(this.PathSystemFileFolder);
|
||||
|
||||
if (this.SystemConfig.AUTOMATIC_LOGOUT == 1)
|
||||
this.FlagAutomaticLogoutWarningTime = 30;
|
||||
else
|
||||
this.FlagAutomaticLogoutWarningTime = 60;
|
||||
//if (this.SystemConfig.AUTOMATIC_LOGOUT == 1)
|
||||
// this.FlagAutomaticLogoutWarningTime = 30;
|
||||
//else
|
||||
// this.FlagAutomaticLogoutWarningTime = 60;
|
||||
|
||||
UserManager.UserManager_AutoLogoutSetTimeout(this.SystemConfig.AUTOMATIC_LOGOUT, this.FlagAutomaticLogoutWarningTime);
|
||||
//UserManager.UserManager_AutoLogoutSetTimeout(this.SystemConfig.AUTOMATIC_LOGOUT, this.FlagAutomaticLogoutWarningTime);
|
||||
UserManager.UserManager_AutoLogoutSetTimeout(0, 0);
|
||||
}
|
||||
private void CreateForm()
|
||||
{
|
||||
|
@ -2409,6 +2410,103 @@ namespace INT_PT002.Forms
|
|||
this.smartFileIO.Close();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Modbus
|
||||
public void ModbusOpen()
|
||||
{
|
||||
if (this.smartModbus.IsOpen == true)
|
||||
this.smartModbus.PortClose();
|
||||
|
||||
this.smartModbus.PortOpen();
|
||||
}
|
||||
public void ModbusClose()
|
||||
{
|
||||
this.smartModbus.PortClose();
|
||||
}
|
||||
|
||||
public string ServoMotorRead1(int slaveAddress, int parameterAddress)
|
||||
{
|
||||
int value = 0;
|
||||
byte[] readData = new byte[2];
|
||||
|
||||
this.smartModbus.SlaveAddress = slaveAddress;
|
||||
this.smartModbus.ReadHoldingRegister(parameterAddress, 1, out readData);
|
||||
|
||||
Array.Reverse(readData);
|
||||
value = BitConverter.ToInt16(readData, 0);
|
||||
|
||||
return string.Format("{0}", value);
|
||||
}
|
||||
public string ServoMotorRead2(int slaveAddress, int parameterAddress)
|
||||
{
|
||||
int value = 0;
|
||||
byte[] readData = new byte[4];
|
||||
|
||||
this.smartModbus.SlaveAddress = slaveAddress;
|
||||
this.smartModbus.ReadHoldingRegister(parameterAddress, 2, out readData);
|
||||
|
||||
byte[] readData1 = new byte[4];
|
||||
readData1[0] = readData[1];
|
||||
readData1[1] = readData[0];
|
||||
readData1[2] = readData[3];
|
||||
readData1[3] = readData[2];
|
||||
|
||||
value = BitConverter.ToInt32(readData1, 0);
|
||||
|
||||
return string.Format("{0}", value);
|
||||
}
|
||||
public void ServoMotorWrite1(int slaveAddress, int parameterAddress, int value, SmartLabel label)
|
||||
{
|
||||
this.smartModbus.SlaveAddress = slaveAddress;
|
||||
if (this.smartModbus.WriteSingleRegister(parameterAddress, value) == SmartX.SmartModbus.EXCEPTIONCODE.SUCCESS)
|
||||
{
|
||||
//MessageBox.Show("쓰기완료");
|
||||
}
|
||||
label.Text = this.ServoMotorRead1(slaveAddress, parameterAddress);
|
||||
}
|
||||
public void ServoMotorWrite1(int slaveAddress, int parameterAddress, int value)
|
||||
{
|
||||
this.smartModbus.SlaveAddress = slaveAddress;
|
||||
if (this.smartModbus.WriteSingleRegister(parameterAddress, value) == SmartX.SmartModbus.EXCEPTIONCODE.SUCCESS)
|
||||
{
|
||||
//MessageBox.Show("쓰기완료");
|
||||
}
|
||||
}
|
||||
public void ServoMotorWrite2(int slaveAddress, int parameterAddress, int value, SmartLabel label)
|
||||
{
|
||||
byte[] data = BitConverter.GetBytes(value);
|
||||
|
||||
byte[] readData1 = new byte[4];
|
||||
readData1[0] = data[1];
|
||||
readData1[1] = data[0];
|
||||
readData1[2] = data[3];
|
||||
readData1[3] = data[2];
|
||||
|
||||
this.smartModbus.SlaveAddress = slaveAddress;
|
||||
if (this.smartModbus.WriteMultipleRegister(parameterAddress, 2, readData1) == SmartX.SmartModbus.EXCEPTIONCODE.SUCCESS)
|
||||
{
|
||||
//MessageBox.Show("쓰기완료");
|
||||
}
|
||||
label.Text = this.ServoMotorRead2(slaveAddress, parameterAddress);
|
||||
}
|
||||
public void ServoMotorWrite2(int slaveAddress, int parameterAddress, int value)
|
||||
{
|
||||
byte[] data = BitConverter.GetBytes(value);
|
||||
|
||||
byte[] readData1 = new byte[4];
|
||||
readData1[0] = data[1];
|
||||
readData1[1] = data[0];
|
||||
readData1[2] = data[3];
|
||||
readData1[3] = data[2];
|
||||
|
||||
this.smartModbus.SlaveAddress = slaveAddress;
|
||||
if (this.smartModbus.WriteMultipleRegister(parameterAddress, 2, readData1) == SmartX.SmartModbus.EXCEPTIONCODE.SUCCESS)
|
||||
{
|
||||
//MessageBox.Show("쓰기완료");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region Override Member
|
||||
|
@ -2442,10 +2540,9 @@ namespace INT_PT002.Forms
|
|||
|
||||
// timer1 Get user List Name
|
||||
//UserManager.UserManager_GetUserListName();
|
||||
this.timer1.Enabled = true;
|
||||
this.timerUserList.Enabled = true;
|
||||
|
||||
// 화면 시계 표시 타이머
|
||||
this.timer.Enabled = true;
|
||||
this.ModbusOpen();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -2485,13 +2582,9 @@ namespace INT_PT002.Forms
|
|||
this.SetTrackingAlarmData(alarm, status);
|
||||
}
|
||||
|
||||
private void timer_Tick(object sender, EventArgs e)
|
||||
private void timerUserList_Tick(object sender, EventArgs e)
|
||||
{
|
||||
this.ChildFormMainDisplay.UpdateDisplayTime();
|
||||
}
|
||||
private void timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
this.timer1.Enabled = false;
|
||||
this.timerUserList.Enabled = false;
|
||||
UserManager.UserManager_GetUserListName();
|
||||
}
|
||||
|
||||
|
|
|
@ -215,17 +215,17 @@
|
|||
<metadata name="smartFileCommunicationLog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>290, 17</value>
|
||||
</metadata>
|
||||
<metadata name="timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>501, 17</value>
|
||||
</metadata>
|
||||
<metadata name="smartFileIO.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>175, 17</value>
|
||||
</metadata>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>582, 17</value>
|
||||
<metadata name="timerUserList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>501, 17</value>
|
||||
</metadata>
|
||||
<metadata name="smartConfigs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>669, 17</value>
|
||||
<value>625, 17</value>
|
||||
</metadata>
|
||||
<metadata name="smartModbus.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>750, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
|
||||
<value>WEBPAD</value>
|
||||
|
|
|
@ -294,6 +294,7 @@
|
|||
this.smartButton4.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
|
||||
this.smartButton4.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton4.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton4.Visible = false;
|
||||
this.smartButton4.Click += new System.EventHandler(this.smartButton4_Click);
|
||||
//
|
||||
// smartButton3
|
||||
|
@ -329,6 +330,7 @@
|
|||
this.smartButton3.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
|
||||
this.smartButton3.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton3.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton3.Visible = false;
|
||||
this.smartButton3.Click += new System.EventHandler(this.smartButton3_Click);
|
||||
//
|
||||
// labelCommunicationStatus
|
||||
|
@ -1114,6 +1116,7 @@
|
|||
this.smartButton2.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
|
||||
this.smartButton2.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton2.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton2.Visible = false;
|
||||
this.smartButton2.Click += new System.EventHandler(this.smartButton2_Click);
|
||||
//
|
||||
// buttonRecipeNo
|
||||
|
@ -1838,6 +1841,7 @@
|
|||
this.smartButton1.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
|
||||
this.smartButton1.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.smartButton1.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.smartButton1.Visible = false;
|
||||
this.smartButton1.Click += new System.EventHandler(this.smartButton1_Click);
|
||||
//
|
||||
// smartGroupBox1
|
||||
|
|
Loading…
Reference in New Issue