| | |
| | | namespace HH.WCS.Mobox3.AnGang { |
| | | internal class Program |
| | | { |
| | | [STAThread] |
| | | static void Main(string[] args) |
| | | { |
| | | //基础设置信息初始化 |
| | |
| | | //2.0 开启tcp |
| | | StartTcp(); |
| | | //3.0 开启S7 |
| | | StartS7(); |
| | | //StartS7(); |
| | | //4.0 开启Modbus |
| | | StartModbus(); |
| | | //StartModbus(); |
| | | |
| | | //开启相机 |
| | | StartSnap(); |
| | | |
| | | //5.0 开启线程 |
| | | var rc = HostFactory.Run(x => |
| | |
| | | // Console.WriteLine("S7ProductionLineHelper," + item.ProductionLine_IP); |
| | | // } |
| | | //} |
| | | |
| | | ////称重的S7设备 |
| | | //var weightPLCDevice = Settings.WeightDevices; |
| | | |
| | | //if (weightPLCDevice.Count > 0) |
| | | //{ |
| | | // foreach (var item in weightPLCDevice) |
| | | // { |
| | | // new S7Helper(item.WeightDevice_IP, (short)item.WeightDevice_Rack, (short)item.WeightDevice_Slot); |
| | | // Console.WriteLine("S7WeightDeviceHelper," + item.WeightDevice_Name); |
| | | // } |
| | | //} |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | //} |
| | | } |
| | | |
| | | private static void StartSnap() { |
| | | //new SnapManager(Settings.Snap); |
| | | new SnapManager(Settings.Config.Snap[0]); |
| | | } |
| | | |
| | | public class WorkThread |
| | | { |
| | | public void Start() |