FB_MTP_MonBinVlv
The function block FB_MTP_MonBinVlv 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. It also includes the option of monitoring the output value with the respective feedback. 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.
If requests are sent simultaneously to Open* and Close*, the safety position takes precedence: SafePosEn := FALSE means the valve remains in its current state. In SafePosEn = TRUE, the valve opens when SafePos = TRUE or closes when SafePos = FALSE
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
Monitoring
The control and the respective Feedback can be monitored with the Feedback monitoring.
Further properties
Inheritance hierarchy
FB_MTP_BinVlv
FB_MTP_MonBinVlv
Implemented interfaces
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 |
StateChannel StateOffAut StateOpAut StateAutAut |
| See Operation Mode |
|
OpenAut | BOOL |
| Read |
CloseAut | BOOL |
| Read |
OpenFbkCaIc | BOOL | Source of the valve-open limit switch feedback signal: 1: Calculated 0: Sensor | Read |
OpenFbk | BOOL | Valve-open limit switch feedback signal | Read |
CloseFbkCaIc | BOOL | Source of the feedback signal Valve-closed limit switch: 1: Calculated 0: Sensor | Read |
CloseFbk | BOOL | Valve-closed limit switch feedback signal. | Read |
PermEn Permit IntlEn Interlock ProtEn Protect |
| 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 |
1: Reset requested. 0: No reset requested. | Read |
MonEn | BOOL | Enable 1: 0: | Read/write |
MonStatTi | REAL | Monitoring time for static errors [s] | Read |
MonDynTi | REAL | Monitoring time for dynamic errors [s] | Read |
MonSafePos | BOOL | Behavior of the interface after an error occurs: 1: Safe position should be approached. 0: The current state is retained. | Read |
![]() | It is possible to change the value of the input variable |
Outputs
Name | Type | Description | OPC UA access |
|---|---|---|---|
StateOffAct StateOpAct StateAutAct |
| See Operation Mode |
|
Ctrl | BOOL | Valve switching command: 1: Open 0: Close | Read |
SafePosAct | BOOL | Safe position: 1: Move to the safe position. 0: Normal operation | Read |
MonStatErr | REAL | Static error: 1: active 0: inactive | Read |
MonDynErr | REAL | Dynamic error: 1: active 0: inactive | Read |
External variables
Name | Type | Description | OPC UA access |
|---|---|---|---|
StateOffOp StateOpOp StateAutOp |
| See Operation Mode |
|
OpenOp | BOOL |
| Read/write |
CloseOp | BOOL |
| Read/write |
ResetOp | BOOL |
0→1: 1→0: Request has been processed. | Read/write |
Methods
Name | Type | Description |
|---|---|---|
IsOffline IsOperator IsAutomatic SetOffline SetOperator SetAutomatic |
| See Operation Mode |
Open | BOOL | The Returns |
Close | BOOL | The Returns |
