Component: Console User Input (Runtime Tools): Difference between revisions
Appearance
XML import |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (20 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{| style="width:50%" | |||
{| | |||
|- | |- | ||
| width="20%" style="color: gray;" | Author | | width="20%" style="color:gray;" | Author | ||
| Matrix Ltd | | Matrix Ltd | ||
|- | |- | ||
| width="20%" style="color: gray;" | Version | | width="20%" style="color:gray;" | Version | ||
| 1.0 | | 1.0 | ||
|- | |- | ||
| width="20%" style="color: gray;" | Category | | width="20%" style="color:gray;" | Category | ||
| Runtime Tools | | Runtime Tools | ||
|} | |} | ||
==Console User Input component== | |||
Allows data to be input via a console tab in raw ASCII form or as numeric byte data 0-255. | |||
==Component Source Code== | |||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_ConsoleRead.fcfx FC_Comp_Source_ConsoleRead.fcfx] | |||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_ConsoleRead.fcfx FC_Comp_Source_ConsoleRead.fcfx] | |||
==Detailed description== | |||
''No detailed description exists yet for this component'' | |||
==Examples== | ==Examples== | ||
A simple example showing how to pull user inputted data from the console tab and passing it to a COM port component byte by byte. | |||
{{Fcfile|ConsoleDemo.fcfx|Console Demo}} | |||
==Macro reference== | |||
===DataAvailable=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''DataAvailable''' | |||
|- | |||
| colspan="2" | Checks to see if there is any user data entered into the console tab. Returns 1 if data is available. | |||
|- | |||
|- | |||
| 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'' | |||
|} | |||
===GetByte=== | |||
{| class="mtx-class-macrotable wikitable" | |||
|- | |||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''GetByte''' | |||
|- | |||
| colspan="2" | Attempt to collect a byte from the console 0 - 255 = Valid data 256 = No data available | |||
|- | |||
|- | |||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | |||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | |||
|} | |||
==Property reference== | |||
'' | {| class="mtx-class-macrotable wikitable" | ||
|- | |||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | |||
| width="90%" class="mtx-class-macrohead" | '''Properties''' | |||
|- | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |||
| width="90%" | Data Mode | |||
|- | |||
| colspan="2" | Sets the console data to interperete the data as ASCII or as Numbers 0-255 | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |||
| width="90%" | New line encoding | |||
|- | |||
| colspan="2" | | |||
|- | |||
| width="10%" align="center" | [[File:Fc9-type-10-icon.png]] | |||
| width="90%" | Console Tab Name | |||
|- | |||
| colspan="2" | | |||
|} | |||
Latest revision as of 14:22, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.0 |
| Category | Runtime Tools |
Console User Input component
Allows data to be input via a console tab in raw ASCII form or as numeric byte data 0-255.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ConsoleRead.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ConsoleRead.fcfx
Detailed description
No detailed description exists yet for this component
Examples
A simple example showing how to pull user inputted data from the console tab and passing it to a COM port component byte by byte.
Macro reference
DataAvailable
| DataAvailable | |
| Checks to see if there is any user data entered into the console tab. Returns 1 if data is available. | |
| Return | |
GetByte
| GetByte | |
| Attempt to collect a byte from the console 0 - 255 = Valid data 256 = No data available | |
| Return | |
Property reference
| Properties | |
| Data Mode | |
| Sets the console data to interperete the data as ASCII or as Numbers 0-255 | |
| New line encoding | |
| Console Tab Name | |