wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdRequest

MnBdRequest

Sends a request to the specified main board device.

int MnBdRequest(int nDev, int nReq, int nWaitAck);

Parameters

  • nDev - main board device number
  • nReq - request code
  • nWaitAck - WAIT_ACK to wait for result, or NO_WAIT_ACK to continue processing

Return Value

  • If WAIT_ACK specified returns OK (MNBD_REQ_ACK_RCVD) if successful, MNBD_REQ_NACK_RCVD if error response, MNBD_REQ_TIMEOUT if no response (MnBdRequest retries up to five times).

Remarks

Examples

if(MnBdRequest(1, MNBD_REQ_ZERO_SCALE, WAIT_ACK) != OK)
{
    DisplayText(0, 0, "Error zeroing scale");
}

The above MnBdRequest is equivalent to ZeroScale(1).

See Also

Last modified 7 years ago Last modified on 04/12/18 12:57:51
Note: See TracWiki for help on using the wiki.