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);
}