Esempio n. 1
0
 public void Set料斗和指示灯(byte 料斗号, int LedStart, int LedCount)
 {
     SetItemValue(PLCTagName.HPNum, 料斗号);
     SetItemValue(PLCTagName.LedStat, OPCAPI.GetLedValue(LedStart, LedCount));
     string[] s = { PLCTagName.HPNum.ToString(), PLCTagName.LedStat.ToString() };
     Write(s);
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     myOPC.SetItemValue(PLCTagName.HPNum, HPNum.Value);
     myOPC.SetItemValue(PLCTagName.LedStat, OPCAPI.GetLedValue((int)LEDStart.Value, (int)LightNum.Value));
     string[] s = { PLCTagName.HPNum.ToString(), PLCTagName.LedStat.ToString() };
     myOPC.Write(s);
 }