예제 #1
0
        public int GetProgramBlock(S7BlockType blockType, int number, byte[] buffer, ref int length)
        {
            Console.WriteLine("length:" + length);
            int a = daveGetProgramBlock(Pointer, (int)blockType, number, buffer, ref length);

            Console.WriteLine("length:" + length);
            return(a);
        }
예제 #2
0
        public static string AreaName(S7BlockType blockType)
        {
            byte[] s = new byte[255];
            int    i = daveAreaName((int)blockType);

            daveStringCopy(i, s);
            string st = "";

            i = 0;
            while (s[i] != 0)
            {
                st = st + (char)s[i];
                i++;
            }
            return(st);
        }
예제 #3
0
 public int ListBlocksOfType(S7BlockType blockType, byte[] buffer)
 {
     return(daveListBlocksOfType(Pointer, (int)blockType, buffer));
 }
예제 #4
0
 public int ListBlocksOfType(S7BlockType blockType, byte[] buffer)
 {
     return(mConn.ListBlocksOfType(blockType, buffer));
 }
예제 #5
0
 public int GetProgramBlock(S7BlockType blockType, int number, byte[] buffer, ref int length)
 {
     return(mConn.GetProgramBlock(blockType, number, buffer, ref length));
 }