| | |
| | | using DocumentFormat.OpenXml.Bibliography; |
| | | using DocumentFormat.OpenXml.Drawing; |
| | | using Elastic.Clients.Elasticsearch; |
| | | using IoTClient; |
| | | using IoTClient.Clients.Modbus; |
| | |
| | | public class PLCUtil |
| | | { |
| | | public readonly long PlcId; |
| | | public readonly string PlcIP; |
| | | private SiemensClient _client; |
| | | private WcsPlc _modPlc; |
| | | private readonly object OLock = new object(); |
| | | public PLCUtil(WcsPlc modPlc) |
| | | { |
| | | PlcId = modPlc.Id; |
| | | PlcIP = modPlc.IP; |
| | | _modPlc = modPlc; |
| | | _client = new SiemensClient((SiemensVersion)modPlc.PLCType, modPlc.IP, modPlc.Port); |
| | | _client.Open(); |