using System; using System.Collections; using SystemFramework; using BasicData; using bizFacade; namespace MisDataName { public partial class MisData { //TagTypeID //X Bit(bool)----Boolean true=-1,false=0 11 1.0 //B Byte(unsigned) ----1 byte Integer without sign 17 1 //W Word(unsigned) ----2 byte Integer without sign 18 2 //D Double word(unsigned) ----4 byte Integer without sign 19 4 //CHAR Byte(signed)----1 byte Integer with sign 16 1 //INT Word(signed) ----2 byte Integer with sign 2 2 //DINT Double word(signed) ----4 byte Integer with sign 3 4 //REAL Float point number----4 byte float number 4 4 //String string 8 每字符一字节 //DT Date and time 8 bytes BCD format 7 8 static public void WritePLC(string tagID, string tagValue) { MesDataFunction.OpcOperation.WritePLC(tagID, tagValue); } static void WritePLC(string tagID, object tagValue) { Write_TagID(tagID, tagValue); } static public void WritePLC(int tagType, string opName, object tagValue) { Write_TagTypeID(tagType, opName, tagValue); } static public object ReadPLC(int tagType, string opName) { object obj = null; Read_TagTypeID(tagType,opName, out obj); return obj; } /// /// 获取质量数据Hashtable /// /// /// static public Hashtable ReadPLC_Sync_DataList_MesRead(string opName) { if (IsDemoMesServer == 1) { Hashtable valueList=new Hashtable(); ReadPLC_Sync_ValueList(opName, out valueList); return valueList; } else { return (Hashtable)MesDataFunction.OpcOperation.ReadPLC_Sync_DataList_MesRead(opName); } } } }