IOL_MeasurementDataChannel (FB)ΒΆ

FUNCTION_BLOCK IOL_MeasurementDataChannel

Function Block for Measurement Data Channel (MDC).
InOut:

Scope

Name

Type

Initial

Comment

Input

xEnable

BOOL

TRUE

Enables the function of the FB

ProfileID

WORD

Selected ProfileID, respectively process datalayout
1 = SSP 3.1
2 = SSP 3.2
3 = SSP 3.3
4 = SSP 3.4

SubstituteValue

DINT

This value is applied at the outputs ValueReal and ValueDINT if ValueStatus is not equal 0

Qualifier

BOOL

This signal corresponds to the ProcessDataInvalid information from the sensor.
FALSE = ProcessData are invalid
TRUE = ProcessData are valid

ProcessData

POINTER TO BYTE

The Process Data Input from the sensor is applied to this input (ARRAY[0..n] OF BYTE).
The Process Data Input length depends on the profile for the DMS (either INT16 or INT32)

Output

xValid

BOOL

If TRUE the provided values are valid and may be used for further calculations

xError

BOOL

If TRUE an internal error is occurred and futher information is provided provided by the Function Block via the Status variable

STATUS

DWORD

Provides internal error codes

ValueStatus

INT

Status of process data input: 0 = OK; 1 = PC invalid; 2 = No Data; 3 = Out of range (+); 4 = Out of range (-); 5 = Not defined

ValueReal

REAL

Process data in real format for evaluation within the PLC

ValueDINT

DINT

Process data in double integer format

Scale

INT

Process data scale factor