Files
Mapo-IOB-WIN/Test-Beckhoff/Form1.cs
T
Samuele E. Locatelli eabd3a51b4 esempio write vars
2021-11-02 16:16:44 +01:00

33 lines
782 B
C#

using System;
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;
namespace Test_Beckhoff
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//var myADS = new ADS("local", 851);
var myADS = new ADS("5.97.72.66.1.1", 851);
var myArtCorr = myADS.ReadVariabile("VarADS.NomeDisegno");
myADS.WriteVariabile("VarADS.NomeDisegnoRichiesto", "NUOVO DISEGNO");
myADS.WriteVariabile("VarADS.bCambioArticolo", 1);
}
}
}