PcoAnaLim (FB)

FUNCTION_BLOCK PcoAnaLim

This function block is designed for controlling an analog input without limit supervision.

InOut:

Scope

Name

Type

Initial

Comment

Input

In

INT

0

1: Analog input (Rangemin->Rangemax is depending on signal type and I/O module type).

ScaleMax

REAL

27648

2: Scaling parameter: Maximum value for output VALUE/Out. (Input will be rescaled from

ScaleMin

REAL

0

3: Scaling parameter: Maximum value for output VALUE/Out. (Input will be rescaled from

InHys

REAL

0.5

4: Dead band for input. Output would only change value, if input changes more than Hystersis

EnLiveZero

BOOL

FALSE

5: TRUE - Enable live zero for analogue input. An analogue input is connected to an IO-module or CPU and the module can’t detect live zero (2-10V)

TempPT100PT1000

BOOL

FALSE

6: TempPT100PT1000 = TRUE: Analog input is a PT100 or a PT1000 transmitter.

Pb

BOOL

FALSE

7: ProfibusPA = TRUE: Analog input is a Profibus PA transmitter.

PbStatus

BYTE

8: Status on Profibus PA transmitter. (128 = ok)

FilTime

TIME

TIME#2s0ms

9: Filter time, PT1 filter of the input signal, minimum value is 1 second

Inout

Scada

PCO_ANALIM_TYPE

10: Structure variable for connection to Scada system

Output

Error

BOOL

FALSE

Operation continues with error. The output ErrorID gives more details about the error.

Out

INT

0

1: Scaled signal of the input signal, In

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

2: Err number, Output provides an error identifier if an invalid value was applied to an input