24.08.2013 Views

esd Protocol for CAN Modules - esd electronics, Inc.

esd Protocol for CAN Modules - esd electronics, Inc.

esd Protocol for CAN Modules - esd electronics, Inc.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.3 Process TxIds<br />

3 - 20<br />

Commands and Parameters<br />

By this command one or more Tx identifiers are allocated to the module, depending on the module<br />

type, by which it is able to transmit the data onto the <strong>CAN</strong> (set TxIds).<br />

The new Tx identifier replaces immediately after he had been received by the module the default<br />

identifier adjusted by the coding switches. If the new Tx identifier should remain after a RESET or a<br />

power-down, it has to be filed into the local EEPROM by command 'store parameter'.<br />

Apart from that the module can be <strong>for</strong>ced to transmit a reply about the Tx identifiers actually used<br />

by it onto the <strong>CAN</strong> by the Tx identifier CTxId (request TxIds).<br />

Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6<br />

Function Command Sub command Not used Module no. Parameter 1 Parameter 2<br />

Always<br />

Request: $02<br />

Selected<br />

allocate with<br />

Value $00...n module no.<br />

$00<br />

Set: $82<br />

$01...$FF<br />

Table 3.3.1: Bytes of the command set/request TxIds<br />

CTxId<br />

$0000...$07FF<br />

TxId<br />

$0000...$07FF<br />

Command... By the command $02 the actual Tx identifiers are requested by the module.<br />

After this request the module transmits the in<strong>for</strong>mation on the identifier<br />

'CTxId', entered into byte 5 and 6.<br />

By the command $82 new Tx identifiers (TxId) to transmit I/O data are<br />

allocated to the module corresponding to the sub command. The new Tx<br />

identifiers are interchanged by byte 5 and 6.<br />

Sub command... By the sub command it is selected which Tx identifier should be<br />

interchanged. Depending on the module type a different number of Tx<br />

identifiers can be set.<br />

<strong>esd</strong> <strong>Protocol</strong> <strong>for</strong> <strong>CAN</strong> <strong>Modules</strong> Rev. 3.2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!