private void BuildS1F14(SECSTransaction trans) { trans.Secondary.Root.Name = "CRA"; SECSItem item = trans.Secondary.Root.AddNew("L"); SECSItem itemCommAck = item.AddNew("COMMACK", "Establish communications acknowledge code"); itemCommAck.Format = SECS_FORMAT.BINARY; itemCommAck.Value = 0; SECSItem itemMCInfo = item.AddNew("L"); itemMCInfo.AddNew("MDLN", "Equipment Model Type"); itemMCInfo.Item("MDLN").Format = SECS_FORMAT.ASCII; itemMCInfo.Item("MDLN").Value = "LH620"; itemMCInfo.AddNew("SOFTREV", "Software revision code"); itemMCInfo.Item("SOFTREV").Format = SECS_FORMAT.ASCII; itemMCInfo.Item("SOFTREV").Value = "1.2.0"; trans.Reply(); }
public void SendS1F3(WinSECS host) { SECSTransaction trans = new SECSTransaction(1, 3); trans.Primary.Root.Name = "SSR"; trans.Primary.Root.Description = "Selected equipment status request"; SECSItem item = trans.Primary.Root.AddNew("L"); SECSItem svid = item.AddNew("SVID", "Status variable ID"); svid.Format = SECS_FORMAT.U4; svid.Value = 1001; SECSItem svid2 = svid.Duplicate(); svid2.Format = SECS_FORMAT.U4; svid2.Value = 1002; SECSItem svid3 = svid.Duplicate(); svid3.Format = SECS_FORMAT.U4; svid3.Value = 1003; trans.ReplyExpected = true; trans.Send(host);; }