您当前的位置:五五电子网电子知识plc技术PLC入门运用VC#编程通过OPC方式实现PC机和西门子 正文
运用VC#编程通过OPC方式实现PC机和西门子

运用VC#编程通过OPC方式实现PC机和西门子

点击数:7352 次   录入时间:03-04 11:59:32   整理:http://www.55dianzi.com   PLC入门
server.AddItems("maiker1",m2,nt2);
nt[0]=nt1[0];nt[1]=nt1[1];

<3>、添加两个单选按钮,用于选择某个组,并编写相应的程序
string err,err1;
if(server==null) return;
if(radioButton1.Checked)
{ nt[0]=nt1[0];nt[1]=nt1[1];
server.AciveGroup("maiker",true,out err);
server.AciveGroup("maiker1",false,out err1);

}
else
{
nt[0]=nt2[0];nt[1]=nt2[1];
server.AciveGroup("maiker1",true,out err);
server.AciveGroup("maiker",false,out err1);

}

<4>、添加文本框、按钮等,并编写委托执行函数:
private void DataChange(object[] obj,int[] itemsID)
{
for(int j=0;j {
if(itemsID[j]==nt[0])

上一页  [1] [2] [3]  下一页


本文关键字:暂无联系方式PLC入门plc技术 - PLC入门