FB_MTP_DIntServParam

FB_MTP_DIntServParam 1:

The function block FB_MTP_DIntServParam is an object for integer 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:

  1. Preparing the value
  2. 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.

FB_MTP_DIntServParam 2:

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.

FB_MTP_DIntServParam 3:

Further characteristics

Name of the object

Object description

WQC

OSLevel

Service Mode

Value scaling

Unit

Value limitation

Read back

FB_MTP_DIntServParam 4: 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

Internal switching request to apply requested parameters (relevant if StateAutAct = TRUE and SrcIntAct = TRUE):

1: Apply value.

0: Do not apply value

Read

sync

BOOL

Operation mode synchronization:

1: Synchronize with service.

0: Independent operation

Read/write

VInt

DINT

Internal value specification (relevant if StateAutAct = TRUE and SrcIntAct = TRUE)

Read

VUnit

INT

Unit of value

Read

VMin

DINT

Upper limit of the value specification

Read

VMax

DINT

Lower limit of the value specification

Read

VFbk

DINT

Feedback value

Read

VSclMin

DINT

Scale start for value display

Read

VSclMax

DINT

Scale end for value display

Read

FB_MTP_DIntServParam 5: Outputs

Name

Type

Description

OPC UA access

State*

Src*

 

See Service Mode

 

Vout

DINT

Current parameter value

Read

External variables

Name

Type

Description

OPC UA access

State*

Src*

 

See Service Mode

 

ApplyOp

BOOL

Operator switching request to apply currently requested parameters (relevant if StateOpAct = TRUE):

1: Apply value.

0: Do not apply value

Read/write

ApplyExt

BOOL

External switching request to apply currently requested parameters (relevant if SrcExtAct = TRUE and StateAutAct = TRUE):

1: Apply value.

0: Do not apply value

Read/write

VOp

DINT

Operator value specification (relevant if StateOpAct = TRUE)

Read/write

VExt

DINT

External value specification (relevant if SrcExtAct = TRUE and StateAutAct = TRUE)

Read/write