PressureControl.Supervisor

PressureControl.Supervisor 1:

This Corefunction organizes the pressure control of the axis and provides the infrastructure interfaces. This is reflected in an interface for a pressure sensor and the switching function for pressure switchover.

PressureControl.Supervisor 2:

Pressure switchover only for certain core functions

The pressure switchover can only be carried out with the following core functions:

Syntax:

FUNCTION_BLOCK FB_ProcessSupervisor EXTENDS FB_Corefunction

PressureControl.Supervisor 3: Properties

Name

Type

Access

Description

InitState

BOOL

Get, Set

The core function is not completely and successfully initialized.

FB_ProcessSupervisor

BadSwitchOver

BOOL

Get

Identifies whether a pressure switchover occurred due to safety conditions.

ExternalMode

BOOL

Get

TRUE as soon as an external ProcessHandler has been assigned.

Filter

I_Filter

Get, Set

Interface for a filter to be applied to the actual pressure value.

MinCushion

LREAL

Get, Set

Minimum distance that the axis must travel before the pressure-based switchover can be triggered.

PositionLimit

LREAL

Get, Set

Safety-limiting position from which a BadSwitchOver is identified.

PressureLimit

LREAL

Get, Set

Safety-limiting pressure above which a BadSwitchOver is identified.

PressureThreshold

LREAL

Get, Set

Pressure threshold value above which a switchover should take place.
Requirement is SwitchOnPressure

Sensor

I_InputBase

Get, Set

Interface for an actual pressure value sensor

SwitchOnPressure

BOOL

Get, Set

Activates the switchover based on a pressure threshold value.

SwitchOnTime

BOOL

Get, Set

Activates the switchover based on the time of the previous command.

SwitchOnTravel

BOOL

Get, Set

Activates the switchover based on the value set by a previous command.

SwitchOver

BOOL

Get

If TRUE, the Supervisor has triggered the pressure switchover.

Timeout

LREAL

Get, Set

Safety-limiting time from which a BadSwitchOver is identified.

TimeThreshold

LREAL

Get, Set

Time threshold from which a switchover should take place.

Requirement is SwitchOnTime

TravelThreshold

LREAL

Get, Set

Threshold value from which a switchover should take place.

Requirement is SwitchOnTravel

ValueOffset

LREAL

Get, Set

Zero offset shift for the read actual pressure value.

ValueWeighting

LREAL

Get, Set

Weighting factor for the maximum value of the read actual pressure value.

FB_Corefunction

FailedState

BOOL

Get, Set

If IsActivated is TRUE at the same time: Signals the failure of an accepted command.

If IsActivated is FALSE at the same time: Signals the rejection of a command.

HasFeedback

BOOL

Get

The core function has responded to a pending command.

IsActivated

BOOL

Get

The core function has an accepted command pending.

IsLocalCmd

BOOL

Get

Signals that the axis is assigned with a command of this core function.

ReadyState

BOOL

Get, Set

The Corefunction is ready for operation, but is not commandable at this time.

Possible reasons are:
- The axis is not enabled.
- Another Corefunction is active.
- The Corefunction does not support any commands.

PressureControl.Supervisor 4: Methods

Name

Description

GetExternal()

Returns the connected external supervisor (implements I_ProcessHandler).
Notice Can return NULL if not previously assigned.

SetExternal(iHandler)

Assigns an external supervisor (implements I_ProcessHandler). If 0 is transferred, the internal supervisor is reactivated.

PressureControl.Supervisor 5: Interfaces

Type

Description

I_Corefunction

Standard interface on FB_Corefunction.

I_ProcessSupervisor

Standard interface on FB_ProcessSupervisor.

Example:

iAxisBase.PressureControl.Supervisor.Sensor := fbInputMainExtruderMeltPressure;
iAxisBase.PressureControl.Supervisor.ValueOffset := 0.0;
iAxisBase.PressureControl.Supervisor.ValueWeighting := 200.0;    // bar

Requirements

Development Environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.66

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v12.10.0.0)