Form5.cs
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using Mushiny;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TheMachine.UC;
namespace TheMachine
{
public partial class Form5 : Form
{
System.Timers.Timer CTU_test_timer = new System.Timers.Timer();
#region 测试
private void CTU_test_timer_Tick(object sender, EventArgs e)
{
List<uint> planway = new List<uint>() { 427, 525, 3001, 3002, 3003, 3004,
3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012,
3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 539, 487 };
List<uint> currentway = new List<uint>() { 427, 525, 3001, 3002, 3003, 3004,
};
List<uint> occupyway = new List<uint>() { 427, 525, 3001,
};
Color ctuclor = Color.Red;
Color planclor = Color.Orange;
Color currentclor = Color.Yellow;
Color occupyclor = Color.Green;
uC_AGVMap1.Update_CTU(3037, planway, currentway, occupyway, ctuclor, planclor, currentclor, occupyclor, "正常");
}
#endregion
public Form5()
{
InitializeComponent();
CTU_test_timer.Enabled = true;
CTU_test_timer.Elapsed += CTU_test_timer_Tick;
CTU_test_timer.Interval = 100;
CTU_test_timer.Start();
}
}
}