PcoAnaAlm (FB)

FUNCTION_BLOCK PcoAnaAlm

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

InOut:

Scope

Name

Type

Initial

Comment

Input

LimHys

REAL

0.5

1: Dead band for Alarm Limit.

LimHhInhib

BOOL

FALSE

2: LimHhInhib=TRUE Causes no alarm for H2 LimHhInhib=FALSE Causes alarm for H2

LimHInhib

BOOL

FALSE

3: LimHInhib=TRUE Causes no alarm for H1 LIM__INHIB=FALSE Causes alarm for H1

LimLInhib

BOOL

FALSE

4: LimLInhib=TRUE Causes no alarm for L1 LimLInhib=FALSE Causes alarm for L1

LimLLInhib

BOOL

FALSE

5: LimLLInhib=TRUE Causes no alarm for L2 LimLLInhib=FALSE Causes alarm for L2

In

INT

0

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

ScaleMax

REAL

27648

7: Scaling parameter: Maximum value for output VALUE/Out. (Input will be rescaled from actual range to ScaleMin -> ScaleMax)

ScaleMin

REAL

0

8: Scaling parameter: Minimum value for output VALUE/Out. (Input will be rescaled from actual range to ScaleMin -> ScaleMax)

InHys

REAL

0.5

9: Dead band for input. Output would only change value, if input changes more than Hystersis (percent.)

EnLiveZero

BOOL

FALSE

10: 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)

InhibError

BOOL

FALSE

11: InhibError=TRUE : Suppress all alarm. InhibError=FALSE : No suppression

ForceScaleMin

BOOL

FALSE

12: VALUE/Out will be forced to ScaleMin

ForceScaleMax

BOOL

FALSE

13: VALUE/Out will be forced to ScaleMax

Freeze

BOOL

FALSE

14: VALUE/Out will freeze on FreezeSp

FreezeSp

INT

0

15: Freeze setpoint, the output VALUE/Out is set to FreezeSp, if Freeze=TRUE

TempPT100PT1000

BOOL

FALSE

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

Pb

BOOL

FALSE

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

PbStatus

BYTE

128

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

FilTime

TIME

TIME#2s0ms

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

Inout

Scada

PCO_ANAALM_TYPE

20: 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