Advantech EMCB-200U handleiding

22 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 14 van 22
14
3.3.1 EMCBMsgTx
UINT32 EMCB_API EMCBMsgTx(BYTE ch, UINT32 ID, BYTE EID, BYTE RTR,
BYTE *pData, BYTE Len)
Description:
Send a CAN message with non-blocking mode, if CANBus device is busy that will return status
EMCB_STATUS_TIMEOUT after 100ms. The main message to transmit is Standard Data
Frame and Extended Data Frame that this function supports both 2.0A and 2.0B version. This
function also supports Remote Frame.
Parameters:
ch
Select the CAN channel.
ID
Select a target devices ID that intends to send to.
EID
Select the version of the target devices ID. See Table 2.
RTR
Select this transmits message type. See Table 3.
pData
Pointer to a buffer that the data will be sent. When RTR = 1 (a Remote Frame Message) or
Len = 0, pData will be ignored.
Len
The number of the byte of data length that will be sent. The maximum value is eight.
Return Status Code:
Condition
Return Value
Success
EMCB_STATUS_SUCCESS
Library Uninitialized
EMCB_STATUS_NOT_INITIALIZED
pData == NULL
EMCB_STATUS_INVALID_PARAMETER
(Len > 8) || (EID > 1) || (RTR > 1)
EMCB_STATUS_INVALID_PARAMETER
Unknown Channel
EMCB_STATUS_UNSUPPORTED
Tx Failed
EMCB_STATUS_WRITE_ERROR
Tx busy
EMCB_STATUS_WRITE_BUSY
Tx Timeout
EMCB_STATUS_TIMEOUT
Else
EMCB_STATUS_ERROR

Bekijk gratis de handleiding van Advantech EMCB-200U, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.

Productinformatie

MerkAdvantech
ModelEMCB-200U
CategorieNiet gecategoriseerd
TaalNederlands
Grootte2219 MB