Professional Documents
Culture Documents
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SymbolFactoryDotNet;
using S7.Net;
using S7.Net.Types;
namespace WindowsFormsApp4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Plc plc = new Plc(CpuType.S71200, "127.0.0.1", 0, 0);
byte[] color = new byte[20];
plc.Write("DB1.DBX0.1", 1);
plc.Write("DB1.DBX0.1", 0);
}
plc.Write("DB1.DBX0.7", 1);
}