Difference between revisions of "Component: K8055D (Third Party)"
From Flowcode Help
Jump to navigationJump to search(2 intermediate revisions by the same user not shown) | |||
Line 53: | Line 53: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==Macro reference== | ||
===GetAnalogIn=== | ===GetAnalogIn=== | ||
Line 93: | Line 80: | ||
− | === | + | ===GetCount=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCount''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Read the value of the chosen counter for the currently selected board. |
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |
− | | width="90%" | | + | | width="90%" | Counter |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | The counter to read (1 or 2) |
|- | |- | ||
− | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | |
− | |||
− | |||
− | |||
− | |||
− | | 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'' | ||
|} | |} | ||
− | === | + | ===GetDevices=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDevices''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Returns a value representing the available devices. Device is a binary value where bit(N) set = device at address (N) is connected. |
|- | |- | ||
|- | |- | ||
− | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | 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'' | ||
|} | |} | ||
Line 155: | Line 127: | ||
− | === | + | ===GetDigitalIn=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDigitalIn''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Read the individual input at the given index (1..5) |
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
− | | width="90%" | | + | | width="90%" | Input |
|- | |- | ||
− | | colspan="2" | Which | + | | colspan="2" | Which input to read (1 to 5) |
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | === | + | ===ResetCount=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ResetCount''' |
+ | |- | ||
+ | | colspan="2" | Resets the chosen counter of the currently selected board. | ||
+ | |- | ||
|- | |- | ||
− | | | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |
+ | | width="90%" | Counter | ||
|- | |- | ||
+ | | colspan="2" | Which counter to reset (1 or 2) | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | 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'' | ||
|} | |} | ||
Line 207: | Line 184: | ||
− | === | + | ===SetAnalogOut=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAnalogOut''' |
+ | |- | ||
+ | | colspan="2" | Sets the chosen analog output to the given value (0-255) | ||
+ | |- | ||
|- | |- | ||
− | | | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE |
+ | | width="90%" | Output | ||
|- | |- | ||
+ | | colspan="2" | Which output to set the value for (1 ro 2) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" | Value | | width="90%" | Value | ||
|- | |- | ||
− | | colspan="2" | Value to | + | | colspan="2" | Value to set (0-255) |
|- | |- | ||
| 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 | ||
Line 226: | Line 208: | ||
− | === | + | ===SetCountDebounce=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetCountDebounce''' |
+ | |- | ||
+ | | colspan="2" | Set the amount of time allowed for switches to settle before being counted as a new event to count. | ||
+ | |- | ||
|- | |- | ||
− | | | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |
+ | | width="90%" | Counter | ||
|- | |- | ||
+ | | colspan="2" | Which counter to make a setting for (1 or 2) | ||
|- | |- | ||
| width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
− | | width="90%" | | + | | width="90%" | DebounceTime |
+ | |- | ||
+ | | colspan="2" | Settling time for switch debouncing in milliseconds | ||
+ | |- | ||
+ | | 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'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===SetDigitalByte=== | ||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDigitalByte''' | ||
+ | |- | ||
+ | | colspan="2" | Sets all eight digital outputs according to the individual bits of the Value parameter. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" | Value | ||
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Value to send to the selected board. |
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | 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'' | ||
|} | |} | ||
− | === | + | ===SetDigitalOut=== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDigitalOut''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Sets the state of the output given by the output index (1 to 8) |
|- | |- | ||
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE |
− | | width="90%" | | + | | width="90%" | Out |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Number of the output to set the value for |
|- | |- | ||
− | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-bool-icon.png]] - BOOL |
− | | width="90%" | | + | | width="90%" | Value |
|- | |- | ||
− | | colspan="2" | | + | | 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'' | ||
|} | |} | ||
− | |||
− | |||
Latest revision as of 13:11, 7 February 2023
Author | Matrix Ltd |
Version | 2.3 |
Category | Third Party |
Contents
K8055D component
Support for the Velleman K8055 USB input/output board. Allows Flowcode to communicate with up to four K8055 boards, or to simulate them with interactive on-screen controls. All digital and analog I/O functions are supported.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_K8055D.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_K8055D.fcsx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetAnalogIn
![]() |
GetAnalogIn |
Read analog input 1 or 2 | |
![]() |
Input |
Which input to read (1 ro 2) | |
![]() |
Return |
GetCount
![]() |
GetCount |
Read the value of the chosen counter for the currently selected board. | |
![]() |
Counter |
The counter to read (1 or 2) | |
![]() |
Return |
GetDevices
![]() |
GetDevices |
Returns a value representing the available devices. Device is a binary value where bit(N) set = device at address (N) is connected. | |
![]() |
Return |
GetDigitalByte
![]() |
GetDigitalByte |
Read all five inputs at once, returning them as a bit pattern in a byte. The upper three bits will always be zero. | |
![]() |
Return |
GetDigitalIn
![]() |
GetDigitalIn |
Read the individual input at the given index (1..5) | |
![]() |
Input |
Which input to read (1 to 5) | |
![]() |
Return |
ResetCount
![]() |
ResetCount |
Resets the chosen counter of the currently selected board. | |
![]() |
Counter |
Which counter to reset (1 or 2) | |
![]() |
Return |
Select
SetAnalogOut
![]() |
SetAnalogOut |
Sets the chosen analog output to the given value (0-255) | |
![]() |
Output |
Which output to set the value for (1 ro 2) | |
![]() |
Value |
Value to set (0-255) | |
![]() |
Return |
SetCountDebounce
SetDigitalByte
![]() |
SetDigitalByte |
Sets all eight digital outputs according to the individual bits of the Value parameter. | |
![]() |
Value |
Value to send to the selected board. | |
![]() |
Return |
SetDigitalOut
![]() |
SetDigitalOut |
Sets the state of the output given by the output index (1 to 8) | |
![]() |
Out |
Number of the output to set the value for | |
![]() |
Value |
![]() |
Return |