You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lj_plc/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Pl/PlcConnect.cs

38 lines
908 B
C#

1 year ago
//using HslCommunication.Profinet.Siemens;
1 year ago
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
1 year ago
//namespace Mesnac.Action.ChemicalWeighing.Pl
//{
// public class PlcConnect
// {
1 year ago
// private static readonly Lazy<SiemensS7Net> lazy = new Lazy<SiemensS7Net>(() => new PlcConnect().SiemensS7NetConnection());
// public static SiemensS7Net Instance => lazy.Value;
1 year ago
// private PlcConnect()
// {
1 year ago
// }
1 year ago
// private SiemensS7Net SiemensS7NetConnection()
// {
// SiemensPLCS siemensPLCS = SiemensPLCS.S1500;
// SiemensS7Net s7 = new SiemensS7Net(siemensPLCS);
// s7.IpAddress = PlcAddressUtil.IpAddress;
// s7.Port = PlcAddressUtil.Port;
// s7.ConnectServer();
// return s7;
// }
// }
//}