Component: Digital Valve (Industrial)

From Flowcode Help
Jump to navigationJump to search


Author Matrix TSL
Version 1.0 (Release)
Category Industrial


Image 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.

Examples

Industrial Tanks

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

FC6 Icon.png Industrial Tanks

Downloadable macro reference

This component does not contain any downloadable macros

Simulation macro reference

GetState

Returns the current state of the valve.

0 = Closed

1 = Open

Parameters

This macro has no parameters


Return value

BOOL : Returns true if the operation is a success, else false


SetState

Sets the current state of the valve.

Parameters

BOOL State
0 = Closed, 1 = Open


Return value

This call does not return a value



Property reference

Default State

This property is of type Fixed list of ints and can be referenced with the variable name Default_State.

The initial state of the valve when the runtime starts

Current State

This property is of type Fixed list of ints and can be referenced with the variable name Current_State.

The current state of the valve.

Orientation

This property is of type Fixed list of ints and can be referenced with the variable name Orientation.

The orientation of the valve on the panel.

Clickable

This property is of type True or false and can be referenced with the variable name Clickable.

Dictates if the valve handle ca be clicked during runtime to open or close the valve,

Flip

This property is of type True or false and can be referenced with the variable name Flip.

No additional information