示例#1
0
        public async Task <float[]> ReadBigFloatDataAsync(ushort startAddress, byte bitAddress, ushort count, byte memoryAreaCode)
        {
            var sid = IncrementSid();
            var cmd = FinsDriver.ReadDataCommand(new Header(sid, true), memoryAreaCode, startAddress, bitAddress, count);

            _responses[sid].RecType = RecDataType.Big_float;
            return((await CommandAsync(sid, cmd)).FloatData);
        }
示例#2
0
        public float[] ReadDOFloatData(ushort startAddress, byte bitAddress, ushort count, byte memoryAreaCode)
        {
            var sid = IncrementSid();
            var cmd = FinsDriver.ReadDataCommand(new Header(sid, true), memoryAreaCode, startAddress, bitAddress, count);

            _responses[sid].RecType = RecDataType.DO_float;
            return(Read(sid, cmd).FloatData);
        }