Package modbuspal.slave

Examples of modbuspal.slave.ModbusPduProcessor.processPDU()


            ModbusPalRecorder.recordOutgoing(slaveID,buffer,offset,length);
            modbusPalProject.notifyExceptionResponse();
            return length;
        }

        int length = mspp.processPDU(functionCode, slaveID, buffer, offset, modbusPalProject.isLeanModeEnabled());
        if(length<0)
        {
            System.err.println("Illegal function code "+functionCode);
            length = makeExceptionResponse(functionCode,XC_ILLEGAL_FUNCTION, buffer, offset);
        }
View Full Code Here


            req.notifyExceptionResponse();
            modbusPalProject.notifyExceptionResponse();
            return false;
        }

        boolean result = mspp.processPDU(req, slaveID, buffer, offset, modbusPalProject.isLeanModeEnabled());
        if(result==false)
        {
            System.err.println("Illegal function code "+functionCode);
            req.notifyPDUnotServiced();
            modbusPalProject.notifyPDUnotServiced();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.