Exemple #1
0
        public byte[] readQ(int location, int length)
        {
            byte[] b      = new byte[length];
            int    result = MyClient.ABRead(location, length, b);

            if (result == 0)
            {
                return(b);
            }
            else
            {
                string error = "Problem reading Q, " + location + ", " + length;
                throw new wPlcException(error, result);
            }
        }