Package com.serotonin.modbus4j.locator

Examples of com.serotonin.modbus4j.locator.BinaryLocator


        if (bit != -1) {
            if (registerRange != RegisterRange.HOLDING_REGISTER
                    && registerRange != RegisterRange.INPUT_REGISTER) {
                //throw a bad configuration exception.
            } else {
                modbusLocator = new BinaryLocator(slaveId, registerRange, offset, bit);
                //modbusLocator = new ModbusLocator(slaveId,registerRange,offset,dataType,bit);
            }
        } else {
            if (registerRange == RegisterRange.COIL_STATUS) {
                modbusLocator = new BinaryLocator(slaveId, registerRange, offset);
            } else {
                modbusLocator = new NumericLocator(slaveId, registerRange, offset, dataType);
            }
        }
        //TODO: use the number of registers
View Full Code Here

TOP

Related Classes of com.serotonin.modbus4j.locator.BinaryLocator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.