Jump to content

Component: Digital Valve (Industrial)

From Flowcode Help
Revision as of 14:15, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"")
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_Valve.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_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