Jump to content

Component: K8055D (Third Party): Difference between revisions

From Flowcode Help
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(2 intermediate revisions by the same user not shown)
Line 65: Line 65:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetAnalogIn'''
| width="90%" class="mtx-class-macrohead" | '''GetAnalogIn'''
|-
|-
| colspan="2" | Read analog input 1 or 2 
| colspan="2" | Read analog input 1 or 2 
Line 84: Line 84:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetCount'''
| width="90%" class="mtx-class-macrohead" | '''GetCount'''
|-
|-
| colspan="2" | Read the value of the chosen counter for the currently selected board. 
| colspan="2" | Read the value of the chosen counter for the currently selected board. 
Line 103: Line 103:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDevices'''
| width="90%" class="mtx-class-macrohead" | '''GetDevices'''
|-
|-
| colspan="2" | Returns a value representing the available devices. Device is a binary value where bit(N) set = device at address (N) is connected. 
| colspan="2" | Returns a value representing the available devices. Device is a binary value where bit(N) set = device at address (N) is connected. 
Line 117: Line 117:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDigitalByte'''
| width="90%" class="mtx-class-macrohead" | '''GetDigitalByte'''
|-
|-
| colspan="2" | Read all five inputs at once, returning them as a bit pattern in a byte. The upper three bits will always be zero. 
| colspan="2" | Read all five inputs at once, returning them as a bit pattern in a byte. The upper three bits will always be zero. 
Line 131: Line 131:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetDigitalIn'''
| width="90%" class="mtx-class-macrohead" | '''GetDigitalIn'''
|-
|-
| colspan="2" | Read the individual input at the given index (1..5) 
| colspan="2" | Read the individual input at the given index (1..5) 
Line 150: Line 150:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ResetCount'''
| width="90%" class="mtx-class-macrohead" | '''ResetCount'''
|-
|-
| colspan="2" | Resets the chosen counter of the currently selected board. 
| colspan="2" | Resets the chosen counter of the currently selected board. 
Line 169: Line 169:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Select'''
| width="90%" class="mtx-class-macrohead" | '''Select'''
|-
|-
| colspan="2" | Selects the board address to send  to and receive data from. Echos the address if the selection is valid. Returns -1 if there is no device available at that address. 
| colspan="2" | Selects the board address to send  to and receive data from. Echos the address if the selection is valid. Returns -1 if there is no device available at that address. 
Line 188: Line 188:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetAnalogOut'''
| width="90%" class="mtx-class-macrohead" | '''SetAnalogOut'''
|-
|-
| colspan="2" | Sets the chosen analog output to the given value (0-255) 
| colspan="2" | Sets the chosen analog output to the given value (0-255) 
Line 212: Line 212:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetCountDebounce'''
| width="90%" class="mtx-class-macrohead" | '''SetCountDebounce'''
|-
|-
| colspan="2" | Set the amount of time allowed for switches to settle before being counted as a new event to count. 
| colspan="2" | Set the amount of time allowed for switches to settle before being counted as a new event to count. 
Line 236: Line 236:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDigitalByte'''
| width="90%" class="mtx-class-macrohead" | '''SetDigitalByte'''
|-
|-
| colspan="2" | Sets all eight digital outputs according to the individual bits of the Value parameter. 
| colspan="2" | Sets all eight digital outputs according to the individual bits of the Value parameter. 
Line 255: Line 255:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetDigitalOut'''
| width="90%" class="mtx-class-macrohead" | '''SetDigitalOut'''
|-
|-
| colspan="2" | Sets the state of the output given by the output index (1 to 8) 
| colspan="2" | Sets the state of the output given by the output index (1 to 8) 
Line 280: Line 280:
|-
|-
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-
|-
|-
Line 307: Line 307:
| colspan="2" | Use software simulation to emulate a board connected at address 3. 
| colspan="2" | Use software simulation to emulate a board connected at address 3. 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Hardware
| width="90%" class="mtx-class-propfolder" | Hardware
|-
|-
|-
|-

Latest revision as of 14:37, 13 July 2026

Author Matrix Ltd
Version 2.3
Category Third Party


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 
- INT Input
Which input to read (1 ro 2) 
- INT Return


GetCount

GetCount
Read the value of the chosen counter for the currently selected board. 
- INT Counter
The counter to read (1 or 2) 
- UINT 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. 
- INT 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. 
- INT Return


GetDigitalIn

GetDigitalIn
Read the individual input at the given index (1..5) 
- INT Input
Which input to read (1 to 5) 
- INT Return


ResetCount

ResetCount
Resets the chosen counter of the currently selected board. 
- INT Counter
Which counter to reset (1 or 2) 
- VOID Return


Select

Select
Selects the board address to send to and receive data from. Echos the address if the selection is valid. Returns -1 if there is no device available at that address. 
- INT Address
The address off the board to be selected (0...3). 
- INT Return


SetAnalogOut

SetAnalogOut
Sets the chosen analog output to the given value (0-255) 
- BYTE Output
Which output to set the value for (1 ro 2) 
- BYTE Value
Value to set (0-255) 
- VOID Return


SetCountDebounce

SetCountDebounce
Set the amount of time allowed for switches to settle before being counted as a new event to count. 
- INT Counter
Which counter to make a setting for (1 or 2) 
- INT DebounceTime
Settling time for switch debouncing in milliseconds 
- VOID Return


SetDigitalByte

SetDigitalByte
Sets all eight digital outputs according to the individual bits of the Value parameter. 
- BYTE Value
Value to send to the selected board. 
- VOID Return


SetDigitalOut

SetDigitalOut
Sets the state of the output given by the output index (1 to 8) 
- BYTE Out
Number of the output to set the value for 
- BOOL Value
 
- VOID Return


Property reference

Properties
Simulation
Addr 0
Use software simulation to emulate a board connected at address 0. 
Addr 1
Use software simulation to emulate a board connected at address 1. 
Addr 2
Use software simulation to emulate a board connected at address 2. 
Addr 3
Use software simulation to emulate a board connected at address 3. 
Hardware
Scan
Request a scan of the currently connected hardware to detect what Velleman boards are connected and at what addresses. Where hardware is not detected at an addess, a System Panel simulation will be used instead where one has been requested in the properties.