FB_SimValve

FB_SimValve 1:

This simplified simulation of an analog proportional or servo valve is used as part of a simulated hydraulic axis. It supports a range of typical variants of non-linearities. There is no dynamic behavior.

FB_SimValve 2:

The implementation of this object is not a full-fledged and realistic simulation.

FB_SimValve 3:

Objects of this type are typically used as local elements in an implementation of an axis simulation.

Syntax:

FUNCTION_BLOCK ABSTRACT FB_SimValve

FB_SimValve 4: Properties

Name

Type

Access

Description

AdsAddr

AMSADDR

Get, Set

This variable is used to implement a mapping interface of an analog valve.

ControlValue

INT

Get, Set

This runtime value must be updated cyclically with an output property of a FB_SimAnalogOutputElTerminal4 instance.

This assignment can be understood as the cable connecting an output terminal to an input pin of the valve connector.

ControlValueNorm

LREAL

Get

This runtime value provides information about the current control value in abstract units (e.g. %).

ControlValueType

E_SimControlValueType

Get, Set

This parameter must be initialized with a value that specifies the type of the control signal. It must match the type of the simulated output terminal.

InfoDataState

UINT

Get, Set

This variable is used to implement a mapping interface of an analog valve.

Orifice_PA

LREAL

Get

This runtime value provides information about the current opening between the supply port and the A-side port of the valve.

Orifice_PB

LREAL

Get

This runtime value provides information about the current opening between the supply port and the B-side port of the valve.

Overlapp_PA

LREAL

Get, Set

This parameter must be initialized with the overlap on the A-side of the valve.

Typical values can be found in the manufacturer's data sheets.

Overlapp_PB

LREAL

Get, Set

This parameter must be initialized with the overlap on the B-side of the valve.

Typical values can be found in the manufacturer's data sheets.

P_A

LREAL

Get, Set

This runtime value reports about the pressure at the A-side port of the valve.

P_B

LREAL

Get, Set

This runtime value reports about the pressure at the B-side port of the valve.

Q_PA

LREAL

Get

This runtime value reports about the oil flow between the supply port and the A-side port of the valve.

Q_PB

LREAL

Get

This runtime value reports about the oil flow between the supply port and the B-side port of the valve.

Qnominal_PA

LREAL

Get, Set

This parameter must be initialized with the capacity of the supply to the A-side opening of the simulated valve.

Typical values can be found in the manufacturer's data sheets.

Qnominal_PB

LREAL

Get, Set

This parameter must be initialized with the capacity of the supply to the B-side opening of the simulated valve.

Typical values can be found in the manufacturer's data sheets.

SpoolFeedback

INT

Get

This runtime value reports about the actual position of the valve piston. It is used to implement a mapping interface of an analog valve.

SupplyPressure

LREAL

Get, Set

This runtime value must be updated with the supply pressure. If the value is assumed to be constant, it can be updated once during initialization.

Toggle

BOOL

Get

This variable is used to implement a mapping interface of an analog valve.

ValveSpoolType

E_SimValveSpoolType

Get, Set

This parameter sets the transfer characteristic of the valve.

WcState

BOOL

Get, Set

This variable is used to implement a mapping interface of an analog valve.

FB_SimValve 5: Methods

Name

Description

Cyclic()

Cycle method

FB_SimValve 6: Interfaces

Type

Description

I_SimValve

Standard interface for FB_SimValve.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticFunctions v3.12.4.26 or higher

Tc3_PlasticHydraulic v3.12.4.26 or higher