2
schangxiang@126.com
2024-07-03 e8cbb2cb2bda1fb0bb60c7a8f29383fcc73eb76c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
using iWare_SCADA_Model;
 
namespace iWare_SCADA_BusinessLogical
{
    public class PLCFactory
    {
        public static PLCService GetOPCService(PLCServiceTypeEnum _OPCServiceTypeEnum, HslCommunicationParam hslcpParam)
        {
            PLCService plcService = null;
            switch (_OPCServiceTypeEnum)
            {
                case PLCServiceTypeEnum.Siemens_HslCommunicationService:
                    plcService = new Siemens_HslCommunicationService(hslcpParam);
                    break;
            }
            return plcService;
        }
    }
}