The fault code 151 means that MsgOut is smaller than 12 Byte when 'Modbus Master Messaging' function is selected.
To prevent this fault do the following:
1. Increase the array size of variable defined for MsgOut parameter.
2. Use array of same size as defined in step#1 for the variable of parameter MsgIN.