PcoValCon (FB)

FUNCTION_BLOCK PcoValCon

This function block is designed for controlling a control valve. The function block has build in a PID-controller, and software for Manual positioning.

InOut:

Scope

Name

Type

Initial

Comment

Input

SpExt

INT

0

1: External setpoint. Calculated setpoint or output from another PID controller (e.g. PCO_PIDCON) in a cascade control system.

PV

INT

0

2: Process value (to be controlled). Process value obtained from the system

Track

BOOL

FALSE

3: Tracking mode. PCO_VALVCON can be set in Tracking mode if Track = TRUE. Output of the controller will be set to TRACK_VALUE. (Track mode has higher priority compared to balancing mode). Track is independent of operation mode of PCO_VALVCON.

TrackSp

INT

0

4: Tracking value. Output of the controller will be set to TrackSp if Track = TRUE

Bal

BOOL

FALSE

5: Balancing mode. PCO_VALVCON can be set in Balancing mode if Bal = TRUE and Track = FALSE. Output of the controller will be set to BalSp. Bal is independent of operation mode of PCO_VALVCON.

BalSp

INT

0

6: Balancing setpoint. Output of the controller will be set to BalSp if Bal = TRUE

RevAct

BOOL

FALSE

7: RevAct = FALSE, controller will increase output if Setpoint is less than Process value. RevAct = TRUE, control- ler will decrease output if Setpoint is greater than Process value

EnAuto

BOOL

TRUE

  1. Enable auto operation of PID controller

EnOpn

BOOL

TRUE

9: Enable valve to open

EnCls

BOOL

TRUE

10: Enable valve to close

ActPos

INT

0

11: Actual position of the valve Scaling 0-10000

Opn

BOOL

FALSE

12: Valve is open

Cls

BOOL

FALSE

13: Valve is closed

Rdy

BOOL

TRUE

14: Valve is ready for operation. (Ready=FALSE results in external error)

Remote

BOOL

TRUE

15: Valve can be controlled from OS (Remote=FALSE means local operation)

InhibError

BOOL

FALSE

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

Alarm1

BOOL

FALSE

17: Auxiliary alarm no. 1

Alarm2

BOOL

FALSE

18: Auxiliary alarm no. 2

Alarm3

BOOL

FALSE

19: Auxiliary alarm no. 3

Alarm4

BOOL

FALSE

20: Auxiliary alarm no. 4

Alarm5

BOOL

FALSE

21: Auxiliary alarm no. 5

Alarm6

BOOL

FALSE

22: Auxiliary alarm no. 6

RampTime

TIME

TIME#30s0ms

23: Actuator time. (from 0% to 100 % position)

RampActive

BOOL

FALSE

24: RampActive= TRUE activates ramp under manual positioning.

Inout

Scada

PCO_VALVCON_TYPE

25: 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: Output from the controller (0-27648)

OutMax

BOOL

FALSE

2: Output limited to the high value

OutMin

BOOL

FALSE

3: Output limited to the low value

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

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