add temp1, temp2
This commit is contained in:
@@ -101,6 +101,8 @@ namespace AGVEmulator
|
||||
serAGV.BaudRate = 57600;
|
||||
// serPLC.BaudRate = 57600;
|
||||
trackBar1_Scroll(null, null);
|
||||
trbT2_Scroll(null, null);
|
||||
trbT1_Scroll(null, null);
|
||||
timer1.Start();
|
||||
|
||||
//plc inout 이름 설정
|
||||
@@ -219,7 +221,7 @@ namespace AGVEmulator
|
||||
agvViewer1.MarkTouched += AgvViewer1_MarkTouched;
|
||||
agvViewer1.Command += AgvViewer1_Command;
|
||||
}
|
||||
|
||||
|
||||
void MakeViewer()
|
||||
{
|
||||
//태그목록
|
||||
@@ -340,7 +342,7 @@ namespace AGVEmulator
|
||||
button18.PerformClick();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
char GetGroupItemCheckbox(GroupBox grp)
|
||||
@@ -411,8 +413,8 @@ namespace AGVEmulator
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
AGV.WriteData("ACK");
|
||||
@@ -474,7 +476,7 @@ namespace AGVEmulator
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
@@ -568,15 +570,30 @@ namespace AGVEmulator
|
||||
private void button6_Click(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
var tagno =(uint) nudTagNo.Value;
|
||||
this.XBE.SendGotoTag( target, tagno);
|
||||
var tagno = (uint)nudTagNo.Value;
|
||||
this.XBE.SendGotoTag(target, tagno);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var target = (byte)nudIDAgv.Value;
|
||||
var tagno = (uint)numericUpDown2.Value;
|
||||
this.XBE.SendCurrentPos(target,tagno);
|
||||
this.XBE.SendCurrentPos(target, tagno);
|
||||
}
|
||||
|
||||
UInt16 Temp1, Temp2;
|
||||
private void trbT1_Scroll(object sender, EventArgs e)
|
||||
{
|
||||
//값에 /10해서 표시한다.
|
||||
Temp1 =(UInt16) trbT1.Value;
|
||||
label10.Text = $"{Temp1 / 10f}º";
|
||||
|
||||
}
|
||||
|
||||
private void trbT2_Scroll(object sender, EventArgs e)
|
||||
{
|
||||
Temp2 = (UInt16)trbT2.Value;
|
||||
label11.Text = $"{Temp2 / 10f}º";
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user