Component: CAN Bus BL0140 (E-blocks 2): Difference between revisions
Appearance
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| Line 546: | Line 546: | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | SPI | | width="90%" class="mtx-class-propfolder" | SPI | ||
|- | |- | ||
| Line 605: | Line 605: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | TX Buffer 0 | | width="90%" class="mtx-class-propfolder" | TX Buffer 0 | ||
|- | |- | ||
| Line 659: | Line 659: | ||
| colspan="2" | TX Buffer 0 Data Byte 7 | | colspan="2" | TX Buffer 0 Data Byte 7 | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | TX Buffer 1 | | width="90%" class="mtx-class-propfolder" | TX Buffer 1 | ||
|- | |- | ||
| Line 713: | Line 713: | ||
| colspan="2" | TX Buffer 1 Data Byte 7 | | colspan="2" | TX Buffer 1 Data Byte 7 | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | TX Buffer 2 | | width="90%" class="mtx-class-propfolder" | TX Buffer 2 | ||
|- | |- | ||
| Line 767: | Line 767: | ||
| colspan="2" | TX Buffer 2 Data Byte 7 | | colspan="2" | TX Buffer 2 Data Byte 7 | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | RX Buffer 0 | | width="90%" class="mtx-class-propfolder" | RX Buffer 0 | ||
|- | |- | ||
| Line 776: | Line 776: | ||
| colspan="2" | RX Buffer 0 Message Receive Mode | | colspan="2" | RX Buffer 0 Message Receive Mode | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" class="mtx-class-propfolder" | RX Buffer 1 | | width="90%" class="mtx-class-propfolder" | RX Buffer 1 | ||
|- | |- | ||
Latest revision as of 14:36, 13 July 2026
| Author | |
| Version | 1.0 |
| Category | E-blocks 2 |
CAN_Bus_BL0140 component
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ChangeRate
| ChangeRate | |
| Simple attempt to alter the bus rate of the CAN. External CAN channels only, | |
| Rate | |
| Rate: 0-3 where 0=125, 1=250, 2=500, 3=1000 | |
| Return | |
CheckRx
| CheckRx | |
| Checks to see if any messages are available for 'Buffer' specified | |
| Buffer | |
| Send buffer: 0 to 1 | |
| Return | |
GetRxData
| GetRxData | |
| Returns last received message data byte at position Index. Buffer parameter is currently ignored | |
| Buffer | |
| Index | |
| Return | |
GetRxDataCount
| GetRxDataCount | |
| Returns last received message data length. Buffer parameter is currently ignored | |
| Buffer | |
| Return | |
GetRxIDHi
| GetRxIDHi | |
| Gets the Hi byte Rx ID in register format. Standard ID only 0-2047. Compatible with v5 component and previous, | |
| Buffer | |
| Receive Buffer. Range 0-1 | |
| Return | |
GetRxIDLo
| GetRxIDLo | |
| Gets the Lo byte Rx ID in register format. Standard ID only 0-2047. Compatible with v5 component and previous, | |
| Buffer | |
| Return | |
GetRxIDSimple
| GetRxIDSimple | |
| Gets the Rx ID as a Integer Standard ID only 0-2047. | |
| Buffer | |
| Receive Buffer. Range 0-1 | |
| Return | |
GetRxIdent
| GetRxIdent | |
| Gets the Rx ID as a Integer Standard and Extended IDs. | |
| Buffer | |
| Return | |
Initialise
| Initialise | |
| Must be called before any other CAN component macros to enable and initialise the CAN peripheral. | |
| Return | |
ReadSwitches
| ReadSwitches | |
| Returns switch input states from the external MCP2515 device. 0 = No Switch Pressed, 1 = Switch 1 Pressed, 2 = Switch 2 Pressed, 3 = Both Pressed (External CAN only) | |
| Return | |
SendBuffer
| SendBuffer | |
| Transmits one of the transmit buffers which should have already been populated with an ID and data. | |
| Buffer | |
| Specifies which transmit buffer to send | |
| Return | |
SetRxFilter
SetRxFilterID
SetRxMask
SetRxMaskID
SetTxData
SetTxID
SetTxIDSimple
| SetTxIDSimple | |
| Set the Tx CAN ID as a generic number. Standard IDs only 0-2047. | |
| Buffer | |
| Transmit buffer to load. Range: 0-2 | |
| ID | |
| The ID value you wish to use. Range: 0-2047 | |
| Return | |
SetTxIdent
ShowLEDs
| ShowLEDs | |
| Set LED state (External CAN only) | |
| led1 | |
| Controls LED 1. Range: 0-1 | |
| led2 | |
| Controls LED 2. Range: 0-1 | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_CAN_Bus_BL0140_2d.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_CAN_Bus_BL0140_2d.fcfx