Program.cs
3.26 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using System.Linq;
namespace HHECS.Test
{
class Program
{
static void Main(string[] args)
{
try
{
//DALHelper.Constr = "server=172.16.29.45;user id=root;password=hhsoftware;persistsecurityinfo=True;database=huahengwcs4;SslMode=none;Charset=utf8mb4;Allow User Variables=True";
////DALHelper.SyncTable();
////生成设备类型 -- 示例
//GenTools.GenEquipmentType_PLCHeartbeat(true);
//GenTools.GenEquipmentType_SingleForkSRM(true);//单叉堆垛机
//GenTools.GenEquipmentType_DoubleForkSRM(true);//双叉堆垛机
//GenTools.GenEquipmentType_SingleForkSSRM(true);//单叉高速堆垛机
//GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForPortIn, needRequest: true, delete: true);
//GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForPortOut, needArrive: true, delete: true);
//GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForPortInOrOut, needRequest: true, needArrive: true, delete: true);
//GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForSRMIn, needArrive: true, delete: true);
//GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForSRMOut, needRequest: true, delete: true);
//GenTools.GenEquipmentType_Station(EquipmentTypeConst.StationForSRMInOrOut, needRequest: true, needArrive: true, delete: true);
//GenTools.GenEquipmentType_StationMonitor(true);
////生成PLC及设备数据 -- 示例
////添加PLC
//GenTools.GenPLC(GenModelProvider.TestGenPLCModels(), true);
////添加堆垛机
//GenTools.GenSRM(GenModelProvider.TestGenStockers(), true);
////入库口、分拣口、出口库、接入接触站台
//GenTools.GenStation(GenModelProvider.TestGetStationGenModels(), "192.168.10.30", "CS0001", true);
////站台监控
//GenTools.GenStationMonitor(3002, 1001, 1020, new int[] { 1005, 1009 }, "192.168.10.30", "W0001", delete: true, offsetstart: 0);
//GenTools.GenStationMonitor(3002, "192.168.10.30", "W0001", delete: true, offsetstart: 0, new int[] { 1001, 1006, 1008, 1004, 1003, 2001, 2009 });
////字典刷新
//GenTools.GenDictDetail(GenModelProvider.TestGetDictDetailGenModels(), true);
////添加路由
//GenTools.GenABCRoute(GenModelProvider.TestGetABCRouteModels(), true);
////库位
//LocationTools.CreateLocations(GenModelProvider.GetLocationAddModels(), true);
//LocationTools.DeleteLocations(rowBeging:5, rowEnd:5, columnBeging:11, columnEnd:12, layerBeging:1, layerEnd:7, "W0001");
//LocationTools.DeleteLocations(rowBeging: 1, rowEnd: 8, columnBeging: 27, columnEnd: 27, layerBeging: 1, layerEnd: 7, "W0001");
Console.WriteLine("生成成功!");
Console.Read();
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}
}
}