Jump to content

Component: Digital Valve (Industrial): Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 17: Line 17:
==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_Valve.fcfx FC_Comp_Source_Valve.fcfx]
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_temp/Valve.fcfx FC_Comp_Source_temp/Valve.fcfx]


Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Valve.fcfx FC_Comp_Source_Valve.fcfx]
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_temp/Valve.fcfx FC_Comp_Source_temp/Valve.fcfx]


==Detailed description==
==Detailed description==
Line 62: Line 62:


{{Fcfile|Industrial_Tanks.fcsx|Industrial Tanks}}
{{Fcfile|Industrial_Tanks.fcsx|Industrial Tanks}}





Revision as of 12:03, 3 February 2023

Author Matrix TSL
Version 1.0
Category Industrial


Digital Valve component

A simple digital valve that can be either open or closed. The valve has component macros to set and get the current state of the valve. The valve can be initialised to be open or closed when starting. The valve can be clicked to open or close via the runtime. Compatible with SCADA interconnecting pipe components.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_temp/Valve.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_temp/Valve.fcfx

Detailed description

No detailed description exists yet for this component

Examples

Industrial Tanks

A simple example showing the hoppers, valves and pipes working together. Each tank automatically empties in turn.

Industrial Tanks




Macro reference

GetState

GetState
Returns the current state of the valve. 0 = Closed 1 = Open 
- BOOL Return


SetState

SetState
Sets the current state of the valve. 
- BOOL State
0 = Closed, 1 = Open 
- VOID Return



Property reference

Properties
Default State
The initial state of the valve when the runtime starts 
Current State
The current state of the valve. 
Orientation
The orientation of the valve on the panel. 
Clickable
Dictates if the valve handle ca be clicked during runtime to open or close the valve, 
Flip