PcoValv (FB)

FUNCTION_BLOCK PcoValv

This function block is designed for controlling a motor controlled ON/OFF valve.

InOut:

Scope

Name

Type

Initial

Comment

Input

AutoCmdOpen

BOOL

FALSE

1: Force the valve to open, IF the actuator is in automatic mode. E.g. AutoCmdOpen could be

AutoCmdCls

BOOL

FALSE

2: Force the valve to close, IF the actuator is in automatic. E.g. AutoCmdCls could be

AutoCmdStop

BOOL

FALSE

3: Force the valve to stop, IF the actuator is in automatic. E.g. AutoCmdStop could be

EnAuto

BOOL

TRUE

  1. Enable automatic mode

EnOpn

BOOL

TRUE

5: Enable valve to open.

EnCls

BOOL

TRUE

6: Enable valve to close.

EmcyOpn

BOOL

FALSE

7: Emergency open

EmcyCls

BOOL

FALSE

8: Emergency close

EmcyStop

BOOL

FALSE

9: Emergency stop

Opn

BOOL

FALSE

10: Valve is open

Cls

BOOL

FALSE

11: Valve is closed

Rdy

BOOL

TRUE

12: Valve is ready for operation. (Rdy=FALSE results in external error)

Remote

BOOL

TRUE

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

InhibError

BOOL

FALSE

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

ExtAck

BOOL

FALSE

15: External Acknowgle of alarm in functionblock

InhibFctErrTime

TIME

TIME#2m0s0ms

16: Maximum delay time from OS command to response from process.

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

BehaveOnError

BYTE

0

23: BehaveOnError = 0 Causes the output to remain unaffected in case of a functional error or an external error (Not ready).

OutputHandling

BYTE

1

24: OutputHandling = 0 Causes the output to be reset at In or Out feedback.

Inout

Scada

PCO_VALV_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.

CmdOpn

BOOL

FALSE

1: Command output open

CmdCls

BOOL

FALSE

2: Command output close

CmdStop

BOOL

FALSE

3: Command output Stop

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

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