Component: One Wire Dummy (Misc): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
==Component Source Code== | ==Component Source Code== | ||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_One_Wire_Dummy.fcfx FC_Comp_Source_One_Wire_Dummy.fcfx] | |||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_One_Wire_Dummy.fcfx FC_Comp_Source_One_Wire_Dummy.fcfx] | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_One_Wire_Dummy.fcfx FC_Comp_Source_One_Wire_Dummy.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
| Line 42: | Line 50: | ||
==Examples== | ==Examples== | ||
| Line 65: | Line 79: | ||
==Macro reference== | |||
{| class="wikitable | ===BusReset=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''BusReset''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Issue a 'ping' on the bus. If there is at least one sensor on the bus then it will generate a presence pulse. Returns 0 if a presense pulse was detected Returns 1 no device was detected | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
{| class="wikitable | ===GetDeviceCount=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetDeviceCount''' | ||
|- | |- | ||
| colspan="2" | Returns the number of devices found by the last ScanBus operation. | | colspan="2" | Returns the number of devices found by the last ScanBus operation. | ||
| Line 173: | Line 119: | ||
{| class="wikitable | ===GetIDByte=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetIDByte''' | ||
|- | |- | ||
| colspan="2" | Returns byte ectet of the 64-Bit lasered ROM code, 255 on error | | colspan="2" | Returns byte ectet of the 64-Bit lasered ROM code, 255 on error | ||
| Line 196: | Line 143: | ||
{| class="wikitable | ===Initialise=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Sets up the 1-Wire output pin ready for communications. | | colspan="2" | Sets up the 1-Wire output pin ready for communications. | ||
| Line 209: | Line 157: | ||
===MatchROM=== | |||
{| class="mtx-class-macrotable wikitable" | |||
{| class=" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" class="mtx-class-macrohead" | '''MatchROM''' | |||
| width="90%" | |||
|- | |- | ||
| colspan="2" | Performs a reset followed by the MatchROM code and then the 8-bit ROM code. | | colspan="2" | Performs a reset followed by the MatchROM code and then the 8-bit ROM code. | ||
| Line 300: | Line 181: | ||
{| class="wikitable | ===ReceiveByte=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReceiveByte''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Receives a byte from the one wire bus a bit at a time | ||
|- | |- | ||
|- | |- | ||
| Line 313: | Line 195: | ||
{| class="wikitable | ===ScanBus=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ScanBus''' | ||
|- | |- | ||
| colspan="2" | Returns the number of devices found | | colspan="2" | Scans the one wire bus to detect all connected devices. Returns the number of one wire devices found. | ||
|- | |- | ||
|- | |- | ||
| Line 326: | Line 209: | ||
{| class="wikitable | ===SkipROM=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SkipROM''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Performs a bus reset and the sends the SkipROM command byte | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | |||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | |||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
{| class="wikitable | ===TransmitByte=== | ||
{| class="mtx-class-macrotable wikitable" | |||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TransmitByte''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | Transmit a byte to the one wire bus a bit at a time | ||
|- | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | |||
| width="90%" | Command | |||
|- | |- | ||
| colspan="2" | | |||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.4 |
| Category | Misc |
One Wire Dummy component
Low level routines for controlling or interacting with a standard one wire interface.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_One_Wire_Dummy.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_One_Wire_Dummy.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
BusReset
GetDeviceCount
| GetDeviceCount | |
| Returns the number of devices found by the last ScanBus operation. | |
| Return | |
GetIDByte
Initialise
| Initialise | |
| Sets up the 1-Wire output pin ready for communications. | |
| Return | |
MatchROM
| MatchROM | |
| Performs a reset followed by the MatchROM code and then the 8-bit ROM code. | |
| FamilyCode | |
| SerialNumber | |
| Return | |
ReceiveByte
| ReceiveByte | |
| Receives a byte from the one wire bus a bit at a time | |
| Return | |
ScanBus
| ScanBus | |
| Scans the one wire bus to detect all connected devices. Returns the number of one wire devices found. | |
| Return | |
SkipROM
| SkipROM | |
| Performs a bus reset and the sends the SkipROM command byte | |
| Return | |
TransmitByte
| TransmitByte | |
| Transmit a byte to the one wire bus a bit at a time | |
| Command | |
| Return | |
Property reference
| Properties |