|
|
(7 intermediate revisions by the same user not shown) |
Line 17: |
Line 17: |
| ==Component Source Code== | | ==Component Source Code== |
| | | |
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_DSP_OnOffControl.fcfx FC_Comp_Source_DSP_OnOffControl.fcfx] | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_DSP_OnOffControl.fcfx FC_Comp_Source_DSP_OnOffControl.fcfx] |
| | | |
| Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_OnOffControl.fcfx FC_Comp_Source_DSP_OnOffControl.fcfx] | | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_DSP_OnOffControl.fcfx FC_Comp_Source_DSP_OnOffControl.fcfx] |
| | | |
| ==Detailed description== | | ==Detailed description== |
| + | |
| + | |
| + | |
| + | |
| | | |
| | | |
Line 48: |
Line 52: |
| | | |
| ==Examples== | | ==Examples== |
| + | |
| + | |
| + | |
| + | |
| | | |
| | | |
Line 100: |
Line 108: |
| | | |
| As with other DSP components the raw signals and values can be seen in the data recorder and console windows. | | As with other DSP components the raw signals and values can be seen in the data recorder and console windows. |
− |
| |
− | ==Macro reference==
| |
− |
| |
− | {| 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;" | '''Process'''
| |
− | |-
| |
− | | colspan="2" | Processes the current value from a buffer.
| |
− | |-
| |
− | |-
| |
− | | 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''
| |
− | |}
| |
| | | |
| | | |
− | {| 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;" | '''ProcessArray'''
| |
− | |-
| |
− | | colspan="2" | Processes an entire buffer, either by performing the control operation to every value in the buffer or just the last value.
| |
− | |-
| |
− | |-
| |
− | | 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''
| |
− | |}
| |
| | | |
| | | |
| | | |
| | | |
− | ==Property reference==
| |
| | | |
− | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| |
− | |-
| |
− | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
− | |-
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
− | | width="90%" | Setpoint Connect To
| |
− | |-
| |
− | | colspan="2" | DSP component with output buffer to collect our data from.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
− | | width="90%" | Feedback Connect To
| |
− | |-
| |
− | | colspan="2" | DSP component with output buffer to collect our data from.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
| |
− | | width="90%" | Buffer Size
| |
− | |-
| |
− | | colspan="2" | Number of individual elements the buffer can store, default 1.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
− | | width="90%" | Buffer Type
| |
− | |-
| |
− | | colspan="2" | Sets the buffer data type.
| |
− | |-
| |
− | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
− | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Control
| |
− | |-
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
| |
− | | width="90%" | Hysteresis
| |
− | |-
| |
− | | colspan="2" | Minimum variation before the output will be allowed to switch state. Used to avoid high frequency oscillation on the control output.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
| |
− | | width="90%" | On Value
| |
− | |-
| |
− | | colspan="2" | Value passed to the output buffer when the control output is active or on.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
| |
− | | width="90%" | Off Value
| |
− | |-
| |
− | | colspan="2" | Value passed to the output buffer when the control output is not active or off.
| |
− | |}==Macro reference==
| |
| | | |
− | {| 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;" | '''Process'''
| |
− | |-
| |
− | | colspan="2" | Processes the current value from a buffer.
| |
− | |-
| |
− | |-
| |
− | | 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''
| |
− | |}
| |
| | | |
| | | |
− | {| 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;" | '''ProcessArray'''
| |
− | |-
| |
− | | colspan="2" | Processes an entire buffer, either by performing the control operation to every value in the buffer or just the last value.
| |
− | |-
| |
− | |-
| |
− | | 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''
| |
− | |}
| |
| | | |
| | | |
| | | |
| | | |
− | ==Property reference==
| |
| | | |
− | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
| + | ==Macro reference== |
− | |-
| |
− | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| |
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''
| |
− | |-
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
− | | width="90%" | Setpoint Connect To
| |
− | |-
| |
− | | colspan="2" | DSP component with output buffer to collect our data from.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
− | | width="90%" | Feedback Connect To
| |
− | |-
| |
− | | colspan="2" | DSP component with output buffer to collect our data from.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
| |
− | | width="90%" | Buffer Size
| |
− | |-
| |
− | | colspan="2" | Number of individual elements the buffer can store, default 1.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
| |
− | | width="90%" | Buffer Type
| |
− | |-
| |
− | | colspan="2" | Sets the buffer data type.
| |
− | |-
| |
− | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| |
− | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Control
| |
− | |-
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
| |
− | | width="90%" | Hysteresis
| |
− | |-
| |
− | | colspan="2" | Minimum variation before the output will be allowed to switch state. Used to avoid high frequency oscillation on the control output.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
| |
− | | width="90%" | On Value
| |
− | |-
| |
− | | colspan="2" | Value passed to the output buffer when the control output is active or on.
| |
− | |-
| |
− | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
| |
− | | width="90%" | Off Value
| |
− | |-
| |
− | | colspan="2" | Value passed to the output buffer when the control output is not active or off.
| |
− | |}==Macro reference==
| |
| | | |
| + | ===Process=== |
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
| |- | | |- |
Line 268: |
Line 139: |
| | | |
| | | |
| + | ===ProcessArray=== |
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
| |- | | |- |
Line 279: |
Line 151: |
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | | width="90%" style="border-top: 2px solid #000;" | ''Return'' |
| |} | | |} |
− |
| |
− |
| |
| | | |
| | | |
Author
|
Matrix Ltd
|
Version
|
1.2
|
Category
|
DSP Operators
|
On/Off Control component
On/Off Control - Standard on off control as used on most ovens, toasters, irons.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_DSP_OnOffControl.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_DSP_OnOffControl.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a project file showing an on off control system for a system such as an electric oven.
The setpoint is set via an analogue input which controls the desired temperature of the system.
In this first example the feedback is provided using the simulated load DSP component which simply takes a percentage of the last output and combines with a percentage of the new output.
This allows easy moddeling of systems such as ovens that heat up and cool down over time which allows you to see the system in action.
You assign a setpoint and then the system will get to temperature and then maintain the output by automatically switching the output on and off.
When the feedback is less then the setpoint minus the hysteresis then the output is switched on.
When the feedback is more then the setpoint then the output is switched off.
On Off Control Simulated Output Example
In this second example the feedback is provided via a temperature sensor component. This shows how you would do it with a real system using a sensor to complete the feedback loop.
On Off Control Example
As with other DSP components the raw signals and values can be seen in the data recorder and console windows.
Macro reference
Process
|
Process
|
Processes the current value from a buffer.
|
- VOID
|
Return
|
ProcessArray
|
ProcessArray
|
Processes an entire buffer, either by performing the control operation to every value in the buffer or just the last value.
|
- VOID
|
Return
|
Property reference
|
Properties
|
|
Setpoint Connect To
|
DSP component with output buffer to collect our data from.
|
|
Feedback Connect To
|
DSP component with output buffer to collect our data from.
|
|
Buffer Size
|
Number of individual elements the buffer can store, default 1.
|
|
Buffer Type
|
Sets the buffer data type.
|
|
Control
|
|
Hysteresis
|
Minimum variation before the output will be allowed to switch state. Used to avoid high frequency oscillation on the control output.
|
|
On Value
|
Value passed to the output buffer when the control output is active or on.
|
|
Off Value
|
Value passed to the output buffer when the control output is not active or off.
|