schangxiang@126.com
2024-09-10 03de13b2a5357916a7b6ec2f3e8a9ff6ca2e3970
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;
        }
    }
}