FB_MTP_BinServParam

The function block FB_MTP_BinServParam
is an object for binary parameter value specifications from different sources: internal PLC logic and manual operation (e.g. via OPC UA). The values are managed via the state machine Service Mode.
The output value VOut
corresponds to the current value specification limited to limit values and can be used within a service (see ParameterElements).
Applying values
Each parameter follows the same procedure when applying values. The values are applied in two steps:
- Preparing the value
- Applying of the value
The preparation of the value begins with the value specification via the variables VOp
, VInt
, VExt
. Depending on the state of the Service Mode, a value is selected and limited via the value limit. The resulting requested value is displayed via the variable VReq
.
To apply the value, the enabling is signaled on the PLC side via the variable ApplyEn = TRUE
. The application can then be confirmed via variables ApplyOp
, ApplyInt
or ApplyExt
, depending on the state of Service Mode. After successful application, the value of the variable VOut
corresponds to the value of VReq
.

Values can also be applied at service level using the same procedure. See the Parameters section at FB_MTP_ServiceControl.
Operation mode synchronization with higher-level service
The Service Mode
of the parameter can be synchronized with the higher-level service via the variable Sync
. The input variables for controlling the state machine are ignored and the state machine of the parameter automatically assumes the state of the Service Mode of the service.

Further characteristics
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* Src* |
| See Service Mode |
|
ApplyEn | BOOL | Enable Apply parameter: 1: Parameters can be applied. 0: Parameters cannot be applied. | Read |
Applylnt | BOOL |
1: Apply value. 0: Do not apply value | Read |
sync | BOOL | Operation mode synchronization: 1: Synchronize with service. 0: Independent operation | Read/write |
VInt | BOOL |
| Read |
VState0 | STRING | Text for value | Read |
VState1 | STRING | Text for value | Read |
VFbk | BOOL | Feedback value | Read |
Outputs
Name | Type | Description | OPC UA access |
---|---|---|---|
State* Src* |
| See |
|
Vout | BOOL | Current parameter value | Read |
External variables
Name | Type | Description | OPC UA access |
---|---|---|---|
State* Src* |
| See Service Mode |
|
ApplyOp | BOOL |
1: Apply value. 0: Do not apply value | Read/write |
ApplyExt | BOOL |
1: Apply value. 0: Do not apply value | Read/write |
VOp | REAL |
| Read/write |
VExt | REAL |
| Read/write |