FB_SimCylinder

FB_SimCylinder 1:

This simplified simulation of a universal cylinder is used as part of a simulated hydraulic axis. A number of typical effects are supported.

FB_SimCylinder 2:

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

FB_SimCylinder 3:

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

Syntax:

FUNCTION_BLOCK FB_SimCylinder

FB_SimCylinder 4: Properties

Name

Type

Access

Description

CycleTime

LREAL

Get, Set

This parameter must be initialized with the call cycle time.

ExternalForce

LREAL

Get, Set

This runtime value can be used to update an external force in the simulation calculation. It is used for conversion to pressure values.

HighSideBlock

LREAL

Get, Set

The simulated upper mechanical stop.

HighSideSpringLength

LREAL

Get, Set

The simulated spring action before the upper mechanical stop.

LowSideBlock

LREAL

Get, Set

The simulated lower mechanical stop.

LowSideSpringLength

LREAL

Get, Set

The simulated spring action before the lower mechanical stop.

P_A

LREAL

Get, Set

The simulated pressure at the A-side cylinder port.

P_B

LREAL

Get, Set

The simulated pressure at the B-side cylinder port.

PistonDiameter

LREAL

Get, Set

The diameter of the cylinder piston. It is used to calculate the effective areas of the cylinder.

Position

LREAL

Get, Set

The current position of the cylinder.

Q_PA

LREAL

Get, Set

This runtime value provides information about the oil flow flowing into or out of the A-side cylinder port.

This value is usually determined by a valve simulation and passed on by a hydraulic axis simulation.

Q_PB

LREAL

Get, Set

This runtime value provides information about the oil flow flowing into or out of the B-side cylinder port.

This value is usually determined by a valve simulation and passed on by a hydraulic axis simulation.

RodDiameter

LREAL

Get, Set

The diameter of the rod of the cylinder. It is used to calculate the effective areas of the cylinder.

Stroke

LREAL

Get, Set

The stroke length (i.e. the distance between the lower and upper mechanical end positions) of the cylinder. It is used to limit the actual position.

FB_SimCylinder 5: Methods

Name

Description

Cyclic()

Cycle method

FB_SimCylinder 6: Interfaces

Type

Description

I_SimCylinder

Standard interface for FB_SimCylinder.

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