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