schangxiang@126.com
2024-09-11 dfbe7cb2992df2d4195b12026d1f9e0a7423460e
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;
        }
    }
}