| | |
| | | { |
| | | get { return listPlcUtil; } |
| | | } |
| | | // 交互点集合 |
| | | public static List<WcsDevice> plcDevices |
| | | { |
| | | get { return listPlcDevice; } |
| | | } |
| | | |
| | | public static event EventHandler DeviceValueChangeEvent; |
| | | static PLCTaskAction() |
| | | { |
| | |
| | | dto.listStation = listPlcStation.Where(s => s.DeviceId == modDevice.Id).ToList(); |
| | | dto.listDevice = listDevice.Where(s => s.StationNum == modDevice.StationNum && s.Level == DeviceLevelEnum.Station).ToList(); |
| | | //这里触发值变更事件 |
| | | //DeviceValueChangeEvent?.Invoke(dto, EventArgs.Empty); |
| | | DeviceValueChangeEvent?.Invoke(dto, EventArgs.Empty); |
| | | } |
| | | else if (!modPlcUtil.Connected) |
| | | { |