Difference between revisions of "Component: Digital Valve (Industrial)"
From Flowcode Help
Jump to navigationJump to searchLine 15: | Line 15: | ||
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. | 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 | + | ==Component Source Code== |
− | + | Please click here for the component source code: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_Valve.fcfx FC_Comp_Source_Valve.fcfx] | |
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
''No detailed description exists yet for this component'' | ''No detailed description exists yet for this component'' | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 100: | Line 104: | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Revision as of 17:52, 9 November 2022
Author | Matrix TSL |
Version | 1.0 |
Category | Industrial |
Contents
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 for the component source code: 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.
Downloadable macro reference
![]() |
GetState |
Returns the current state of the valve. 0 = Closed 1 = Open | |
![]() |
Return |
![]() |
SetState |
Sets the current state of the valve. | |
![]() |
State |
0 = Closed, 1 = Open | |
![]() |
Return |