Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using S7.Net;
- namespace PLCComunication
- {
- public class PLCReader
- {
- Plc plc1 = new Plc(CpuType.S7400, "192.168.0.18", 0, 3);
- public string GetNumber()
- {
- plc1.Open();
- return plc1.Read("DB302.DBW 140").ToString();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement