12345678910111213141516171819202122 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using WCS.Core;
- using WCS.Entity;
- using HslCommunication.Profinet.Melsec;
- namespace WCS.Service.PLCAccessors
- {
- public class PLCAccessorsCreater : IPLCAccessorCreater
- {
- public IPLCAccessor Create(WCS_PLC data)
- {
- if (data.TYPE == PLCType.三菱)
- return new MelsecPLC(data.IP, data.PORT);
- else
- throw new Exception("不支持此PLC");
- }
- }
- }
|