FB_MTP_BinVlv

FB_MTP_BinVlv 1:

The function block FB_MTP_BinVlv is an object for controlling a binary valve from different sources: internal PLC logic or manual operation (e. g. via OPC UA). Switching requests are managed via the state machine Operation Mode. The OPC UA access rights are described in the variable tables.

Controlling the valve

The specification for opening and closing the valve is made via the switching requests Open* and Close*. The state machine of the Operation Mode manages whether and from which source new switching requests are processed. For simultaneous requests from Open* and Close*, Close* has the highest priority. If Locking is active, control of the outputs via the switching requests is prevented or the safety position is assumed.

Safety position

The safety position is defined via the variables SafePosEn and SafePos .

The variable SafePosEn is used to describe whether the valve has a fixed safety position (SafePosEn = TRUE) or whether the current position should be maintained (SafePosEn = FALSE).

The safety position is described with SafePos:

SafePos = FALSE: Safety position of the valve: closed

SafePos = TRUE: Safety position of the valve: open

Further characteristics

Name of the object

Object description

WQC

OSLevel

Feedback

Locking

Reset

FB_MTP_BinVlv 2: Inputs

Name

Type

Description

OPC UA access

TagName

STRING

Name of the interface

-

TagDescription

STRING

Description of the interface

-

WQC

BYTE

Worst Quality Code

Read

OSLevel

BYTE

Level must be defined for system. Value 0 is reserved for local operation.

Read/write

State*

 

 

See Operation Mode

 

OpenAut

BOOL

Automatic switching request to move to the selected position of the valve.

Read

CloseAut

BOOL

Automatic switching request to close the valve.

Read

OpenFbkCaIc

BOOL

Source of the feedback signal Limit switch Valve open:

1: Calculated

0: Sensor

Read

OpenFbk

BOOL

Feedback signal Limit switch Valve open

Read

CloseFbkCaIc

BOOL

Source of the feedback signal

Limit switch Valve closed:

1: Calculated

0: Sensor

Read

CloseFbk

BOOL

Feedback signal Limit switch Valve closed.

Read

Perm*

Int*

Prot*

 

See Locking

 

SafePosEn

BOOL

Use the safe position of the valve:

1: Use safe position.

0: Do not use safe position.

Read

SafePos

BOOL

Safe position of the valve:

1: Open

0: Closed

Read

ResetAut

BOOL

Automatic reset switching request:

1: Reset requested.

0: No reset requested.

Read

FB_MTP_BinVlv 3: Outputs

Name

Type

Description

OPC UA access

State*

 

See Operation Mode

 

Ctrl

BOOL

Valve switching command:

1: Open

0: Close

Read

SafePosAct

BOOL

Safe position:

1: Move to a safe position.

0: Normal operation

Read

External variables

Name

Type

Description

OPC UA access

State*

 

See Operation Mode

 

OpenOp

BOOL

Operator switching request to open the valve.

Read/write

CloseOp

BOOL

Operator switching request to close the valve.

Read/write

ResetOp

BOOL

Operator reset switching request:

0→1: Operator request

1→0: Request has been processed.

Read/write

FB_MTP_BinVlv 4: Methods

Name

Description

SetOffline

SetOperator

SetAutomatic

See Operation Mode