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
AutoCmdOpenBOOLFALSE
1: Force the valve to open, IF the actuator is in automatic mode. E.g. AutoCmdOpen could be
AutoCmdClsBOOLFALSE
2: Force the valve to close, IF the actuator is in automatic. E.g. AutoCmdCls could be
AutoCmdStopBOOLFALSE
3: Force the valve to stop, IF the actuator is in automatic. E.g. AutoCmdStop could be
EnAutoBOOLTRUE
Enable automatic mode
EnOpnBOOLTRUE
5: Enable valve to open.
EnClsBOOLTRUE
6: Enable valve to close.
EmcyOpnBOOLFALSE
7: Emergency open
EmcyClsBOOLFALSE
8: Emergency close
EmcyStopBOOLFALSE
9: Emergency stop
OpnBOOLFALSE
10: Valve is open
ClsBOOLFALSE
11: Valve is closed
RdyBOOLTRUE
12: Valve is ready for operation. (Rdy=FALSE results in external error)
RemoteBOOLTRUE
13: Valve can be controlled from OS (Remote=FALSE means local operation)
InhibErrorBOOLFALSE
14: InhibError=TRUE : Suppress all alarm. InhibError=FALSE : No suppression
ExtAckBOOLFALSE
15: External Acknowgle of alarm in functionblock
InhibFctErrTimeTIMETIME#2m0s0ms
16: Maximum delay time from OS command to response from process.
Alarm1BOOLFALSE
17: Auxiliary alarm no. 1
Alarm2BOOLFALSE
18: Auxiliary alarm no. 2
Alarm3BOOLFALSE
19: Auxiliary alarm no. 3
Alarm4BOOLFALSE
20: Auxiliary alarm no. 4
Alarm5BOOLFALSE
21: Auxiliary alarm no. 5
Alarm6BOOLFALSE
22: Auxiliary alarm no. 6
BehaveOnErrorBYTE0
23: BehaveOnError = 0 Causes the output to remain unaffected in case of a functional error or an external error (Not ready).
OutputHandlingBYTE1
24: OutputHandling = 0 Causes the output to be reset at In or Out feedback.
Inout
Scada25: Structure variable for connection to Scada system
Output
ErrorBOOLFALSE
Operation continues with error. The output ErrorID gives more details about the error.
CmdOpnBOOLFALSE
1: Command output open
CmdClsBOOLFALSE
2: Command output close
CmdStopBOOLFALSE
3: Command output Stop
ErrorIDERROR_ID.NO_ERROR
4: Err number, Output provides an error identifier if an invalid value was applied to an input