Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public int ListBlocksOfType(S7BlockType blockType, byte[] buffer)
 {
     return(daveListBlocksOfType(Pointer, (int)blockType, buffer));
 }
Ejemplo n.º 4
0
 public int ListBlocksOfType(S7BlockType blockType, byte[] buffer)
 {
     return(mConn.ListBlocksOfType(blockType, buffer));
 }
Ejemplo n.º 5
0
 public int GetProgramBlock(S7BlockType blockType, int number, byte[] buffer, ref int length)
 {
     return(mConn.GetProgramBlock(blockType, number, buffer, ref length));
 }